Fix encoding bug in i2c_ASN1_INTEGER
authorDr. Stephen Henson <steve@openssl.org>
Thu, 16 Apr 2015 15:43:09 +0000 (16:43 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 18 Apr 2015 13:44:54 +0000 (14:44 +0100)
commita6202a74f9fd459607adaec9e4c7aa8d103dbd11
treed2958842633d420ab9f19f4a444e191fdf2ef21f
parent6b7d6c440433b65f401880662050c0b8215ee2ff
Fix encoding bug in i2c_ASN1_INTEGER

Fix bug where i2c_ASN1_INTEGER mishandles zero if it is marked as
negative.

Thanks to Huzaifa Sidhpurwala <huzaifas@redhat.com> and
Hanno Böck <hanno@hboeck.de> for reporting this issue.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit a0eed48d37a4b7beea0c966caf09ad46f4a92a44)
crypto/asn1/a_int.c