summaryrefslogtreecommitdiff
path: root/Python/traceback.c
AgeCommit message (Collapse)AuthorLines
2001-12-21backport 2.35:Anthony Baxter-3/+3
SF bug 485175: buffer overflow in traceback.c. Bugfix candidate. tb_displayline(): the sprintf format was choking off the file name, but used plain %s for the function name (which can be arbitrarily long). Limit both to 500 chars max.
2000-09-01REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum-9/+0
This should match the situation in the 1.6b1 tree.
2000-07-22Mass ANSIfication of function definitions. Doesn't cover all 'extern'Thomas Wouters-23/+8
declarations yet, those come later.
2000-06-30Change copyright notice - 2nd try.Guido van Rossum-6/+0
2000-06-30Change copyright notice.Guido van Rossum-21/+6
2000-06-28Trent Mick's Win64 changes: size_t vs. int or long; also some overflowGuido van Rossum-3/+3
tests.
2000-05-03Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum-1/+1
For more comments, read the patches@python.org archives. For documentation read the comments in mymalloc.h and objimpl.h. (This is not exactly what Vladimir posted to the patches list; I've made a few changes, and Vladimir sent me a fix in private email for a problem that only occurs in debug mode. I'm also holding back on his change to main.c, which seems unnecessary to me.)
2000-03-31Change traceback error message to "most recent call last" fromGuido van Rossum-1/+1
"innermost last". The latter was mysterious to newbies.
2000-03-13Christian Tismer's "trashcan" patch:Guido van Rossum-0/+2
Added wrapping macros to dictobject.c, listobject.c, tupleobject.c, frameobject.c, traceback.c that safely prevends core dumps on stack overflow. Macros and functions in object.c, object.h. The method is an "elevator destructor" that turns cascading deletes into tail recursive behavior when some limit is hit.
1999-09-18Tim Peters fixed PR#75: very long lines cause incorrect tracebacks.Guido van Rossum-2/+11
1997-05-22PyFile_WriteString now returns an error indicator instead of callingGuido van Rossum-14/+30
PyErr_Clear(). Add checking of those errors.
1997-05-05Massive changes for separate thread state management.Guido van Rossum-30/+6
All per-thread globals are moved into a struct which is manipulated separately.
1997-05-05Only use PyCode_Addr2Line to get tb_lineno when Py_OptimizeFlag is set.Guido van Rossum-2/+3
1997-04-29Quickly renamed.Guido van Rossum-57/+57
1997-04-11Keep gcc -Wall and Microsoft VC happy.Guido van Rossum-1/+1
1997-01-24Get the line number from PyCode_Addr2Line instead of believingGuido van Rossum-1/+4
tb_lineno. Store it in tb_lineno for the user.
1996-10-25New permission notice, includes CNRI.Guido van Rossum-12/+19
1995-09-18spell TraceBack with capital BGuido van Rossum-2/+2
1995-07-18keyword arguments and faster callsGuido van Rossum-3/+4
1995-07-07ignore control-l (parallelling change to tokenizer.c)Guido van Rossum-1/+1
1995-01-04Added 1995 to copyright message.Guido van Rossum-2/+2
bltinmodule.c: fixed coerce() nightmare in ternary pow(). modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject(). pythonrun.c: move flushline() into and around print_error().
1995-01-02Lots of changes, most minor (fatal() instead of abort(), use ofGuido van Rossum-1/+0
err_fetch/err_restore and so on). But... NOTE: import.c has been rewritten and all the DL stuff is now in the new file importdl.c.
1994-09-29 * Python/traceback.c: security fix -- check for buffer oveflowGuido van Rossum-1/+6
before concatenating sys.path item and module name
1994-08-29add function name to traceback infoGuido van Rossum-15/+15
MPW fixes
1993-12-17* mpzmodule.c: cast some methods to the proper type.Guido van Rossum-5/+23
* traceback.c (tb_print): use sys.tracebacklimit as a maximum number of traceback entries to print (default 1000). * ceval.c (printtraceback): Don't print stack trace header -- this is now done by tb_print().
1993-03-29* Changed all copyright messages to include 1993.Guido van Rossum-2/+2
* Stubs for faster implementation of local variables (not yet finished) * Added function name to code object. Print it for code and function objects. THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version number has changed accordingly) * Print address of self for built-in methods * New internal functions getattro and setattro (getattr/setattr with string object arg) * Replaced "dictobject" with more powerful "mappingobject" * New per-type functio tp_hash to implement arbitrary object hashing, and hashobject() to interface to it * Added built-in functions hash(v) and hasattr(v, 'name') * classobject: made some functions static that accidentally weren't; added __hash__ special instance method to implement hash() * Added proper comparison for built-in methods and functions
1992-09-25Modified most (but not yet all) I/O to always go through sys.stdout orGuido van Rossum-16/+19
sys.stderr or sys.stdin, and to work with any object as long as it has a write() (respectively readline()) methods. Some functions that took a FILE* argument now take an object* argument.
1992-04-05Copyright for 1992 addedGuido van Rossum-1/+1
1992-02-26Move printing of filename and lineno to tb_displayline.Guido van Rossum-20/+45
Search sys.path if the filename isn't found. Include osdefs.h.
1992-01-14tb_here() can now get the lasti and lineno arguments from the frame.Guido van Rossum-4/+2
1991-06-24Don't use printobject() to print a string (filename).Guido van Rossum-7/+10
Print ';' instead of ',' between file and line for MPW.
1991-06-07printobject now returns an error codeGuido van Rossum-4/+6
1991-02-19Added copyright notice.Guido van Rossum-0/+24
1990-12-20"Compiling" versionGuido van Rossum-0/+193