Staging
v0.8.1
https://github.com/python/cpython
Revision 5e27a6cb0b64eab189b474bd91f23c05cab94cb2 authored by Andrew M. Kuchling on 06 October 2006, 18:59:10 UTC, committed by Andrew M. Kuchling on 06 October 2006, 18:59:10 UTC
Patch #1357836:

Prevent an invalid memory read from test_coding in case the done flag is set.
In that case, the loop isn't entered.  I wonder if rather than setting
the done flag in the cases before the loop, if they should just exit early.

This code looks like it should be refactored.

Backport candidate (also the early break above if decoding_fgets fails)
1 parent 08d7a49
History
Tip revision: 5e27a6cb0b64eab189b474bd91f23c05cab94cb2 authored by Andrew M. Kuchling on 06 October 2006, 18:59:10 UTC
[Backport r46602 | neal.norwitz]
Tip revision: 5e27a6c
File Mode Size
atof.c -rw-r--r-- 815 bytes
bltinmodule.c -rw-r--r-- 58.4 KB
ceval.c -rw-r--r-- 103.5 KB
codecs.c -rw-r--r-- 19.5 KB
compile.c -rw-r--r-- 152.9 KB
dup2.c -rw-r--r-- 685 bytes
dynload_aix.c -rw-r--r-- 4.9 KB
dynload_atheos.c -rw-r--r-- 1.0 KB
dynload_beos.c -rw-r--r-- 6.3 KB
dynload_dl.c -rw-r--r-- 561 bytes
dynload_hpux.c -rw-r--r-- 1.3 KB
dynload_next.c -rw-r--r-- 3.4 KB
dynload_os2.c -rw-r--r-- 1020 bytes
dynload_shlib.c -rw-r--r-- 3.2 KB
dynload_stub.c -rw-r--r-- 202 bytes
dynload_win.c -rw-r--r-- 7.3 KB
errors.c -rw-r--r-- 17.8 KB
exceptions.c -rw-r--r-- 45.7 KB
fmod.c -rw-r--r-- 435 bytes
frozen.c -rw-r--r-- 1.2 KB
frozenmain.c -rw-r--r-- 1.3 KB
future.c -rw-r--r-- 6.0 KB
getargs.c -rw-r--r-- 37.8 KB
getcompiler.c -rw-r--r-- 366 bytes
getcopyright.c -rw-r--r-- 503 bytes
getcwd.c -rw-r--r-- 1.4 KB
getmtime.c -rw-r--r-- 318 bytes
getopt.c -rw-r--r-- 2.3 KB
getplatform.c -rw-r--r-- 130 bytes
getversion.c -rw-r--r-- 290 bytes
graminit.c -rw-r--r-- 34.2 KB
hypot.c -rw-r--r-- 282 bytes
import.c -rw-r--r-- 70.5 KB
importdl.c -rw-r--r-- 2.0 KB
importdl.h -rw-r--r-- 990 bytes
mactoolboxglue.c -rw-r--r-- 12.9 KB
marshal.c -rw-r--r-- 20.4 KB
memmove.c -rw-r--r-- 439 bytes
modsupport.c -rw-r--r-- 11.9 KB
mysnprintf.c -rw-r--r-- 2.6 KB
mystrtoul.c -rw-r--r-- 3.3 KB
pyfpe.c -rw-r--r-- 623 bytes
pystate.c -rw-r--r-- 14.5 KB
pystrtod.c -rw-r--r-- 5.9 KB
pythonrun.c -rw-r--r-- 40.8 KB
sigcheck.c -rw-r--r-- 529 bytes
strdup.c -rw-r--r-- 256 bytes
strerror.c -rw-r--r-- 416 bytes
strtod.c -rw-r--r-- 5.1 KB
structmember.c -rw-r--r-- 5.1 KB
symtable.c -rw-r--r-- 4.5 KB
sysmodule.c -rw-r--r-- 35.2 KB
thread.c -rw-r--r-- 8.8 KB
thread_atheos.h -rw-r--r-- 6.0 KB
thread_beos.h -rw-r--r-- 6.0 KB
thread_cthread.h -rw-r--r-- 2.7 KB
thread_foobar.h -rw-r--r-- 1.9 KB
thread_lwp.h -rw-r--r-- 3.1 KB
thread_nt.h -rw-r--r-- 8.0 KB
thread_os2.h -rw-r--r-- 4.9 KB
thread_pth.h -rw-r--r-- 5.2 KB
thread_pthread.h -rw-r--r-- 10.1 KB
thread_sgi.h -rw-r--r-- 9.4 KB
thread_solaris.h -rw-r--r-- 3.0 KB
thread_wince.h -rw-r--r-- 4.0 KB
traceback.c -rw-r--r-- 6.2 KB

back to top