Bug#568298: balsa: Infinite loop with empty quoted text regexp
- From: "Karl O. Pinc" <kop meme com>
- To: Peter Bloomfield <peterbloomfield bellsouth net>
- Cc: 568298 bugs debian org
- Subject: Bug#568298: balsa: Infinite loop with empty quoted text regexp
- Date: Sat, 06 Feb 2010 20:51:04 -0600
On 02/05/2010 08:23:50 PM, Peter Bloomfield wrote:
>
> On 02/03/2010 01:08:00 PM Wed, Karl O. Pinc wrote:
> > I want to turn off balsa's colorization and
> > change bars and other frobbing of quoted text.
> > Setting the regexp to the empty string
> > _should_ do this, but does not.
>
> Yes, it should--instead it runs afoul of a quirk? feature? in
> regexec,
> where an empty regex matches zero characters, and keeps checking
> forever...fixed in git master.
FYI FWIW.
The posix spec (
http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html
Section 9.1, first sentence of "matched" sub-section)
implies that the behavior is correct.
But the GNU project in man 7 regex says the spec is
fuzzy and this aspect is non-portable.
Karl <kop meme com>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]