Staging
v0.5.0
https://github.com/python/cpython
Revision da604c19923ef1fd365a0ace5bb8c6e0bbe763ce authored by Andrew M. Kuchling on 05 October 2006, 18:49:36 UTC, committed by Andrew M. Kuchling on 05 October 2006, 18:49:36 UTC
 but looks correct on a casual inspection and hasn't been modified
 in the trunk.  Does anyone want to review further?]

Ensure we don't write beyond errText.  I think I got this right, but
it definitely could use some review to ensure I'm not off by one
and there's no possible overflow/wrap-around of bytes_left.
Reported by Klocwork #1.

Fix a problem if there is a failure allocating self->db.
Found with failmalloc.
1 parent 9788095
History
Tip revision: da604c19923ef1fd365a0ace5bb8c6e0bbe763ce authored by Andrew M. Kuchling on 05 October 2006, 18:49:36 UTC
[Backport r50783 | neal.norwitz. The bytes_left code is complicated,
Tip revision: da604c1
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.hgtags -rw-r--r-- 3.1 KB
LICENSE -rw-r--r-- 13.2 KB
Makefile.pre.in -rw-r--r-- 31.8 KB
README -rw-r--r-- 49.9 KB
aclocal.m4 -rw-r--r-- 2.1 KB
configure -rwxr-xr-x 584.4 KB
configure.in -rw-r--r-- 87.2 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 23.9 KB
setup.py -rw-r--r-- 53.1 KB

README

back to top