]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Fix a segfault in parsing OpenSSH private key files.
authorSimon Tatham <anakin@pobox.com>
Tue, 10 Nov 2015 18:47:55 +0000 (18:47 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 10 Nov 2015 19:05:49 +0000 (19:05 +0000)
commitfa7b23ce9025daba08e86bb934fc430099792b9a
treeb18e20a4895c233ea4e21c6e99c8801a045b76d8
parenta454399ec8d841e627d9d5e05ac977536e776754
Fix a segfault in parsing OpenSSH private key files.

The initial test for a line ending with "PRIVATE KEY-----" failed to
take into account the possibility that the line might be shorter than
that. Fixed by introducing a new library function strendswith(), and
strstartswith() for good measure, and using that.

Thanks to Hanno Böck for spotting this, with the aid of AFL.
import.c
misc.c
misc.h