summaryrefslogtreecommitdiffstats
path: root/tests/gsm0808
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2019-01-08 10:40:18 +0100
committerdexter <pmaier@sysmocom.de>2019-01-18 08:21:00 +0000
commitd6ef6f1b9163be659693bb546276ab2f655f9cb9 (patch)
tree4d39160466f28b5ed1785f5934cc2e3abb31512f /tests/gsm0808
parent64b51eb68bd272b6b1f2cefa2b33e9dd74024d0c (diff)
gsm29118: fix coverity issues
The function msgb_sgsap_name_put() assignes the return code of osmo_apn_from_str() directly to len. Len is an uint8_t and the return code an int. If osmo_apn_from_str() returns -1. Len would become 0xFF causing a buffer overrun with msgb_tlv_put. Lets use the proper type to catch the return code and check it before using it as length. Change-Id: Ic0bc5114eee47bdcf2300a6e4b0df473d3d1903a Fixes: CID#190405 Fixes: CID#190401 Related: OS#3615
Diffstat (limited to 'tests/gsm0808')
0 files changed, 0 insertions, 0 deletions