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:41:06 +0000 (14:41 +0100)
commita0eed48d37a4b7beea0c966caf09ad46f4a92a44
treee92d87cacfd368b707f388c4ea90257127dedac5
parent3ae91cfb327c9ed689b9aaf7bca01a3f5a0657cb
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>
crypto/asn1/a_int.c