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:43:33 +0000 (14:43 +0100)
commit3661bb4e7934668bd99ca777ea8b30eedfafa871
tree2f294d40af5cbdc3eceabc51d92080659d8a9425
parente697a4c3d7d2267e9d82d88dbfa5084475794cb3
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