aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libosmo-gtlv/gtlv_dec_enc_test.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2022-08-11 19:01:10 +0200
committerNeels Janosch Hofmeyr <nhofmeyr@sysmocom.de>2022-08-24 17:04:42 +0200
commit65c72dbe61603fd0811641048bfe24ed580ddb7d (patch)
tree38616fd6e5912173cf13cf7b4f76b77e284dbe35 /tests/libosmo-gtlv/gtlv_dec_enc_test.c
parent035b692673522eca1665f34cdc485f5a9d1374d2 (diff)
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
Diffstat (limited to 'tests/libosmo-gtlv/gtlv_dec_enc_test.c')
0 files changed, 0 insertions, 0 deletions