Add extra checks for odd-length EC curve lists.
authorEmilia Kasper <emilia@openssl.org>
Mon, 1 Dec 2014 15:55:55 +0000 (16:55 +0100)
committerEmilia Kasper <emilia@openssl.org>
Fri, 5 Dec 2014 15:57:58 +0000 (16:57 +0100)
Odd-length lists should be rejected everywhere upon parsing. Nevertheless,
be extra careful and add guards against off-by-one reads.

Also, drive-by replace inexplicable double-negation with an explicit comparison.

Reviewed-by: Matt Caswell <matt@openssl.org>

No differences found