Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(57)

Unified Diff: Doc/c-api/memory.rst

Issue 2599: python - fix buffer overflows in unicode processing and elsewhere SVN Base: http://svn.python.org/view/*checkout*/python/trunk/
Patch Set: Created 1 year, 4 months ago , Downloaded from: http://bugs.python.org/file10825/issue2620-gps02-patch.txt
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side by-side-diff with in-line comments
Download patch
« no previous file | Include/pymem.h » ('j') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Doc/c-api/memory.rst
===================================================================
--- Doc/c-api/memory.rst (revision 64754)
+++ Doc/c-api/memory.rst (working copy)
@@ -136,7 +136,9 @@
Same as :cfunc:`PyMem_Realloc`, but the memory block is resized to ``(n *
sizeof(TYPE))`` bytes. Returns a pointer cast to :ctype:`TYPE\*`. On return,
- *p* will be a pointer to the new memory area, or *NULL* in the event of failure.
+ *p* will be a pointer to the new memory area, or *NULL* in the event of
+ failure. This is a C preprocessor macro; p is always reassigned. Save
+ the original value of p to avoid losing memory when handling errors.
.. cfunction:: void PyMem_Del(void *p)
« no previous file | Include/pymem.h » ('j')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r497