cpython/Lib
Martin Panter eeb896c411 Issue #24802: Copy bytes-like objects to null-terminated buffers if necessary
This avoids possible buffer overreads when int(), float(), compile(), exec()
and eval() are passed bytes-like objects. Similar code is removed from the
complex() constructor, where it was not reachable.

Patch by John Leitch, Serhiy Storchaka and Martin Panter.
2015-11-07 02:32:21 +00:00
..
asyncio asyncio: Optimize asyncio.sleep(0) 2015-11-05 14:29:04 -05:00
collections Issue #22609: Constructor of collections.UserDict now accepts the self keyword 2015-09-29 23:36:06 +03:00
concurrent Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
ctypes Issue #25523: Further a-to-an corrections. 2015-11-02 14:10:23 +02:00
curses
dbm Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:24:41 +03:00
distutils Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
email Issue #22932: Fix timezones in email.utils.formatdate. 2015-08-01 08:18:22 +12:00
encodings Issue #16473: Fix byte transform codec documentation; test quotetabs=True 2015-09-12 00:34:28 +00:00
ensurepip Update pip to 7.1.2 and setuptools to 18.2 2015-08-24 16:13:48 -04:00
html Fix some spelling errors in documentation and code comments 2015-10-31 11:48:53 +00:00
http Issue #25523: Further a-to-an corrections. 2015-11-02 14:10:23 +02:00
idlelib Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
importlib Issue #25280: Import trace messages emitted in verbose (-v) mode are no 2015-10-01 11:08:50 +03:00
json Issue #24540: fix typo in json.dumps docstring 2015-07-05 11:45:01 -07:00
lib2to3 Issue #25523: Further a-to-an corrections. 2015-11-02 14:10:23 +02:00
logging Closes #25411: Improved Unicode support in SMTPHandler. 2015-10-17 16:13:10 +01:00
msilib Issue #25523: Further a-to-an corrections. 2015-11-02 14:10:23 +02:00
multiprocessing Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:24:41 +03:00
plat-aix4
plat-darwin
plat-freebsd4
plat-freebsd5
plat-freebsd6
plat-freebsd7
plat-freebsd8
plat-generic
plat-linux
plat-netbsd1
plat-next3
plat-sunos5 Merged revisions 78678,78680,78682 via svnmerge from 2010-03-05 03:33:11 +00:00
plat-unixware7
pydoc_data Doc updates for 3.4.3 final. 2015-02-22 23:54:38 -08:00
site-packages
sqlite3 Issue #24257: Fixed incorrect uses of PyObject_IsInstance(). 2015-05-22 11:02:49 +03:00
test Issue #24802: Copy bytes-like objects to null-terminated buffers if necessary 2015-11-07 02:32:21 +00:00
tkinter Issue #25523: Further a-to-an corrections. 2015-11-02 14:10:23 +02:00
turtledemo Issue #6639: Module-level turtle functions no longer raise TclError after 2015-02-22 17:25:33 +02:00
unittest Marked keystrokes with the :kbd: role. 2015-09-12 17:45:25 +03:00
urllib Issue #24021: docstring for urllib.urlcleanup. 2015-08-04 12:52:06 +12:00
venv Issue #23399: pyvenv creates relative symlinks where possible. 2015-02-06 11:23:58 -05:00
wsgiref Issue #17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella. 2015-07-27 10:42:01 +12:00
xml Issue #25047: Respect case writing XML encoding declarations 2015-09-23 01:14:35 +00:00
xmlrpc Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
__future__.py
__phello__.foo.py
_bootlocale.py
_collections_abc.py Issue #21408: The default __ne__() now returns NotImplemented if __eq__() 2015-01-26 09:57:07 +02:00
_compat_pickle.py Issue #18473: Fixed pickle compatibility tests for optional modules. 2015-03-31 16:49:26 +03:00
_dummy_thread.py
_markupbase.py
_osx_support.py Issue #21811: Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite. 2014-06-25 13:36:14 -07:00
_pyio.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
_sitebuiltins.py #9364: Improve the text printed by help(pydoc) and help(help). 2014-04-19 12:59:30 -04:00
_strptime.py Issue #23136: _strptime now uniformly handles all days in week 0, including 2015-03-19 19:13:37 +02:00
_threading_local.py
_weakrefset.py
abc.py
aifc.py Corrected docstrings of audio modules. writeframes() accepts bytes, not str. 2015-07-10 22:13:40 +03:00
antigravity.py
argparse.py Closes #22675: fix typo. 2014-10-20 08:36:02 +02:00
ast.py
asynchat.py Issue #16133: The asynchat.async_chat.handle_read() method now ignores 2014-07-24 18:49:36 +02:00
asyncore.py Issue #11453: asyncore: emit a ResourceWarning when an unclosed file_wrapper 2014-06-27 23:52:03 +02:00
base64.py Escaped backslashes in docstrings. 2015-04-03 18:12:41 +03:00
bdb.py
binhex.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:24:41 +03:00
bisect.py
bz2.py Issue #23615: Modules bz2, tarfile and tokenize now can be reloaded with 2015-03-11 17:18:03 +02:00
cProfile.py
calendar.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
cgi.py cgi.FieldStorage.read_multi ignores Content-Length 2015-08-18 10:21:10 -07:00
cgitb.py
chunk.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
cmd.py
code.py
codecs.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
codeop.py
colorsys.py
compileall.py Issue #20976: pyflakes: Remove unused imports 2014-03-20 09:16:38 +01:00
configparser.py Issue #21159: Improve message in configparser.InterpolationMissingOptionError. 2015-08-14 11:11:35 +12:00
contextlib.py Issue #24336: The contextmanager decorator now works with functions with 2015-06-28 17:06:07 +03:00
copy.py Issue #20791: copy.copy() now doesn't make a copy when the input is a bytes object. Initial patch by Peter Otten. 2014-02-27 22:14:31 +01:00
copyreg.py
crypt.py
csv.py
datetime.py Issue #23517: Fix rounding in fromtimestamp() and utcfromtimestamp() methods 2015-09-18 14:42:05 +02:00
decimal.py Issue #23641: Cleaned out legacy dunder names from tests and docs. 2015-03-12 21:56:08 +02:00
difflib.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
dis.py
doctest.py Issue #21408: The default __ne__() now returns NotImplemented if __eq__() 2015-01-26 09:57:07 +02:00
dummy_threading.py
enum.py issue23673 2015-03-18 18:19:30 -07:00
filecmp.py shallow defaults to 'True' not '1' (closes #21355) 2014-04-26 13:36:21 -04:00
fileinput.py Issue #25510: fileinput.FileInput.readline() now returns b'' instead of '' 2015-11-01 16:43:58 +02:00
fnmatch.py
formatter.py Issue #18644: Fix a ResourceWarning in formatter.test(). 2015-01-05 09:19:40 +02:00
fractions.py
ftplib.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
functools.py Issue #23572: Fixed functools.singledispatch on classes with falsy metaclasses. 2015-08-18 14:30:15 -04:00
genericpath.py
getopt.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
getpass.py #21169: add comment and doc update for getpass change. 2014-04-14 10:28:58 -04:00
gettext.py #17898: reset k and v so that the loop doesn't use an old value 2015-04-13 10:38:56 -04:00
glob.py Issue #17923: glob() patterns ending with a slash no longer match non-dirs on 2014-08-12 12:55:12 +03:00
gzip.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:24:41 +03:00
hashlib.py Removed duplicated words in in comments and docs. 2014-12-01 18:28:43 +02:00
heapq.py
hmac.py
imaplib.py Issue #23779: imaplib raises TypeError if authenticator tries to abort. 2015-07-31 08:59:02 +12:00
imghdr.py Issue #20331: Fixed possible FD leaks in various modules: 2014-01-25 19:43:56 +02:00
imp.py Issue #23956: Fix typo in imp.py docstring. 2015-04-14 15:43:00 -05:00
inspect.py Issue #24206: Fixed __eq__ and __ne__ methods of inspect classes. 2015-07-18 23:19:05 +03:00
io.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
ipaddress.py Issue #23268: Fixed bugs in the comparison of ipaddress classes. 2015-01-26 10:11:16 +02:00
keyword.py
linecache.py Issue #23838: linecache now clears the cache and returns an empty result on 2015-04-01 16:54:05 +03:00
locale.py Issue #20079: Updated alias mapping to glibc 2.19 SUPPORTED file. 2014-10-02 10:49:26 +03:00
lzma.py
macpath.py Issue #9850: Fixed macpath.join() for empty first component. Patch by 2014-09-27 18:53:23 +03:00
macurl2path.py
mailbox.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:24:41 +03:00
mailcap.py Issue #20331: Fixed possible FD leaks in various modules: 2014-01-25 19:43:56 +02:00
mimetypes.py Issue #22028: Ensure mimetypes will not open registry keys with embedded nulls 2015-03-10 13:17:21 -07:00
modulefinder.py Issue #21707: Add missing kwonlyargcount argument to ModuleFinder.replace_paths_in_code(). 2014-07-07 14:58:12 +03:00
netrc.py
nntplib.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
ntpath.py Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes. 2015-03-25 16:40:15 +02:00
nturl2path.py Issue21160: Correct comments in nturl2path. Patch by Jurko Gospodnetić. 2015-10-24 17:39:36 +03:00
numbers.py Issue #21408: The default __ne__() now returns NotImplemented if __eq__() 2015-01-26 09:57:07 +02:00
opcode.py
operator.py Issue #19936: Added executable bits or shebang lines to Python scripts which 2014-01-16 17:33:23 +02:00
optparse.py Issue #20315: Removed support for backward compatibility with early 2.x versions. 2014-01-20 21:29:31 +02:00
os.py remove useless word (closes #23929) 2015-04-13 20:24:10 -04:00
pathlib.py Issue #23146: Fix mishandling of absolute Windows paths with forward slashes in pathlib. 2015-02-15 18:03:59 +01:00
pdb.py Issue #16180: Exit pdb if file has syntax error, instead of trapping user 2015-09-05 19:13:26 -04:00
pickle.py Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
pickletools.py Issue #25380: Fixed protocol for the STACK_GLOBAL opcode in 2015-10-13 21:12:32 +03:00
pipes.py
pkgutil.py Issue #14710: Fix both pkgutil.find_loader() and get_loader() to not 2014-05-23 12:30:37 -04:00
platform.py Handle calls to win32_ver from non-Windows platform 2015-09-22 17:35:24 -07:00
plistlib.py Issue #21888: plistlib's load() and loads() now work if the fmt parameter is 2014-07-23 18:49:31 +03:00
poplib.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:24:41 +03:00
posixpath.py Issue #22034: Got rid of misleading error message for bytearray arguments in 2014-08-24 12:18:09 +03:00
pprint.py Issue #19104: pprint now produces evaluable output for wrapped strings. 2014-12-20 20:57:15 +02:00
profile.py
pstats.py
pty.py
py_compile.py Issue #23811: Add missing newline to the PyCompileError error message. 2015-04-14 18:57:55 +03:00
pyclbr.py Issue 19944: Fix importlib.find_spec() so it imports parents as needed. 2014-01-25 15:32:46 -07:00
pydoc.py Issue #18010: Fix pydoc web server search to handle package exceptions 2015-11-06 00:27:14 +00:00
queue.py
quopri.py Issue #23681: Fixed Python 2 to 3 poring bugs. 2015-03-20 16:46:19 +02:00
random.py Issue 13355: Make random.triangular degrade gracefully when low == high. 2014-05-25 17:25:27 -07:00
re.py backout 9fcf4008b626 (#9179) for further consideration 2014-11-30 11:49:00 -05:00
reprlib.py
rlcompleter.py Issue #23441: rcompleter now prints a tab character instead of displaying 2015-07-28 00:06:31 +03:00
runpy.py Issue #20976: pyflakes: Remove unused imports 2014-03-20 09:16:38 +01:00
sched.py
selectors.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:24:41 +03:00
shelve.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:24:41 +03:00
shlex.py #18853: Fix resource warning in shlex's __main__ section. 2014-10-17 20:28:47 -04:00
shutil.py Issue #24982: shutil.make_archive() with the "zip" format now adds entries 2015-09-08 05:47:23 +03:00
site.py Closes #25185: Use UTF-8 encoding when reading pyvenv.cfg. 2015-10-01 11:27:00 +01:00
smtpd.py remove smtpd dead code (closes #23873) 2015-04-07 11:59:06 -04:00
smtplib.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:24:41 +03:00
sndhdr.py
socket.py accepted sockets shouldn't inherit the SOCK_NONBLOCK flag (closes #25471) 2015-10-24 20:06:04 -07:00
socketserver.py Issue #23358: Add missing BaseServer entry to socketserver.__all__. 2015-02-03 11:55:09 +02:00
sre_compile.py Got rid of the array module dependency in the re module. 2014-11-10 13:24:47 +02:00
sre_constants.py
sre_parse.py Issues #814253, #9179: Warnings now are raised when group references and 2015-02-21 12:08:52 +02:00
ssl.py use _import_symbols to import VERIFY_* constants 2015-03-04 23:18:57 -05:00
stat.py
statistics.py Issue #25494: Remove extra quote from docstring. 2015-10-27 22:00:41 -05:00
string.py Fixed issue #25034: Fix string.Formatter problem with auto-numbering 2015-09-29 10:27:38 -04:00
stringprep.py
struct.py
subprocess.py Issue #21619: Popen objects no longer leave a zombie after exit in the with 2015-02-28 12:43:08 +02:00
sunau.py Corrected docstrings of audio modules. writeframes() accepts bytes, not str. 2015-07-10 22:13:40 +03:00
symbol.py
symtable.py
sysconfig.py
tabnanny.py
tarfile.py Issue #24259: tarfile now raises a ReadError if an archive is truncated inside a data segment. 2015-07-06 09:27:24 +02:00
telnetlib.py Issue #23865: close() methods in multiple modules now are idempotent and more 2015-04-10 13:24:41 +03:00
tempfile.py Issue #22107: tempfile.gettempdir() and tempfile.mkdtemp() now try again 2015-05-20 00:11:48 +03:00
textwrap.py Issue #21827: Fixed textwrap.dedent() for the case when largest common 2015-10-28 21:39:36 +02:00
this.py
threading.py use the with statement for locking the internal condition (closes #25362) 2015-10-10 19:34:46 -07:00
timeit.py Issue #5633: Fixed timeit when the statement is a string and the setup is not. 2015-05-30 19:38:26 +03:00
token.py Issue #19936: Added executable bits or shebang lines to Python scripts which 2014-01-16 17:33:23 +02:00
tokenize.py Issue #20387: Restore retention of indentation during untokenize. 2015-06-22 10:01:12 +08:00
trace.py Issue #19936: Added executable bits or shebang lines to Python scripts which 2014-01-16 17:33:23 +02:00
traceback.py Issue #17825: Cursor ^ is correctly positioned for SyntaxError and IndentationError. 2014-01-22 01:16:25 +01:00
tracemalloc.py tracemalloc: filter_traces() raises a TypeError if filters is not an iterable 2014-03-10 11:05:07 +01:00
tty.py
turtle.py Issue #6639: Module-level turtle functions no longer raise TclError after 2015-02-22 17:25:33 +02:00
types.py Issue #23504: Added an __all__ to the types module. 2015-03-04 09:43:27 +02:00
uu.py
uuid.py Issue #17293: socket.gethostbyname() can raise an exception of FreeBSD. 2014-11-21 21:55:39 +02:00
warnings.py Fixed a typo in a comment (issue #23016). 2014-12-14 10:53:00 +02:00
wave.py Corrected docstrings of audio modules. writeframes() accepts bytes, not str. 2015-07-10 22:13:40 +03:00
weakref.py Issue #22958: Constructor and update method of weakref.WeakValueDictionary 2015-09-29 23:52:09 +03:00
webbrowser.py The webbrowser module now uses subprocess's start_new_session=True rather 2014-08-27 09:34:38 -07:00
xdrlib.py Issue #11694: Raise ConversionError in xdrlib as documented 2014-10-10 21:21:52 +03:00
zipfile.py Issue #14099: Backout changeset e5bb3044402b (except adapted tests). 2015-01-26 13:45:39 +02:00