[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] bugs in regexp.c
From: |
Paul Eggert |
Subject: |
Re: [bug-gnulib] bugs in regexp.c |
Date: |
Tue, 08 Mar 2005 17:03:27 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) |
Sam Steingold <address@hidden> writes:
> regexp.c exhibits the following 8 bugs:
>
> 1. regcomp("*a"): "Invalid preceding regular expression"
> 2. regcomp("^*"): "Invalid preceding regular expression"
> 3. regcomp("$*"): "Invalid preceding regular expression"
> 4. regcomp("(*)b"): "Invalid preceding regular expression"
> 5. regcomp("{[^}\n]*}"): "Invalid content of \\{\\}"
> 6. regcomp("{[^}\n]*}"): "Invalid content of \\{\\}"
> 7. regcomp ("{[^}\n]*}"): "Invalid content of \\{\\}"
> 8. regcomp("[[:xdigit]+") works, but when the result is matched against
> "0[x:dig", it matches just "[", not "[x:dig"
(3) is a bug, but the others aren't bugs, surely, since POSIX says
those other EREs are invalid or have undefined behavior. Perhaps you
need to update the CLISP regexp test suite?
>From the current gnulib code, I don't see how (3) could happen, so I'm
at a bit of a loss about how that bug occurs.
- [bug-gnulib] bugs in regexp.c, Sam Steingold, 2005/03/07
- Re: [bug-gnulib] bugs in regexp.c,
Paul Eggert <=
- [bug-gnulib] Re: bugs in regexp.c, Sam Steingold, 2005/03/09
- [bug-gnulib] Re: bugs in regexp.c, Paul Eggert, 2005/03/10
- [bug-gnulib] Re: bugs in regexp.c, Sam Steingold, 2005/03/11
- [bug-gnulib] Re: bugs in regexp.c, Paul Eggert, 2005/03/11
- [bug-gnulib] Re: bugs in regexp.c, Sam Steingold, 2005/03/18
- [bug-gnulib] Re: bugs in regexp.c, Paul Eggert, 2005/03/18