lib/asn1: set *size output to zero at start of der funcs
commit38536d7313b080bc0b3c536f09fac533502df5a1
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 20 Jan 2022 03:53:25 +0000 (19 22:53 -0500)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sun, 23 Jan 2022 05:10:14 +0000 (23 00:10 -0500)
tree5c1f0d09e593dcd42b59ccc1402fca589cd4a274
parent8dcd05ed4da7779fa7ca127f07b4ae1a9002253b
lib/asn1: set *size output to zero at start of der funcs

Assign zero to the output size parameter at the start so that
callers that use the value when an error occurs do not see
garbage that might be misinterpreted.

Change-Id: Iccfcf4f6944b1bf72789c83919901d9b9d6f9153
lib/asn1/der_get.c
lib/asn1/der_put.c