This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Check back reference subscript overflow in a single place.
Needs ReviewPublic

Authored by timshen on Sep 16 2017, 10:22 PM.

Details

Summary

Currently it's checked in three places, including one place that's at
regex runtime.

There is no need to do runtime check, as all uses and definitions of
subexpress is known at regex compile-time.

This fixes PR34297.

Event Timeline

timshen created this revision.Sep 16 2017, 10:22 PM