libosmo-pfcp/src/libosmo-gtlv
Neels Hofmeyr 65c72dbe61 gtlv: fix repeated IEIs to several struct members
Coverity Scan has brought my attention to a problem with decoding
repeated IEIs, where there are multiple struct members in the decoded
struct that these are decoded to.

Before this patch, gtlv aborts with an error as soon as the first struct
member for a given tag is full, not parsing following IEIs into
subsequent struct members.

After this patch, gtlv continues to look whether subsequent entries in
the message coding also decode the same tag, but to a different struct
member.

First commit without changing the gtlv regression test, to show that all
current tests still succeed. The test for this particular issue follow
in I994d0fb1f1435d2c27a8630a43fe106652ac6e41

Related: CID#275415
Related: SYS#5599
Change-Id: Ie37585178ff27306d425b75d8e407b71f92f1cdc
2022-08-24 17:04:42 +02:00
..
Makefile.am set LIBVERSION=0:0:0 2022-08-09 19:40:11 +02:00
gtlv.c libosmo-gtlv: add TLIV capability 2022-06-16 13:04:33 +02:00
gtlv_dec_enc.c gtlv: fix repeated IEIs to several struct members 2022-08-24 17:04:42 +02:00
gtlv_gen.c gtlv: check memory bounds 3/3: encoding to str 2022-08-24 17:04:42 +02:00