[issue8530] Stringlib fastsearch can read beyond the front of an array

Florent Xicluna report at bugs.python.org
Sun Apr 25 20:28:41 CEST 2010


Florent Xicluna <florent.xicluna at gmail.com> added the comment:

I guess we don't have the same issue with the find() implementation?

 if (!STRINGLIB_BLOOM(mask, s[i+m]))


Because:
 * len(s) = n = (w + m)
 * the loop condition is (i <= w)
  ==> s[w+m] is beyond the array, but it is '\0' probably

Is it correct?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8530>
_______________________________________


More information about the Python-bugs-list mailing list