]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
When checking for an existing log, store the FILE * in a local variable.
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 17 Oct 2015 11:12:23 +0000 (12:12 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Sat, 24 Oct 2015 21:45:48 +0000 (22:45 +0100)
commitc445c745ecef1d00e57b77732bb0928881977149
treedd142c0510858b27cb668ecc774097ea8ca7af96
parente170041a5d6ae456527adea6859bc2aa04a5d598
When checking for an existing log, store the FILE * in a local variable.

It's not used outside logfopen, and leaving an infalid file pointer
lying around in the log context caused a segfault if the user
cancelled logging.

Bug found by afl-fuzz before it had even started fuzzing.
logging.c