Commit 28b5bb33 authored by Gustavo Niemeyer's avatar Gustavo Niemeyer

Fixing bug described in patch #756032, where SRE reads invalid data

due to a corrupted end pointer.
parent f91888bb
......@@ -1297,7 +1297,7 @@ SRE_SEARCH(SRE_STATE* state, SRE_CODE* pattern)
flags = pattern[2];
if (pattern[3] > 0) {
if (pattern[3] > 1) {
/* adjust end point (but make sure we leave at least one
character in there, so literal search will work) */
end -= pattern[3]-1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment