aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-10-28 14:57:53 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2014-10-28 15:17:02 +0100
commit76606d3473b61963a4d87bdad9f002e6191b9ece (patch)
tree615e2ff4e5cfb4093772f86e24ab893923e4a4d0 /openbsc/src/osmo-bsc
parent5a38f6470e74b0d7d7746fa65573f2acf76197eb (diff)
nitb/ctrl: Fix access to freed memory in verify_subscriber_modify
Currently the temporary string 'tmp' is freed before parts of it are referenced. This lets address sanitizer complain when evaluating strlen(imsi), where imsi points into the 'tmp' data block. This patch moves the talloc_free to the end of the function and uses a rc variable instead of using early returns. Addresses: testSubscriberAddRemove (__main__.TestCtrlNITB) ... Launch: ./src/osmo-nitb/osmo-nitb -c ./doc/examples/osmo-nitb/nanobts/openbsc.cfg -l test_hlr.sqlite3 Connecting to host 127.0.0.1:4249 Sending "SET 1000 subscriber-modify-v1 2620345,445566" Decoded replies: {} ERROR Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/src/osmo-bsc')
0 files changed, 0 insertions, 0 deletions