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

due to a corrupted end pointer.
This commit is contained in:
Gustavo Niemeyer 2003-06-26 14:41:08 +00:00
parent f91888bb46
commit 28b5bb33ea
1 changed files with 1 additions and 1 deletions

View File

@ -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;