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.



In article <CAJgzZooum5=3VCzKAOhy2+TijJ6EpTKHtQc-9wYQ47cNVzmA5w%mail.gmail.com@localhost>,
enh  <enh%google.com@localhost> wrote:
>-=-=-=-=-=-
>
>here's a patch that doesn't actually break anything. the previous
>version was wrong in the non-copy case, so this version always copies.
>(the alternative would be to remember the overwritten byte and restore
>it on the next call, but this brings the code closer to getdelim(3).)

Applied, thanks!

christos



Home | Main Index | Thread Index | Old Index