cpython/Python
Serhiy Storchaka 6156560e4b Issue #25678: Copy buffer objects to null-terminated strings.
Avoid buffer overreads when int(), long(), float(), and compile()
are passed buffer objects.  Similar code is removed from the
complex() constructor, where it was not reachable.

Patch backported from issue #24802 by Eryk Sun.
2015-11-20 21:56:21 +02:00
..
Python-ast.c Make PyAST_obj2mod C89 compliant. (Follow-up commit from asdl_c.py.) 2012-12-13 07:22:16 +00:00
_warnings.c correct ref counting of default_action (closes #22017) 2014-07-20 13:04:11 -07:00
asdl.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
ast.c remove casts 2014-08-09 19:39:55 -07:00
atof.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
bltinmodule.c Issue #25678: Copy buffer objects to null-terminated strings. 2015-11-20 21:56:21 +02:00
ceval.c remove tabs from ceval.c (closes #24895) 2015-08-19 20:38:39 -07:00
codecs.c Issue #19543: Emit deprecation warning for known non-text encodings. 2015-05-31 20:21:00 +03:00
compile.c check return value of PyString_FromStringAndSize for NULL (closes #24734) 2015-07-27 07:47:21 -07:00
dtoa.c Issue #19638: Raise ValueError instead of crashing when converting billion character strings to float. 2013-11-26 16:38:25 +00:00
dup2.c Merged revisions 85236 via svnmerge from 2010-10-05 22:21:03 +00:00
dynload_aix.c Merged revisions 88430,88438,88440 via svnmerge from 2011-02-25 11:09:02 +00:00
dynload_atheos.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
dynload_beos.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
dynload_dl.c Use PyOS_snprintf instead of sprintf. 2001-11-28 20:42:20 +00:00
dynload_hpux.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
dynload_next.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
dynload_os2.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
dynload_shlib.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
dynload_stub.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
dynload_win.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
errors.c Issue #23781: Add private helper function _PyErr_ReplaceException() that 2015-03-30 09:48:42 +03:00
formatter_string.c Allow core Python build to succeed under WITHOUT_COMPLEX. The module build stage still fails. 2009-10-15 17:45:39 +00:00
formatter_unicode.c Issue #1588: Add complex.__format__. 2009-04-30 00:58:58 +00:00
frozen.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
frozenmain.c avoid reading unallocated memory when argc == 0 (closes #22633) 2015-02-14 15:17:25 -05:00
future.c this should technicaly be identifier 2012-03-22 10:39:16 -04:00
getargs.c Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641 2012-09-10 13:16:45 +02:00
getcompiler.c The GCC version is loooooooooong; put it on a new line. 2000-09-05 04:40:39 +00:00
getcopyright.c update for copyright for 2015 2014-12-31 18:09:36 -06:00
getcwd.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
getopt.c #16306: report only the first unknown option and add more tests. Patch by Serhiy Storchaka. 2012-11-23 18:46:11 +02:00
getplatform.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
getversion.c Merged revisions 83429,83436 via svnmerge from 2010-08-01 22:10:15 +00:00
graminit.c remove dictmaker rule; it's unused 2010-12-11 04:25:57 +00:00
import.c Issue #23998: PyImport_ReInitLock() now checks for lock allocation error 2015-04-19 21:08:28 +02:00
importdl.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
importdl.h Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
mactoolboxglue.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
makeopcodetargets.py backport computed gotos (#4753) 2015-05-28 12:45:31 -05:00
marshal.c Fix reference leaks introduced by the patch for issue #5308. 2013-07-11 19:14:07 +03:00
modsupport.c Merged revisions 87251 via svnmerge from 2010-12-15 01:36:03 +00:00
mysnprintf.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
mystrtoul.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
opcode_targets.h backport computed gotos (#4753) 2015-05-28 12:45:31 -05:00
peephole.c Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer 2015-02-16 13:16:07 +02:00
pyarena.c remove unnecessary clearing of list 2013-01-19 14:58:38 -05:00
pyctype.c Issue #5793: rationalize isdigit / isalpha / tolower, etc. Will port to py3k. Should fix Windows buildbot errors. 2009-04-27 19:04:37 +00:00
pyfpe.c Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774. 2001-07-26 13:41:06 +00:00
pymath.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
pystate.c revert tstate_delete_common, since it's pretty much wrong 2014-06-17 00:34:14 -07:00
pystrcmp.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
pystrtod.c Removed duplicated words in in comments and docs. 2014-12-01 18:16:30 +02:00
pythonrun.c Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), 2015-05-30 17:45:12 +03:00
random.c Issue #25003: os.urandom() doesn't use getentropy() on Solaris because 2015-10-01 09:57:26 +02:00
sigcheck.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
strdup.c Mass ANSIfication of function definitions. Doesn't cover all 'extern' 2000-07-22 18:47:25 +00:00
strtod.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
structmember.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
symtable.c add missing 'because' (closes #22008) 2014-07-18 16:25:13 -07:00
sysmodule.c Issue #22193: Fixed integer overflow error in sys.getsizeof(). 2014-11-15 13:21:01 +02:00
thread.c Removed duplicated words in in comments and docs. 2014-12-01 18:16:30 +02:00
thread_atheos.h Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
thread_beos.h Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
thread_cthread.h Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
thread_foobar.h Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
thread_lwp.h Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
thread_nt.h Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
thread_os2.h Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
thread_pth.h Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
thread_pthread.h Issue #21963: backout issue #1856 patch (avoid crashes and lockups when 2014-11-21 02:04:21 +01:00
thread_sgi.h Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
thread_solaris.h Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
thread_wince.h Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
traceback.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00