Fix pasto in regcomp.c
Paolo Bonzini
bonzini@gnu.org
Fri Sep 19 14:20:00 GMT 2003
This bug is an obvious pasto in parse_bracket_exp:
$ export LANG=C ; echo test123test | sed -e 's/[[:number:]]//g'
sed: -e expression #1, char 18: Memory exhausted
(of course it should have been [[:digit:]], but the error is weird...).
build_charclass returns REG_ECTYPE in that case, parse_bracket_exp assumes
it can only return REG_ENOSPACE.
The next version of sed, due next week (as soon as the gnu.org guys publish
it), will have a number of interesting XFAILed tests...
Paolo
2003-09-19 Paolo Bonzini <bonzini@gnu.org>
* posix/regcomp.c (parse_bracket_exp): fix pasto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-charclass-pasto.diff
Type: application/octet-stream
Size: 929 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20030919/c1c386eb/attachment.obj>
More information about the Libc-alpha
mailing list