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:17 +0000 (14:44 +0100)
commit32d3b0f52f77ce86d53f38685336668d47c5bdfe
treec4cc14e5732bf8294492e42aae0c662138dc8570
parent31d085ca74a7305f83663d19eaa0bf1469953b0e
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