[issue13093] Redundant code in PyUnicode_EncodeDecimal()

Ned Deily report at bugs.python.org
Mon Nov 28 23:28:07 CET 2011


Ned Deily <nad at acm.org> added the comment:

I am able to reproduce the problem on 2.7 OS X 10.7 64-bit. unicode._encodedecimal is gobbling up memory.  Looks like length is incorrect.

Breakpoint 1, unicode_encodedecimal (self=0x0, args=0x1007ce0d0) at /Users/nad/Projects/PyDev/active/temp/u27-clang/Modules/_testcapimodule.c:1122
1122	    decimal = PyBytes_FromStringAndSize(NULL, decimal_length);
(gdb) p length
$1 = 4294967299
Current language:  auto; currently minimal
(gdb) p unicode
$2 = (Py_UNICODE *) 0x101827ab8
(gdb) p errors
$3 = 0x0

----------
nosy: +ned.deily
resolution: fixed -> 
stage: committed/rejected -> needs patch

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


More information about the Python-bugs-list mailing list