Check md_size isn't negative before we use it
authorMatt Caswell <matt@openssl.org>
Tue, 26 Jun 2018 14:03:05 +0000 (15:03 +0100)
committerMatt Caswell <matt@openssl.org>
Sat, 7 Jul 2018 13:00:10 +0000 (14:00 +0100)
commit3e0076c213ec2d1149a9a89f9bc141d1a1a44630
treef9cffa9e2dbf090f55308c5a8f7bd52407408afc
parentc9d6fdd6f79c1725215347ad8409b1e60eaccf0c
Check md_size isn't negative before we use it

Issue found by Coverity

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6592)
crypto/sm2/sm2_sign.c