cpython/Python
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
..
Python-ast.c
_warnings.c merge 3.3 (#24096) 2015-05-03 11:28:46 -04:00
asdl.c
ast.c revert lineno and col_offset changes from #16795 (closes #21295) 2015-02-02 10:51:20 -05:00
bltinmodule.c Issue #24802: Copy bytes-like objects to null-terminated buffers if necessary 2015-11-07 02:32:21 +00:00
ceval.c Various minor typos in documentation and comments 2015-10-07 10:26:23 +00:00
ceval_gil.h
codecs.c Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), 2015-05-30 17:45:22 +03:00
compile.c Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
condvar.h
dtoa.c
dup2.c
dynamic_annotations.c
dynload_aix.c
dynload_dl.c
dynload_hpux.c
dynload_next.c
dynload_shlib.c
dynload_stub.c
dynload_win.c
errors.c Issue #22977: Fixed formatting Windows error messages on Wine. 2015-04-02 09:47:27 +03:00
fileutils.c Fixes incorrect use of GetLastError where errno should be used. 2015-03-14 11:38:27 -07:00
formatter_unicode.c
frozen.c
frozenmain.c avoid reading unallocated memory when argc == 0 (closes #22633) 2015-02-14 15:16:32 -05:00
future.c
getargs.c Fixed error message for the "u#" format code. 2015-04-19 21:11:30 +03:00
getcompiler.c
getcopyright.c merge 3.2 2014-12-31 18:10:13 -06:00
getopt.c
getplatform.c
getversion.c
graminit.c
import.c Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), 2015-05-30 17:45:22 +03:00
importdl.c
importdl.h
importlib.h Issue #25280: Import trace messages emitted in verbose (-v) mode are no 2015-10-01 11:08:50 +03:00
makeopcodetargets.py
marshal.c Fixed memory leak in marshal. 2015-01-28 17:10:48 +02:00
modsupport.c
mysnprintf.c
mystrtoul.c
opcode_targets.h
peephole.c Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer 2015-02-16 13:28:22 +02:00
pyarena.c
pyctype.c
pyfpe.c
pyhash.c
pymath.c Issue 24366: Indent code (thanks to li4ick for reporting). 2015-06-02 18:53:46 -04:00
pystate.c
pystrcmp.c
pystrtod.c Removed duplicated words in in comments and docs. 2014-12-01 18:28:43 +02:00
pythonrun.c Fix race condition in create_stdio() 2015-09-04 17:27:49 +02:00
pytime.c
random.c Issue #25003: os.urandom() doesn't use getentropy() on Solaris because 2015-10-01 09:59:32 +02:00
sigcheck.c
strdup.c
structmember.c
symtable.c remove dead *-import checking code (closes #24049) 2015-04-24 12:02:29 -04:00
sysmodule.c Issue #23181: More "codepoint" -> "code point". 2015-01-18 11:28:37 +02:00
thread.c Issue #25523: Correct "a" article to "an" article 2015-11-02 03:37:02 +00:00
thread_foobar.h
thread_nt.h
thread_pthread.h
traceback.c Issue #24436: Added const qualifiers for char* arguments of _PyTraceback_Add. 2015-06-21 15:59:46 +03:00