cpython/Python
Guido van Rossum 106f2dae86 Trent Mick:
Various small fixes to the builtin module to ensure no buffer
overflows.

- chunk #1:
Proper casting to ensure no truncation, and hence no surprises, in the
comparison.

- chunk #2:
The id() function guarantees a unique return value for different
objects.  It does this by returning the pointer to the object. By
returning a PyInt, on Win64 (sizeof(long) < sizeof(void*)) the pointer
is truncated and the guarantee may be proven false. The appropriate
return function is PyLong_FromVoidPtr, this returns a PyLong if that
is necessary to return the pointer without truncation.

[GvR: note that this means that id() can now return a long on Win32
platforms.  This *might* break some code...]

- chunk #3:
Ensure no overflow in raw_input(). Granted the user would have to pass
in >2GB of data but it *is* a possible buffer overflow condition.
2000-06-28 21:12:25 +00:00
..
.cvsignore Ignore a bunch of generated files. 2000-05-02 18:34:30 +00:00
atof.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
bltinmodule.c Trent Mick: 2000-06-28 21:12:25 +00:00
ceval.c Trent Mick: 2000-05-08 14:06:50 +00:00
codecs.c M.-A. Lemburg <mal@lemburg.com>: 2000-05-09 19:55:59 +00:00
compile.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
dup2.c MPW changes 1994-08-29 10:43:12 +00:00
dynload_aix.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_beos.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_dl.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_hpux.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_mac.c Jack Jansen: The new version of the GUSI i/o library on the Macintosh 2000-04-24 15:08:18 +00:00
dynload_next.c Skip Montanaro: add string precisions to calls to PyErr_Format 2000-04-10 12:46:51 +00:00
dynload_os2.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_shlib.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_stub.c The old platform-specific contents of importdl.c, broken down into one 1999-12-20 21:18:49 +00:00
dynload_win.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
errors.c PyErr_GivenExceptionMatches(): Check for err==NULL and exc==NULL and 2000-05-02 19:27:51 +00:00
exceptions.c mark SyntaxError__str__ as METH_VARARGS 2000-06-20 18:36:26 +00:00
fmod.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
frozen.c Add primitive test for frozen package. 1998-04-03 21:10:36 +00:00
frozenmain.c Call PyInitFrozenExtensions() as requested by Mark Hammond (his patch). 1999-01-02 21:42:48 +00:00
getargs.c Trent Mick <trentm@activestate.com>: 2000-05-09 21:50:00 +00:00
getcompiler.c Make it return a _const_ char*. 1997-07-19 19:48:41 +00:00
getcopyright.c At Bob Kahn's request, add CNRI to the copyright string (but not to 2000-05-10 20:06:00 +00:00
getcwd.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
getmtime.c First part of package support. 1997-09-05 07:33:22 +00:00
getopt.c Tim Peters discovered a bug in the Python-supplied getopt(): 1999-09-13 13:45:32 +00:00
getplatform.c Make it return a _const_ char*. 1997-07-19 19:48:41 +00:00
getversion.c Allow longer strings (up to 80 chars each) for version, build, 1999-04-22 12:03:40 +00:00
graminit.c slightly modified version of Greg Ewing's extended call syntax patch 2000-03-28 23:49:17 +00:00
hypot.c *** empty log message *** 1996-08-29 18:10:41 +00:00
import.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00
importdl.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
importdl.h For Windows, need to add #include <windows.h>. 1999-12-20 22:55:03 +00:00
Makefile.in Added exceptions.o to the list of object to build in this subdir. 2000-05-26 19:04:27 +00:00
marshal.c Michael Hudson <mwh21@cam.ac.uk>: 2000-06-28 18:47:56 +00:00
memmove.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
modsupport.c Brian Hooper <brian_takashi@hotmail.com>: 2000-04-28 14:42:37 +00:00
mystrtoul.c Changes by Mark Hammond for Windows CE. Mostly of the form 1999-04-07 16:07:23 +00:00
pyfpe.c Restructure the file so that it is never empty. No longer needs 1998-08-25 17:48:25 +00:00
pystate.c CRITICAL PATCH! 1999-06-18 14:22:24 +00:00
pythonmain.c Allow mac user to set "command line flags" by option-starting python. 1995-07-29 13:53:59 +00:00
pythonrun.c Add new parser error code, E_OVERFLOW. This error is returned when 2000-06-20 19:10:44 +00:00
sigcheck.c Quickly renamed the remaining files -- this directory is done. 1997-04-29 20:08:16 +00:00
strdup.c Patches by William Lewis for Nextstep descendants. 1999-01-27 17:53:11 +00:00
strerror.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
strtod.c Changes by Mark Hammond for Windows CE. Mostly of the form 1999-04-07 16:07:23 +00:00
structmember.c Trivial little change: when setting a member to an object, hold the 1998-05-20 22:25:32 +00:00
sysmodule.c Added a new debug method sys.gettotalrefcount(), which returns the total number of references on all Python objects. This is only enabled when Py_TRACE_REFS is defined (which includes default debug builds under Windows). 2000-06-20 08:12:48 +00:00
thread_beos.h Thanks to Chris Herborth, the thread primitives now have proper Py* 1998-12-21 19:32:43 +00:00
thread_cthread.h Thanks to Chris Herborth, the thread primitives now have proper Py* 1998-12-21 19:32:43 +00:00
thread_foobar.h Thanks to Chris Herborth, the thread primitives now have proper Py* 1998-12-21 19:32:43 +00:00
thread_lwp.h Thanks to Chris Herborth, the thread primitives now have proper Py* 1998-12-21 19:32:43 +00:00
thread_nt.h Bill Tutt: 2000-05-11 12:53:51 +00:00
thread_os2.h Thanks to Chris Herborth, the thread primitives now have proper Py* 1998-12-21 19:32:43 +00:00
thread_pth.h Andy Dustman: add GNU pth user-space thread support. 2000-05-08 13:41:38 +00:00
thread_pthread.h Rob Riggs wrote: 1999-03-15 20:27:53 +00:00
thread_sgi.h Thanks to Chris Herborth, the thread primitives now have proper Py* 1998-12-21 19:32:43 +00:00
thread_solaris.h While I can't really test this thoroughly, Pat Knight and the Solaris 1999-04-13 14:32:12 +00:00
thread_wince.h Win/CE thread support by Mark Hammond. 1999-04-08 13:57:06 +00:00
thread.c Andy Dustman: add GNU pth user-space thread support. 2000-05-08 13:41:38 +00:00
traceback.c Vladimir Marangozov's long-awaited malloc restructuring. 2000-05-03 23:44:39 +00:00