lib_tlv: avoid NULL strnlen/memcpy when TLV value is empty
Found by SDK fuzzing (UBSan): guard the scan and copy on value.size > 0 so a NULL value pointer is never passed to strnlen/memcpy.
A
Aymeric Robert committed
2a1580dc204417132b3ea6dae2d0f92e038a0f17
Parent: d96f498