https://llvm.org/bugs/show_bug.cgi?id=31387
Bug ID: 31387 Summary: basic_regex::__parse_decimal_escape doesn't check if __first reaches __last Product: libc++ Version: unspecified Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: All Bugs Assignee: unassignedclangb...@nondot.org Reporter: ka...@codesynthesis.com CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com Classification: Unclassified The basic_regex::__parse_decimal_escape() function implementation (svn repo revision 289795) has the following cycle: for (++__first; '0' <= *__first && *__first <= '9'; ++__first) __v = 10 * __v + *__first - '0'; Note that it increments and dereferences the __first iterator not checking if it has already reached the __last iterator value. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs