[PATCH] D28224: [libcxx, regex] Throw exception after too many steps.

Tim Shen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 2 22:19:33 PST 2017


timshen created this revision.
timshen added a reviewer: mclow.lists.
timshen added a subscriber: cfe-commits.
Herald added a reviewer: EricWF.

This prevents the backtracking regex engines from "hanging forever"
under certain input.


https://reviews.llvm.org/D28224

Files:
  libcxx/include/regex
  libcxx/test/std/re/re.alg/re.alg.match/exponential.pass.cpp
  libcxx/test/std/re/re.alg/re.alg.search/exponential.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28224.82839.patch
Type: text/x-patch
Size: 5989 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170103/b1a6a55a/attachment.bin>


More information about the cfe-commits mailing list