Staging
v0.5.1
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
BUILDno.txt -rw-r--r-- 4.1 KB
Uninstal.wse -rw-r--r-- 9.5 KB
_bsddb.vcproj -rw-r--r-- 7.4 KB
_socket.vcproj -rw-r--r-- 7.1 KB
_ssl.mak -rw-r--r-- 671 bytes
_ssl.vcproj -rw-r--r-- 1.6 KB
_testcapi.vcproj -rw-r--r-- 7.1 KB
_tkinter.vcproj -rw-r--r-- 8.3 KB
build_ssl.py -rw-r--r-- 5.7 KB
bz2.vcproj -rw-r--r-- 7.4 KB
field3.py -rw-r--r-- 966 bytes
installer.bmp -rw-r--r-- 49.1 KB
make_versioninfo.vcproj -rw-r--r-- 4.9 KB
pcbuild.sln -rw-r--r-- 12.3 KB
pyexpat.vcproj -rw-r--r-- 10.6 KB
python.iss -rw-r--r-- 18.4 KB
python.vcproj -rw-r--r-- 7.5 KB
python20.wse -rw-r--r-- 78.0 KB
pythoncore.vcproj -rw-r--r-- 98.2 KB
pythonw.vcproj -rw-r--r-- 7.5 KB
readme.txt -rw-r--r-- 12.1 KB
rmpyc.py -rw-r--r-- 597 bytes
rt.bat -rwxr-xr-x 1.5 KB
select.vcproj -rw-r--r-- 7.2 KB
unicodedata.vcproj -rw-r--r-- 7.2 KB
w9xpopen.vcproj -rw-r--r-- 4.1 KB
winsound.vcproj -rw-r--r-- 7.2 KB
zlib.vcproj -rw-r--r-- 6.9 KB

readme.txt

back to top