Sanity check an ASN1_object_size result
authorMatt Caswell <matt@openssl.org>
Mon, 22 Aug 2016 22:41:15 +0000 (23:41 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 22 Aug 2016 23:19:15 +0000 (00:19 +0100)
commita36c5eabf589aef716966fbbc8772ead1205abd7
treeac683dc53f87442670bc621440dc3bdf368b744f
parentb197257d71694fd52ab61d173f77c8a120d3eead
Sanity check an ASN1_object_size result

If it's negative don't try and malloc it.

Reviewed-by: Tim Hudson <tjh@openssl.org>
crypto/objects/obj_dat.c