Merge pull request #5801 from wernerlewis/asn1_memcpy_null

Fix memcpy() UB in mbedtls_asn1_named_data()