GNU bug report logs -
#19563
grep -F: fix a heap buffer (read) overrun
Previous Next
Reported by: Jim Meyering <jim <at> meyering.net>
Date: Sat, 10 Jan 2015 23:44:02 UTC
Severity: normal
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 19563 <at> debbugs.gnu.org (full text, mbox):
On Sun, 11 Jan 2015 17:49:22 -0800
Jim Meyering <jim <at> meyering.net> wrote:
> On Sun, Jan 11, 2015 at 4:31 PM, Norihiro Tanaka <noritnk <at> kcn.ne.jp> wrote:
> ...
> > How about the attachments instead for the second patch?
>
> Thank you for the suggestion.
>
> However, I do not see a problem with Yuliy's fix, so have pushed it,
> along with the other two commits.
>
> Comparing your change to Yuliy's, I have a slight preference
> for his, since it adds work only to the rarely-used code path on
> which this bug was introduced, and keeps the handling of
> "out of bounds TP" closer to the code that makes TP too large.
>
> If you can provide justification for this proposed change,
> would you please do so in the commit log of a rebased patch?
I understood. However, if fill d == 0 before reach in memchr(), even if
fill ep <= tp, bm_delta2_search() can be called, and it is not buggy.
So It is difficult for me to understand that we must exit the loop if
tp <= ep at the point, although I understand that his fix is correct.
This bug report was last modified 10 years and 55 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.