]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Fixes to memory management in the elliptic curve code.
authorSimon Tatham <anakin@pobox.com>
Sat, 20 Dec 2014 17:07:17 +0000 (17:07 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 20 Dec 2014 18:43:32 +0000 (18:43 +0000)
commit0acc74d711638c583d67c187a1b731b36a075d9f
treed881e4bf14d90da360061dab7f5ad04809f38127
parentd23c0972cd850c77871f9a314e0520d7023c8b62
Fixes to memory management in the elliptic curve code.

There was an error-handling path testing the wrong variable; an
inappropriate call to ec_point_free in decodepoint() (in fact, that
function always gets passed a pointer to an ec_point structure that's
not a dynamically allocated block at all or not in its own right, so
we should have just cleared its contents without freeing the structure
itself); a missing return on an error path which would have caused the
same structure to be freed a second time; and two missing freebn in
ecdsa_sign.

Patch due to Tim Kosse.
sshecc.c