summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/grot/stdlib.h
diff options
context:
space:
mode:
authordcs <dcs@FreeBSD.org>2000-07-09 17:45:30 +0000
committerdcs <dcs@FreeBSD.org>2000-07-09 17:45:30 +0000
commit2f86797f52c5150ce19ceca600b6ed75ccf26577 (patch)
tree816cbb757a08cd0c562be6c07f2afad95673a20d /lib/libc/regex/grot/stdlib.h
parent13a9107aac37e67e8ab42faaa4fd3b52bdb7c406 (diff)
downloadFreeBSD-src-2f86797f52c5150ce19ceca600b6ed75ccf26577.zip
FreeBSD-src-2f86797f52c5150ce19ceca600b6ed75ccf26577.tar.gz
altoffset() always returned whenever it recursed, because at the end
of the processing of the recursion, "scan" would be pointing to O_CH (or O_QUEST), which would then be interpreted as being the end character for altoffset(). We avoid this by properly increasing scan before leaving the switch. Without this, something like (a?b?)?cc would result in a g->moffset of 1 instead of 2. I added a case to the soon-to-be-imported regex(3) test code to catch this error.
Diffstat (limited to 'lib/libc/regex/grot/stdlib.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud