summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixTest.c
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2018-03-13 18:52:45 (GMT)
committersebres <sebres@users.sourceforge.net>2018-03-13 18:52:45 (GMT)
commit64eaafad72c1c1c0a76fb1adffb7200f79debb04 (patch)
tree746280001dd5424d8f68eb4bd663069d458aee15 /unix/tclUnixTest.c
parent6c0170972f57e3d1daf5684c55eccfb2d78b386f (diff)
downloadtcl-64eaafad72c1c1c0a76fb1adffb7200f79debb04.zip
tcl-64eaafad72c1c1c0a76fb1adffb7200f79debb04.tar.gz
tcl-64eaafad72c1c1c0a76fb1adffb7200f79debb04.tar.bz2
remove unexpected panic by TclTrimLeft/TclTrimRight, handling rewritten:
- instead of check the NTS-byte after string (may cause segfault by access violation if out of range), it checks now the end-character is well-formed utf8-sequence; - both work well now on non-NTS strings (without null character at end); - additionally fixed wrong offsets (trim-length if last char malformed in case of out of range); new function TclTrim introduced (as combination of TclTrimLeft/TclTrimRight).
Diffstat (limited to 'unix/tclUnixTest.c')
0 files changed, 0 insertions, 0 deletions