diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2023-04-13 21:12:59 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-14 12:33:54 +0200 |
commit | eba466b8e766bd69992b8cf2dcd300538713fda5 (patch) | |
tree | f69a9c60bd464cac6b02c914211545508ffadb40 /Userland/Libraries/LibSQL | |
parent | 821702fadd551ffa987d7caae98ba10b18a8b153 (diff) | |
download | serenity-eba466b8e766bd69992b8cf2dcd300538713fda5.zip |
LibRegex: Avoid calling GenericLexer::consume() past EOF
The consume(size_t) overload consumes "at most" as many bytes as
requested, but consume() consumes exactly one byte.
This commit makes sure to avoid consuming past EOF.
Fixes #18324.
Fixes #18325.
Diffstat (limited to 'Userland/Libraries/LibSQL')
0 files changed, 0 insertions, 0 deletions