ladybird/Libraries/LibRegex
Linus Groh 8284f87867 LibRegex: Add bounds check to Lexer::back()
If the offset is zero and we're already at the end of the lexer's input
an out of bounds read (m_source[m_position]) would occur.
Also check that the offset is not more than m_position (which should
never be the case, and would result in m_position underflowing).

Fixes #4253.
2020-11-30 11:36:24 +01:00
..
C LibRegex: Add RegexStringView wrapper to support utf8 and utf32 views 2020-11-27 21:32:41 +01:00
Tests LibRegex: Use match_ordinary_characters() in ECMA262Parser::parse_atom() 2020-11-29 20:35:52 +01:00
CMakeLists.txt LibRegex: Add a regular expression library 2020-11-27 21:32:41 +01:00
Forward.h LibRegex: Implement an ECMA262-compatible parser 2020-11-27 21:32:41 +01:00
Regex.h LibRegex: Add a regular expression library 2020-11-27 21:32:41 +01:00
RegexByteCode.cpp LibRegex: Fix reported compare-against value in debug 2020-11-27 21:32:41 +01:00
RegexByteCode.h LibRegex: Implement an ECMA262-compatible parser 2020-11-27 21:32:41 +01:00
RegexDebug.h LibRegex: Implement an ECMA262-compatible parser 2020-11-27 21:32:41 +01:00
RegexError.h LibRegex: Add a regular expression library 2020-11-27 21:32:41 +01:00
RegexLexer.cpp LibRegex: Add bounds check to Lexer::back() 2020-11-30 11:36:24 +01:00
RegexLexer.h LibRegex: Allow unknown escapes in non-unicode mode (for ECMA262) 2020-11-28 10:13:33 +01:00
RegexMatch.h LibJS: Hook up Regex<ECMA262> to RegExpObject and implement `test()' 2020-11-27 21:32:41 +01:00
RegexMatcher.cpp LibRegex: Remove trailing newline from error_string() 2020-11-28 16:46:25 +01:00
RegexMatcher.h LibRegex: Fix clang build errors 2020-11-29 09:29:26 +01:00
RegexOptions.h LibJS: Hook up Regex<ECMA262> to RegExpObject and implement `test()' 2020-11-27 21:32:41 +01:00
RegexParser.cpp LibRegex: Use match_ordinary_characters() in ECMA262Parser::parse_atom() 2020-11-29 20:35:52 +01:00
RegexParser.h LibRegex: Use match_ordinary_characters() in ECMA262Parser::parse_atom() 2020-11-29 20:35:52 +01:00