GNU bug report logs - #2844
infinite loop in boyer_moore()

Previous Next

Package: emacs;

Reported by: Alexandre Oliva <oliva <at> gnu.org>

Date: Wed, 1 Apr 2009 20:15:03 UTC

Severity: serious

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Alexandre Oliva <oliva <at> gnu.org>
Cc: 2844 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: bug#2844: infinite loop in boyer_moore()
Date: Thu, 02 Apr 2009 09:49:54 +0200
Alexandre Oliva <oliva <at> gnu.org> writes:

> I suppose checking that
>
>   (EMACS_INT)(cursor + 20000) > (EMACS_INT)(cursor)
>
> would also be necessary before choosing the EMACS_INT variant of the loop.

That wouldn't help, the compiler will optimize that to true.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




This bug report was last modified 16 years and 36 days ago.

Previous Next


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