[issue6600] MemoryError in AiX 64-bit build - PyMem_MALLOC failed

Sridhar Ratnakumar report at bugs.python.org
Thu Aug 6 03:21:04 CEST 2009


Sridhar Ratnakumar <sridharr at activestate.com> added the comment:

Update: posixmodule.c too has the same problem. Attaching similar patch 
for this:

--- python/Modules/posixmodule.c.orig   2009-08-05 09:47:07.000000000 
-0700
+++ python/Modules/posixmodule.c        2009-08-05 09:48:46.000000000 
-0700
@@ -6451,7 +6451,7 @@
                return NULL;
 
        /* Sanitize mode.  See fileobject.c */
-       mode = PyMem_MALLOC(strlen(orgmode)+3);
+       mode = PyMem_MALLOC(3+strlen(orgmode));

----------
keywords: +patch
Added file: http://bugs.python.org/file14662/aix2.patch

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


More information about the Python-bugs-list mailing list