[PATCH] fix crash for sed "script" /\(\)/x
Paolo Bonzini
paolo.bonzini@lu.unisi.ch
Thu Feb 10 09:33:00 GMT 2005
An empty subexpression in the presence of REG_NOSUB may cause a CONCAT
node to have a NULL children, and this would crash in calc_first.
The attached patch cures it by not optimizing the empty subexpression in
the first place. It ought not to be very common, so we do not lose much.
Paolo
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: regex-fix-crash.patch
URL: <http://sourceware.org/pipermail/libc-hacker/attachments/20050210/f38b3465/attachment.ksh>
More information about the Libc-hacker
mailing list