| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
rest of Tcl source code. No ABI change. API change *should* be harmless.
|
|
|
| |
the Engineering Manual.
|
|\
| |
| | |
cause more harm than good. Purged them (except in zlib files).
|
| |\
| | |
| | | |
more harm than good. Purged them.
|
| | | |
|
| | |
| | |
| | | |
more harm than good. Purged them.
|
| | |
| | |
| | |
| | |
| | | |
over the tclEmptyStringRep->bytes as it is thread-shared
(thx to Gustaf Neumann for the (hard) work of locating this one).
|
| | |
| | |
| | |
| | | |
signed/unsigned mismatch breaking win32 symbol/debug build.
|
| | | |
|
| | |
| | |
| | |
| | | |
to set stringPtr->allocated to 0, leading to crashes.
|
| | |
| | |
| | |
| | | |
[Bug 2494093] and [Bug 2553906].
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* generic/tclTestObj.c: accesses when we append (some part of)
* tests/stringObj.test: a Tcl_Obj to itself. Added the
appendself and appendself2 subcommands to the [teststringobj] testing
command and added tests to the test suite. [Bug 2603158]
|
| | |
| | |
| | |
| | |
| | | |
* tests/stringObj.test: Tcl_AppendStringsToObj() no longer
crashes when operating on a pure unicode value. [Bug 2597185]
|
| | |
| | |
| | |
| | |
| | | |
AppendUtfToUtfRep routine to either avoid invalid arguments and
crashes, or to replace them with controlled panics. [Bug 2561794]
|
| | |
| | |
| | |
| | |
| | | |
Tcl_SetUnicodeObj() to panic on a shared object. [Bug 2561488]. Also
factored out common code to reduce duplication.
|
| | |
| | |
| | |
| | |
| | | |
memory allocation requests to the sizes that can be supported by
Tcl's memory allocation routines. [Bug 2494093].
|
| | |
| | |
| | |
| | |
| | | |
required to get correct results out of things like
STRING_UALLOC(num + append). [Bug 2494093].
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
start==NULL and numBytes<0. This is coverity's bug #20
* generic/tclStringObj.c (STRING_SIZE): fix allocation for
0-length strings. This is coverity's bugs #54-5
|
| | |
| | |
| | |
| | | |
in Tcl_GetRange [Bug 1410553]. Thanks to twylite and Peter Spjuth.
|
| | |
| | |
| | |
| | |
| | | |
over the tclEmptyStringRep->bytes as it is thread-shared
(thx to Gustaf Neumann for the (hard) work of locating this one).
|
| | |
| | |
| | |
| | | |
caught by valgrind testing.
|
| | | |
|
| | |
| | |
| | |
| | | |
[format]. [Bug 2845535]
|
| | |
| | |
| | |
| | |
| | | |
* tests/format.test: when format spec request large width
floating point values. Thanks to Clemens Misch. [Bug 2830354]
|
| | | |
|
| | |
| | |
| | |
| | | |
(silence msvc6 warnings)
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
integer calculations computing the length of the %ll formats of
really big integers. Also added protections so that [format]s that
would produce results overflowing the maximum string length of Tcl
values throw a normal Tcl error instead of a panic. [Bug 2801413]
|
| | |
| | |
| | |
| | | |
to set stringPtr->allocated to 0, leading to crashes.
|
| | | |
|
| | |
| | |
| | |
| | | |
by compiler warning about undefined "dst".
|
| | |
| | |
| | |
| | | |
[Bug 2494093] and [Bug 2553906].
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* generic/tclTestObj.c: accesses when we append (some part of)
* tests/stringObj.test: a Tcl_Obj to itself. Added the
appendself and appendself2 subcommands to the [teststringobj] testing
command and added tests to the test suite. [Bug 2603158]
|
| | |
| | |
| | |
| | |
| | | |
* tests/stringObj.test: Tcl_AppendStringsToObj() no longer
crashes when operating on a pure unicode value. [Bug 2597185]
|
| | |
| | |
| | |
| | |
| | | |
AppendUtfToUtfRep routine to either avoid invalid arguments and
crashes, or to replace them with controlled panics. [Bug 2561794]
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Tcl_SetUnicodeObj() to panic on a shared object. [Bug 2561488]. Also
factored out common code to reduce duplication.
|
| | |
| | |
| | |
| | |
| | | |
memory allocation requests to the sizes that can be supported by
Tcl's memory allocation routines. [Bug 2494093].
|
| | |
| | |
| | |
| | |
| | | |
required to get correct results out of things like
STRING_UALLOC(num + append). [Bug 2494093].
|
| | |
| | |
| | |
| | |
| | |
| | | |
Fix [format {% d}] so that it behaves the same way as in 8.4 and
as C's printf().
* tests/format.test: Add a test for '% d' and '%+d'.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
when a bytearray gets its internals entangled with zlib for more than
a passing moment, that bytearray will never be shimmered away. This
increases the amount of copying but is simple to get right, which is a
reasonable trade-off.
* generic/tclStringObj.c (Tcl_AppendObjToObj): Added some special
cases so that most of the time when you build up a bytearray by
appending, it actually ends up being a bytearray rather than
shimmering back and forth to string.
* tests/http11.test (check_crc): Use a simpler way to express the
functionality of this procedure.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* generic/tclInt.h (TclAppendBytesToByteArray): placing overflow
protection responsibility on caller. Convert "len" argument to signed
int which any value already vetted for overflow issues will fit into.
* generic/tclStringObj.c: Update caller; standardize panic msg.
* generic/tclBinary.c (UpdateStringOfByteArray): Add panic
when the generated string representation would grow beyond Tcl's
size limits. [Bug 2994924]
|
| | |
| | |
| | |
| | |
| | |
| | | |
* generic/tclStringObj.c (Tcl_AppendObjToObj): an append of a byte
array to another into an efficent operation. The problem was the (lack
of) a proper growth management strategy for the byte array.
|
| | |
| | |
| | |
| | | |
caught by valgrind testing.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* use do { ... } while (0) in macros
* avoid shadowing one local variable with another
* use clearer 'foo.bar++;' instead of '++foo.bar;' where result not
required (i.e., semantically equivalent)
* follow Engineering Manual rules on spacing and declarations
|