GNU bug report logs -
#53333
Fix for crash in ebrowse
Previous Next
Reported by: Jan Stranik <jan <at> stranik.org>
Date: Tue, 18 Jan 2022 00:56:02 UTC
Severity: normal
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Mon, 17 Jan 2022 17:35:36 -0500
> From: Jan Stranik via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> attached is a patch to ebrowse. Noticed a one-off write error in case of
> identifiers that are too long and need escaping. The patch prevents the
> write to memory outside of allocated range which on my platform caused
> segfault.
Thanks, but can you explain the need for this part:
> ! else {
> ! s++;
> ! break;
> ! }
> ! }
Why do we need to advance the pointer 's' in the 'else' clause? why
not leave it alone?
Or maybe I will understand the reason if you show some simple code
that hits this problem (which would be a good thing of its own, as
we'd then have a test to add to our test suite)?
This bug report was last modified 3 years and 116 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.