]> 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>
Wed, 28 Oct 2015 22:08:58 +0000 (22:08 +0000)
commit389eb4b7e0e067ce1c425f77abc0d3d774e83c79
tree75eeaa61be1c07a80009f3dc120d9bcb955939e7
parent7924aa945a04f2efd5967390474771f377cfbcc3
When checking for an existing log, store the FILE * in a local variable.

It's not used outside logfopen, and leaving an invalid 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