GNU bug report logs - #3552
23.0.94; backward-prefix-chars: Point before start of properties

Previous Next

Package: emacs;

Reported by: bojohan+mail <at> dd.chalmers.se (Johan Bockgård)

Date: Sat, 13 Jun 2009 10:45:03 UTC

Severity: important

Tags: confirmed, patch

Merged with 17132, 19379

Found in versions 24.3.50, 24.5, 25.0.50, 25.0.94

Fixed in version 25.1

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

Full log


Message #30 received at 3552 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 3552 <at> debbugs.gnu.org
Subject: Re: bug#3552: 23.0.94;
 backward-prefix-chars: Point before start of properties
Date: Sat, 4 Jun 2016 17:25:19 -0400
[Message part 1 (text/plain, inline)]
On Sat, Jun 4, 2016 at 1:55 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> I would use
>
>   if (pos <= beg)
>     break;
>   DEC_BOTH (pos, pos_byte);

Oh yeah, that makes sense; parallels with the same check at the
beginning of the function. Full patch attached.
[0001-Fbackward_prefix_chars-stay-within-buffer-bounds.patch (text/x-diff, attachment)]

This bug report was last modified 8 years and 345 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.