[libc++] Validate the entire regex is consumed
authorMark de Wever <koraq@xs4all.nl>
Sat, 9 Nov 2019 16:01:37 +0000 (17:01 +0100)
committerMark de Wever <koraq@xs4all.nl>
Sat, 9 Nov 2019 16:01:37 +0000 (17:01 +0100)
commit27c4eaac8c066eb1f7c5ad26c6fbc3e78eded778
treea40c947357bdf9ffb6fb8a97af4cb2fa6c8b4716
parentb9be5ce8f3e0e697a61ad16e2c669de6ea8f8739
[libc++] Validate the entire regex is consumed

This change would have warned about the bug found in D62451.
No unit tests since the exception should never throw.

Differential Revision: https://reviews.llvm.org/D62452
libcxx/include/regex
libcxx/src/regex.cpp