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
Raw File
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
.hgeol
[patterns]

# Non human-editable files are binary

**.dsp  = BIN
**.dsw  = BIN
**.mk   = BIN
**.sln  = BIN
**.vcproj  = BIN
**.vsprops = BIN

**.aif  = BIN
**.au   = BIN
**.bmp  = BIN
**.db   = BIN
**.exe  = BIN
**.icns = BIN
**.gif  = BIN
**.ico  = BIN
**.info = BIN
**.jpg  = BIN
**.pck  = BIN
**.png  = BIN
**.psd  = BIN
**.tar  = BIN
**.xar  = BIN
**.zip  = BIN

Lib/email/test/data/msg_26.txt = BIN
Lib/test/sndhdrdata/sndhdr.* = BIN
Lib/test/decimaltestdata/*.decTest = BIN

Doc/make.bat = CRLF
Tools/buildbot/*.bat = CRLF
Tools/msi/merge.py = CRLF
PC/VS7.1/*.bat = CRLF
PC/VS8.0/*.bat = CRLF

# All other files (which presumably are human-editable) are "native".
# This must be the last rule!

** = native

[repository]
native = LF
back to top