android_system_core/toolbox/upstream-netbsd/usr.bin/grep
Elliott Hughes bfd9d63c74 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
2019-04-01 10:58:38 -07:00
..
fastgrep.c Revert "Switch to PCRE grep." 2018-07-26 14:52:45 -07:00
file.c grep: fix ASan heap-buffer-overflow. 2019-04-01 10:58:38 -07:00
grep.c BSD grep: sync with upstream. 2019-03-28 14:29:00 -07:00
grep.h BSD grep: sync with upstream. 2019-03-28 14:29:00 -07:00
queue.c Revert "Switch to PCRE grep." 2018-07-26 14:52:45 -07:00
util.c BSD grep: sync with upstream. 2019-03-28 14:29:00 -07:00