fix crash in regexec for nonzero nmatch argument with REG_NOSUB
authorRich Felker <dalias@aerifal.cx>
Thu, 17 Jul 2014 23:56:27 +0000 (19:56 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 17 Jul 2014 23:56:27 +0000 (19:56 -0400)
commit72ed3d47e567b1635a35d3c1d174c8a8b2787e30
tree37f0f7e7c811732b5ed0fc44ab7bda6785906d3f
parenta6adb2bcd8145353943377d6119c1d7a4242bae1
fix crash in regexec for nonzero nmatch argument with REG_NOSUB

per POSIX, the nmatch and pmatch arguments are ignored when the regex
was compiled with REG_NOSUB.
src/regex/regexec.c