]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
At last, a fix for `large-clipboard-crash'.
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Sun, 19 Feb 2006 01:37:45 +0000 (01:37 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Sun, 19 Feb 2006 01:37:45 +0000 (01:37 +0000)
commit9432d92b916afd9342876bacb47dc134613eb3cb
tree73807dbeef9a3fa5ef03c9c3c8e604c67aa49fb7
parent9496269c6eed122d51afe657cd94eae433330561
At last, a fix for `large-clipboard-crash'.
A growable buffer was only being grown for actual text, not for newlines or
trailing NULs. A large run of empty lines could lead to newlines overflowing
the buffer (> 100 should be enough to guarantee this on all platforms, after
the initial 5k size of the buffer).

Also fix some valgrind in the same area (was probably harmless), and a memory
leak introduced by the RTF attribute pasting.

[originally from svn r6570]
[this svn revision also touched putty-wishlist]
terminal.c