[Python-Dev] Py2.4 _sre uses uninitialised memory (Bug 1088891)

2004-12-21 Thread Andrew McNamara
_sre.c, data_stack_grow() in Py2.4 uses realloc()'ed memory without initialising the newly allocated memory. For complex regexps that require additional sre stack space, this ultimately results in a core dump or corrupted heap. Filling the newly allocated memory with 0x55 makes the problem more obv

Re: [Python-Dev] Py2.4 _sre uses uninitialised memory (Bug 1088891)

2004-12-21 Thread Gustavo Niemeyer
Hello Andrew, > _sre.c, data_stack_grow() in Py2.4 uses realloc()'ed memory without > initialising the newly allocated memory. For complex regexps that > require additional sre stack space, this ultimately results in a core > dump or corrupted heap. Filling the newly allocated memory with 0x55 > m