Staging
v0.5.1
https://github.com/python/cpython
Revision 3e3566937e3597651b06d95aef9b1b75d0f6899d authored by Andrew M. Kuchling on 05 October 2006, 19:42:49 UTC, committed by Andrew M. Kuchling on 05 October 2006, 19:42:49 UTC
 backported.]

Use sizeof(buffer) instead of duplicating the constants to ensure they won't
be wrong.

The real change is to pass (bufsz - 1) to PyOS_ascii_formatd and 1
to strncat.  strncat copies n+1 bytes from src (not dest).

Reported by Klocwork #58.
1 parent 32f378b
History
Tip revision: 3e3566937e3597651b06d95aef9b1b75d0f6899d authored by Andrew M. Kuchling on 05 October 2006, 19:42:49 UTC
[Backport r50679 | neal.norwitz. This is the last Klocwork bug to be
Tip revision: 3e35669
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