| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
because of a false notion of limited storage space.
The test suite does not appear to demonstrate any case where this matters.
Could be an incomplete test suite, or an example of pointless code.
|
|
|
|
| |
Then have ReadChars() use that machinery to resize buffer receiving input,
rather than invent its own version. Simplify ReadChars() callers.
|
| |
|
|
|
|
| |
the same field, but it allows twoPtrValue.ptr2 to be used for other purposes.
|
|\
| |
| | |
Also corrected test for when growth is needed.
|
| |\
| | |
| | | |
Also corrected test for when growth is needed.
|
| |/
| |
| |
| | |
Also converted some memcpy() to memmove() to reliably handle overlapping
copies, and corrected test for when growth is needed.
|
| | |
|
| | |
|
| |
| |
| | |
to also reset the bytes allocated for string rep to zero [Bug 3285472].
|
|\ \
| |/
| | |
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'.
|
| |
| |
| |
| | |
leaked an mp_int.
|
| |
| |
| |
| |
| | |
* tests/format.test: account for big.used == 0 corner case in the
%ll(idox) format directives. [Bug 1867855].
|
| | |
|