Iterate over EC_GROUP's poly array in a safe way
authorRich Salz <rsalz@openssl.org>
Wed, 22 Feb 2017 18:11:08 +0000 (13:11 -0500)
committerRich Salz <rsalz@openssl.org>
Wed, 22 Feb 2017 18:13:03 +0000 (13:13 -0500)
commit57f48f939ed5d3119e3c691ea0a8a3ac2f4a1a9e
treea473953723e0ea07294292ba1e3ca37824649f97
parent5c80e2af3a7d8aa5129a1668c286c1464983e1ac
Iterate over EC_GROUP's poly array in a safe way

Prevent that memory beyond the last element is accessed if every element
of group->poly[] is non-zero

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2689)
crypto/ec/ec_asn1.c