Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch:
Changeset: r97684:60c4f97fb850
Date: 2019-09-30 17:30 +0200
http://bitbucket.org/pypy/pypy/changeset/60c4f97fb850/
Log: ouch, prevent iterating over a unicode string from making bridges
diff --git a/pypy/objspace/std/iterobject.py b/pypy/objspace/std/iterobject.py
--- a/pypy/objspace/std/iterobject.py
+++ b/pypy/objspace/std/iterobject.py
@@ -113,7 +113,7 @@
self.w_seq = None
raise OperationError(space.w_StopIteration, space.w_None)
start = self.byteindex
- end = rutf8.next_codepoint_pos(w_seq._utf8, start)
+ end = w_seq.next_codepoint_pos_dont_look_inside(start)
w_res = W_UnicodeObject(w_seq._utf8[start:end], 1)
self.byteindex = end
self.index += 1
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit