Backport r58709 from trunk:
authorGeorg Brandl <georg@python.org>
Fri, 2 Nov 2007 22:46:38 +0000 (22:46 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 2 Nov 2007 22:46:38 +0000 (22:46 +0000)
commit1dcb9c93fd5e69ed9af89a65976bddd5ec15474b
tree6b4b61d808049b05e98a07e2490b1983d30bee9a
parent2c3e0d94b2357d53e3a460dec244b1e98462ede4
Backport r58709 from trunk:
Backport fixes for the code that decodes octal escapes (and for PyString
also hex escapes) -- this was reaching beyond the end of the input string
buffer, even though it is not supposed to be \0-terminated.
This has no visible effect but is clearly the correct thing to do.
(In 3.0 it had a visible effect after removing ob_sstate from PyString.)
Also fixes #1098.
Objects/stringobject.c
Objects/unicodeobject.c