GNU bug report logs -
#40000
27.0.60; next-single-char-property-change hangs on bad argument
Previous Next
Reported by: Yuan Fu <casouri <at> gmail.com>
Date: Mon, 9 Mar 2020 15:41:02 UTC
Severity: normal
Found in version 27.0.60
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Federico Tedin <federicotedin <at> gmail.com>
> Cc: casouri <at> gmail.com, 40000 <at> debbugs.gnu.org
> Date: Mon, 13 Apr 2020 17:27:06 +0200
>
> I agree that the function should always return equal or smaller than the
> last valid position. In case of buffers, fixing LIMIT > (point-max) is
> OK because the function wasn't defined for that case anyways, as you
> mentioned. However I'm not sure if my patch should fix the case for
> strings where LIMIT > (length object), since that would mean that the
> returned value would now be (length object) instead of LIMIT. And calls
> to this function with these types of values could already exist, since
> in this case the function did not hang.
Then we'd need to clearly document the behavior in each case, I guess.
This bug report was last modified 5 years and 10 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.