platform_system_core/toolbox
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
..
upstream-netbsd/usr.bin/grep grep: fix ASan heap-buffer-overflow. 2019-04-01 10:58:38 -07:00
Android.bp BSD grep: sync with upstream. 2019-03-28 14:29:00 -07:00
generate-input.h-labels.py Fix the generated getevent labels. 2016-06-29 14:12:29 -07:00
getevent.c toolbox: getevent: disable stdout buffering 2019-01-15 16:42:59 +01:00
getprop.cpp newfs_msdos: switch to external/newfs_msdos. 2018-06-13 13:21:24 -07:00
MODULE_LICENSE_APACHE2 newfs_msdos: switch to external/newfs_msdos. 2018-06-13 13:21:24 -07:00
NOTICE newfs_msdos: switch to external/newfs_msdos. 2018-06-13 13:21:24 -07:00
OWNERS Add OWNERS. 2017-12-07 13:30:03 -08:00
r.c Revert "delete toolbox/r.c" 2017-11-02 10:03:10 -05:00
toolbox.c Fix toolbox failure return to match similar tools. 2016-04-12 08:40:43 -07:00
tools.h newfs_msdos: switch to external/newfs_msdos. 2018-06-13 13:21:24 -07:00