mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-17 21:03:19 +08:00
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
This commit is contained in:
parent
ca6fba42cc
commit
55489ea323
@ -1150,6 +1150,7 @@ compile_string_node(Node* node, regex_t* reg)
|
||||
|
||||
for (; p < end; ) {
|
||||
len = enclen(enc, p);
|
||||
if (p + len > end) len = end - p;
|
||||
if (len == prev_len) {
|
||||
slen++;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user