]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Jacob reports a segfault when using HTTP proxying under Minefield.
authorSimon Tatham <anakin@pobox.com>
Tue, 10 Feb 2004 19:07:45 +0000 (19:07 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 10 Feb 2004 19:07:45 +0000 (19:07 +0000)
commitf41b9c6304e7ba5e3fcda68863393e3330f3c387
treee0b72c3aeb2491f836add222a8c00087065fbeb8
parentf1d532e2d0bdc862b4b55f04e258166fb76e8564
Jacob reports a segfault when using HTTP proxying under Minefield.
It appears that this is because Visual C's sscanf works by first
calling strlen to get the length of the string, so that its internal
read-character routine can be sure of never overrunning the buffer.
Quite why the internal read-char routine can't detect \0 _itself_
rather than having to have it found for it in advance I have no
idea. Sigh.

[originally from svn r3844]
proxy.c