Staging
v0.5.1
https://github.com/python/cpython
Revision 503baf9ecd2cc5fb0bb85cec99c300862c02de85 authored by Andrew Kuchling on 15 September 2013, 17:11:47 UTC, committed by Andrew Kuchling on 15 September 2013, 17:11:47 UTC
The SSLFakeFile.readline() method needs to support limiting readline() as
well.  It's not a full emulation of readline()'s signature, but this class
is only used by smtplib's code, so it doesn't have to be.

Modified version of original patch by Christian Heimes.
1 parent ed9884b
History
Tip revision: 503baf9ecd2cc5fb0bb85cec99c300862c02de85 authored by Andrew Kuchling on 15 September 2013, 17:11:47 UTC
#16042: CVE-2013-1752: Limit amount of data read by limiting the call to readline().
Tip revision: 503baf9
File Mode Size
Python-ast.c -rw-r--r-- 246.6 KB
_warnings.c -rw-r--r-- 24.9 KB
asdl.c -rw-r--r-- 1.4 KB
ast.c -rw-r--r-- 103.3 KB
atof.c -rw-r--r-- 1016 bytes
bltinmodule.c -rw-r--r-- 85.3 KB
ceval.c -rw-r--r-- 140.3 KB
codecs.c -rw-r--r-- 24.2 KB
compile.c -rw-r--r-- 109.6 KB
dup2.c -rw-r--r-- 685 bytes
dynload_aix.c -rw-r--r-- 5.7 KB
dynload_atheos.c -rw-r--r-- 1.2 KB
dynload_beos.c -rw-r--r-- 7.0 KB
dynload_dl.c -rw-r--r-- 561 bytes
dynload_hpux.c -rw-r--r-- 1.5 KB
dynload_next.c -rw-r--r-- 3.9 KB
dynload_os2.c -rw-r--r-- 1.2 KB
dynload_shlib.c -rw-r--r-- 3.6 KB
dynload_stub.c -rw-r--r-- 202 bytes
dynload_win.c -rw-r--r-- 9.2 KB
errors.c -rw-r--r-- 20.9 KB
formatter_string.c -rw-r--r-- 567 bytes
formatter_unicode.c -rw-r--r-- 461 bytes
frozen.c -rw-r--r-- 1.2 KB
frozenmain.c -rw-r--r-- 1.4 KB
future.c -rw-r--r-- 4.3 KB
getargs.c -rw-r--r-- 55.4 KB
getcompiler.c -rw-r--r-- 366 bytes
getcopyright.c -rw-r--r-- 503 bytes
getcwd.c -rw-r--r-- 1.5 KB
getmtime.c -rw-r--r-- 388 bytes
getopt.c -rw-r--r-- 3.5 KB
getplatform.c -rw-r--r-- 130 bytes
getversion.c -rw-r--r-- 289 bytes
graminit.c -rw-r--r-- 41.4 KB
import.c -rw-r--r-- 97.7 KB
importdl.c -rw-r--r-- 2.2 KB
importdl.h -rw-r--r-- 1.0 KB
mactoolboxglue.c -rw-r--r-- 13.7 KB
marshal.c -rw-r--r-- 35.8 KB
modsupport.c -rw-r--r-- 16.4 KB
mysnprintf.c -rw-r--r-- 3.3 KB
mystrtoul.c -rw-r--r-- 7.9 KB
peephole.c -rw-r--r-- 21.2 KB
pyarena.c -rw-r--r-- 5.8 KB
pyfpe.c -rw-r--r-- 623 bytes
pymath.c -rw-r--r-- 6.6 KB
pystate.c -rw-r--r-- 19.1 KB
pystrcmp.c -rw-r--r-- 613 bytes
pystrtod.c -rw-r--r-- 15.6 KB
pythonrun.c -rw-r--r-- 55.4 KB
random.c -rw-r--r-- 7.8 KB
sigcheck.c -rw-r--r-- 529 bytes
strdup.c -rw-r--r-- 256 bytes
strtod.c -rw-r--r-- 5.5 KB
structmember.c -rw-r--r-- 10.4 KB
symtable.c -rw-r--r-- 46.2 KB
sysmodule.c -rw-r--r-- 48.9 KB
thread.c -rw-r--r-- 11.2 KB
thread_atheos.h -rw-r--r-- 6.6 KB
thread_beos.h -rw-r--r-- 6.6 KB
thread_cthread.h -rw-r--r-- 3.0 KB
thread_foobar.h -rw-r--r-- 2.0 KB
thread_lwp.h -rw-r--r-- 3.4 KB
thread_nt.h -rw-r--r-- 7.3 KB
thread_os2.h -rw-r--r-- 6.3 KB
thread_pth.h -rw-r--r-- 5.3 KB
thread_pthread.h -rw-r--r-- 13.1 KB
thread_sgi.h -rw-r--r-- 10.9 KB
thread_solaris.h -rw-r--r-- 3.3 KB
thread_wince.h -rw-r--r-- 4.1 KB
traceback.c -rw-r--r-- 8.6 KB

back to top