diff options
author | sebres <sebres@users.sourceforge.net> | 2018-03-13 18:52:45 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2018-03-13 18:52:45 (GMT) |
commit | 64eaafad72c1c1c0a76fb1adffb7200f79debb04 (patch) | |
tree | 746280001dd5424d8f68eb4bd663069d458aee15 /unix/tclUnixTest.c | |
parent | 6c0170972f57e3d1daf5684c55eccfb2d78b386f (diff) | |
download | tcl-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