diff options
author | Elliott Hughes <enh@google.com> | 2019-03-29 21:59:17 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2019-04-01 10:58:38 -0700 |
commit | bfd9d63c74a55d094850b82112b54fe42c3edfa4 (patch) | |
tree | 26ef63cb434691f2f1ce9eb7c794bfc09eb3644e /libsparse/sparse.cpp | |
parent | 43f29072a974a4e57a519a098b6e81a1027eb77c (diff) |
grep: fix ASan heap-buffer-overflow.
Like the regular fgetln(), grep_fgetln() doesn't NUL-terminate the
string, which regexec() doesn't like. ASan just gained the ability to
intercept regexec(), which is why we didn't find this previously.
Bug: http://b/129089665
Test: adb shell grep -R /system -e "abc"
Test: toybox grep tests
Change-Id: Id707cea66a873b83bd763a3dcdf726ac7d062ce0
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions