summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclObj.c (Tcl_GetCommandFromObj): [Bug 2979402]: Reorderdgp2010-03-301-2/+2
| | | | | the validity tests on internal rep of a "cmdName" value to avoid invalid reads reported by valgrind.
* * generic/tclStringObj.c: Fix array overrun in test format-1.12dgp2010-03-291-2/+2
| | | | caught by valgrind testing.
* * generic/tclResult.c: [Bug 2383005] Revise [return -errorcode] sodgp2010-03-241-1/+21
| | | | * tests/result.test: that it rejects illegal non-list values.
* * generic/tclIO.c (CopyData): Allow the total number of bytes copieddkf2010-03-202-6/+7
| | | | by [fcopy] to exceed 2GB. Can happen when no -size parameter given.
* constification backport to silence warningdgp2010-03-191-3/+3
|
* * generic/tclListObj.c: Prevent in overflow trouble in [lreplace]dgp2010-03-182-3/+107
| | | | | * generic/tclTestObj.c: operations. Thanks to kbk for fix and test. * tests/listObj.test: [Bug 2971669].
* * generic/tclIORChan.c: [Bug 2936225]: Thanks to Alexandre Ferrieuxandreas_kupries2010-03-091-6/+27
| | | | | | * doc/refchan.n: <ferrieux@users.sourceforge.net> for debugging and fixing * tests/ioCmd.test: the problem. It is the write-side equivalent to the bug fixed 2009-08-06.
* Only look for the needle when it fits in the haystack. [Bug 2960021]dkf2010-02-271-3/+13
|
* Fix [Bug 2954959] expr abs(0.0) is -0.0nijtmans2010-02-211-19/+41
| | | | and added test cases for it.
* [Bug 2949740]: Do not try to put a NULL pipeline channel into binary mode.dkf2010-02-111-2/+2
|
* Backport various formatting (spacing)nijtmans2010-02-079-2738/+2408
| | | | | | | changes from HEAD, so diffing between 8.5.x and 8.6 shows the real structural differences again. (any signature change not backported!)
* More corrections to the [array unset] command.dkf2010-02-031-7/+6
|
* * generic/tclCompile.c: [Bug 2933089]: A literal sharing problem withandreas_kupries2010-02-023-3/+101
| | | | | | * generic/tclCompile.h: 'info frame' affects not only 8.6 but 8.5 as * generic/tclExecute.h: well. Backported the fix done in 8.6, without * tests/info.test: changes. New testcase info-39.1.
* Ensure that decrements never assume that they can't do (actual) deletion.dkf2010-02-021-3/+7
|
* Fix [Bug 2939073]: dangling ref when an unset trace triggered by [array unset]dkf2010-02-021-20/+59
| | | | hits the next element to be deleted.
* [Bug 2942697]: Rework the RE engine so that certain pathological patterns aredkf2010-02-011-50/+41
| | | | | matched much more rapidly. Many thanks to Tom Lane for dianosing this issue and providing an initial patch.
* better panic messagenijtmans2010-02-011-9/+9
|
* Various CYGWIN-related fixesnijtmans2010-01-315-247/+260
| | | | | | | | | backported from HEAD. Still configure script not modified, so CYGWIN build is still disabled. Reason: although the build succeeds with those changes, many tests still fail.
* Fix macro conflict on CYGWIN: don't use "small".nijtmans2010-01-291-12/+12
|
* Use correct TCL_LL_MODIFIER for CYGWIN.nijtmans2010-01-292-67/+76
| | | | | Formatting (all backported from HEAD) Fix gcc 4.4 warning: ignoring return value of ‘write’,
* * generic/tclIO.c (CreateScriptRecord): [Bug 2918110]: Initializeandreas_kupries2010-01-181-6/+23
| | | | | | | | the EventScriptRecord (esPtr) fully before handing it to Tcl_CreateChannelHandler for registration. Otherwise a reflected channel calling 'chan postevent' (== Tcl_NotifyChannel) in its 'watchProc' will cause the function 'TclChannelEventScriptInvoker' to be run on an uninitialized structure.
* [Bug 2932421]: Make [format] less likely to smash intreps.dkf2010-01-181-21/+33
|
* Fix environment tests under CYGWINnijtmans2010-01-062-11/+33
|
* Various trivial fixes, discovered during CYGWIN porting attempt. All ↵nijtmans2010-01-062-4/+4
| | | | backported from trunk.
* * generic/tclPathObj.c (TclPathPart): Correct inconsistency betweendgp2010-01-051-26/+10
| | | | | | * tests/fileName.test (filename-14.31): the string rep and the intrep of a path value created by [file rootname]. Thanks to Vitaly Magerya for reporting. [Bug 2918610]
* [Bug 2895741]: Make min() and max() supported in safe interpreters.dkf2009-12-291-1/+18
|
* [Bug 942170]: Detect the st_blocks field of 'struct stat' correctly.dkf2009-12-283-36/+34
|
* [Bug 2891362]: Make time limits work better with the event loop.dkf2009-12-281-2/+12
|
* Plug testing memleak. [Bug 2895367]dkf2009-12-121-89/+110
|
* * generic/tclObj.c (TclContinuationsEnter): [Bug 2895323]: Updatedandreas_kupries2009-12-101-6/+20
| | | | | | | | comments to describe when the function can be entered for the same Tcl_Obj* multiple times. This is a continuation of the 2009-11-10 entry where a memory leak was plugged, but where not sure if that was just a band-aid to paper over some other error. It isn't, this is a legal situation.
* * generic/tclStrToD.c: Correct conditional compile directives todgp2009-12-071-4/+5
| | | | | better detect the toolchain that needs extra work for proper underflow treatment instead of merely detecting the mips platform. [Bug 2902010].
* Fix [Bug 2891556] and improve test to detect similar manifestations in the ↵ferrieux2009-11-161-6/+22
| | | | future.
* * generic/tclIO.c (CopyData): [Bug 2895565]. Dropped bogosityandreas_kupries2009-11-121-10/+13
| | | | | | which used the number of _written_ bytes or character to update the counters for the read bytes/characters. See last entry for the test case.
* * generic/tclClock.c (TclClockInit): Do not create [clock] supportdgp2009-11-121-1/+10
| | | | commands in safe interps.
* Backported fix for [Bug 2888099] (close discards ENOSPC error) byferrieux2009-11-111-2/+15
| | | | | saving the errno from the first of two FlushChannel()s. Uneasy to test; might need specific channel drivers. Four-hands with aku.
* * generic/tclBasic.c: Plug another leak in TCL_EVAL_DIRECTdgp2009-11-101-9/+9
| | | | evaluation.
* * generic/tclObj.c: Plus memory leak in TclContinuationsEnter().dgp2009-11-101-1/+12
| | | | [Bug 2895323]
* * generic/tclBasic.c (TclEvalObjEx): Plug memory leak indgp2009-11-091-7/+7
| | | | | | TCL_EVAL_DIRECT evaluation. * tests/info.test: Resolve ambiguous resolution of variable "res".
* * generic/tcl.h: Bump to 8.5.8 for release.dgp2009-11-031-3/+3
| | | | | | | | | | | | * library/init.tcl: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/configure.in: * README: * unix/configure: autoconf-2.59 * win/configure:
* [Bug 2889593]: Make [expr round()] give the right error.dkf2009-10-311-2/+2
|
* * generic/tcl.h: Changed the typedef for the mp_digit typedgp2009-10-291-6/+2
| | | | | | | | | | | | | | | | | | | | | | | from: typedef unsigned long mp_digit; to: typedef unsigned int mp_digit; For 32-bit builds where "long" and "int" are two names for the same thing, this is no change at all. For 64-bit builds, though, this causes the dp[] array of an mp_int to be made up of 32-bit elements instead of 64-bit elements. This is a huge improvement because details elsewhere in the mp_int implementation cause only 28 bits of each element to be actually used storing number data. Without this change bignums are over 50% wasted space on 64-bit systems. [Bug 2800740]. ***POTENTIAL INCOMPATIBILITY*** For 64-bit builds, callers of routines with (mp_digit) or (mp_digit *) arguments *will*, and callers of routines with (mp_int *) arguments *may* suffer both binary and stubs incompatibilities with Tcl releases 8.5.0 - 8.5.7. Such possibilities should be checked, and if such incompatibilities are present, suitable [package require] requirements on the Tcl release should be put in place to keep such built code [load]-ing only in Tcl interps that are compatible.
* * generic/tclLiteral.c: Backport fix for [Bug 2888044].dgp2009-10-281-1/+2
|
* * generic/tclPathObj.c: Missing refcount on cached normalized pathdgp2009-10-271-1/+2
| | | | caused crashes. [Bug 2884203].
* * generic/tclIO.c (FlushChannel): Skip OutputProc for low-levelandreas_kupries2009-10-231-2/+6
| | | | | | 0-length writes. When closing pipes which have already been closed not skipping leads to spurious SIG_PIPE signals. Reported by Mikhail Teterin <mi+thun@aldan.algebra.com>.
* Fix [Bug 2882561].dkf2009-10-211-3/+3
|
* * generic/tclIO.c: Revised ReadChars and FilterInputBytes routinesdgp2009-10-191-17/+27
| | | | | | | to permit reads to continue up to the string limits of Tcl values. Before revisions, large read attempts could panic when as little as half the limiting value length was reached. [Patch 2107634] Thanks to Sean Morrison and Bob Parker for their roles in the fix.
* Fix for [Bug 988703, 1565466]Joe Mistachkin2009-10-186-13/+165
|
* Fix [Bug 2629338]: Stop evil unset traces from accessing freed memory.dkf2009-10-172-6/+27
|
* [Bug 2874678]: Don't leak bignums in [dict incr]...dkf2009-10-081-1/+7
|
* * generic/tclObj.c: [Bug 2871908]: Plug memory leaks of theandreas_kupries2009-10-072-17/+59
| | | | | | | objThreadMap and lineCLPtr hashtables. Also make the names of the continuation line information initialization and finalization functions more consistent. Patch supplied by Joe Mistachkin <joe@mistachkin.com>.