William Fisher: A bug in __lookahead::exec causes /(?=^)b/ to match ab. When makes...
authorHoward Hinnant <hhinnant@apple.com>
Fri, 28 Jun 2013 19:11:23 +0000 (19:11 +0000)
committerHoward Hinnant <hhinnant@apple.com>
Fri, 28 Jun 2013 19:11:23 +0000 (19:11 +0000)
commit8d1e82243270f922058375ee0db2eed8a9e34138
tree0456edc6a535e5f23cfc9806627f653f267960b5
parente5fdfdc07bbdb1cd9abf2506db9cb97ae3ed8e23
William Fisher:  A bug in __lookahead::exec causes /(?=^)b/ to match ab. When  makes a recursive call to , it passes true for the value of . This causes a beginning-of-line anchor (^) inside a lookahead assertion to match anywhere in the text.  This fixes llvm.org/bugs/show_bug.cgi?id=11118

llvm-svn: 185196
libcxx/include/regex
libcxx/test/re/re.alg/re.alg.search/lookahead.pass.cpp [new file with mode: 0644]