diff options
author | dgp <dgp@users.sourceforge.net> | 2015-11-10 16:34:04 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2015-11-10 16:34:04 (GMT) |
commit | 47ffd7bc8e8b6cd4e4f86ec9bc969a4319fb291c (patch) | |
tree | 1d9306a12e4795496921cb288564d6a3ce0419f2 /generic/tclIO.c | |
parent | 573cabc6d240f1e84a271373810ae254a2dd4791 (diff) | |
parent | c5b0b72ed7cbfd413896d9c9b0cb7bdcf521fc53 (diff) | |
download | tcl-47ffd7bc8e8b6cd4e4f86ec9bc969a4319fb291c.zip tcl-47ffd7bc8e8b6cd4e4f86ec9bc969a4319fb291c.tar.gz tcl-47ffd7bc8e8b6cd4e4f86ec9bc969a4319fb291c.tar.bz2 |
[261a8a79f0] Integer overflow leads to segfault.
Diffstat (limited to 'generic/tclIO.c')
-rw-r--r-- | generic/tclIO.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c index 8e9e346..f93d00d 100644 --- a/generic/tclIO.c +++ b/generic/tclIO.c @@ -6380,7 +6380,7 @@ TranslateInputEOL( break; default: /* In other modes, at most 2 src bytes become a dst byte. */ - if (srcLen > 2 * dstLen) { + if (srcLen/2 > dstLen) { srcLen = 2 * dstLen; } break; |