tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] grep: fix ASan heap-buffer-overflow.



On 30.03.2019 06:12, enh wrote:
> 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"

Just for the record as interception, the regex(3) support (together with
a number of other APIs) was contributed to LLVM by The NetBSD Foundation.

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index