Fix potential buffer overflow in asn1write

Ref: IOTSSL-519

backport of 22c3b7b
2 files changed