This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix pasto in regcomp.c


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


Attachment: fix-charclass-pasto.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]