libosmocore/tests/tlv
Daniel Willmann 2fa0e9df68 tlv: Fix length returned by t{l16,16l}v_put
Every other function returns a pointer to the first byte after the tlv
that was just written.

tl16v seems to be a copy and paste error from tlv16 above and t16lv seems
to count the 16-bit tag twice.

The new tests verify that the return value of *_put(buf, tag, len, val)
points to buf + *_GROSS_LEN(len).

Change-Id: I268a7e11fb5dce67ce1bd7974ab86c4d2bd002f7
2021-03-18 14:20:35 +01:00
..
tlv_test.c tlv: Fix length returned by t{l16,16l}v_put 2021-03-18 14:20:35 +01:00
tlv_test.ok tlv_parser: Fix various out-of-bounds accesses 2021-01-12 21:11:20 +01:00