diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-04-09 14:22:22 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2015-04-10 08:44:35 +0200 |
commit | a84db616737cda5dfc6e8590a29523dc08090f60 (patch) | |
tree | 2d2454fbc732d0a064f1d8accc84f00c34a1e328 /src/ctrl | |
parent | d154f8bda2e379a8a0e1c3712a9af6a9d97b7b97 (diff) |
gprs: Add assertion for msg != NULL to bssgp_msgb_alloc (Coverity)
Currently out-of-memory is not handled by bssgp_msgb_alloc, leading
to SEGV failures if msgb_alloc_headroom returns NULL.
This commit adds an OSMO_ASSERT to catch this case, which improves
the situation only slightly. But bssgp_msgb_alloc is used in many
places without checking the return value, so just adding a
conditional early NULL return would not fix the issue either.
Fixes: Coverity CID 1293377
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/ctrl')
0 files changed, 0 insertions, 0 deletions