diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2022-08-11 15:57:40 +0200 |
---|---|---|
committer | Neels Janosch Hofmeyr <nhofmeyr@sysmocom.de> | 2022-08-24 17:04:42 +0200 |
commit | 035b692673522eca1665f34cdc485f5a9d1374d2 (patch) | |
tree | fccfa334f424579404642c88e0a082d6ebf853d4 /tests/libosmo-gtlv/gtlv_dec_enc_test.c | |
parent | 92860a29cd21da7d732aaf6eed420161b1622406 (diff) |
gtlv: check memory bounds 3/3: encoding to str
See Id8d997c9d5e655ff1842ec69eab6c073875c6330
Related: CID#275417
Related: SYS#5599
Change-Id: I63d52a4f5dba32d3a3887dd9c5e42e1695fb2aa3
Diffstat (limited to 'tests/libosmo-gtlv/gtlv_dec_enc_test.c')
-rw-r--r-- | tests/libosmo-gtlv/gtlv_dec_enc_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libosmo-gtlv/gtlv_dec_enc_test.c b/tests/libosmo-gtlv/gtlv_dec_enc_test.c index a542cfa..f0de7b0 100644 --- a/tests/libosmo-gtlv/gtlv_dec_enc_test.c +++ b/tests/libosmo-gtlv/gtlv_dec_enc_test.c @@ -286,7 +286,7 @@ struct osmo_gtlv_coding msg_ie_coding[] = { char *decoded_msg_to_str(const struct decoded_msg *m) { - return osmo_gtlvs_encode_to_str_c(ctx, m, 0, msg_ie_coding, tag_names); + return osmo_gtlvs_encode_to_str_c(ctx, m, sizeof(*m), 0, msg_ie_coding, tag_names); } |