This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "An utility library for Open Source Mobile Communications".
The branch, master has been updated
via a84db616737cda5dfc6e8590a29523dc08090f60 (commit)
via d154f8bda2e379a8a0e1c3712a9af6a9d97b7b97 (commit)
from 8d192d7153498498ff6232209c900e67256b8036 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cgit.osmocom.org/libosmocore/commit/?id=a84db616737cda5dfc6e8590a295…
commit a84db616737cda5dfc6e8590a29523dc08090f60
Author: Jacob Erlbeck <jerlbeck(a)sysmocom.de>
Date: Thu Apr 9 14:22:22 2015 +0200
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
http://cgit.osmocom.org/libosmocore/commit/?id=d154f8bda2e379a8a0e1c3712a9a…
commit d154f8bda2e379a8a0e1c3712a9af6a9d97b7b97
Author: Jacob Erlbeck <jerlbeck(a)sysmocom.de>
Date: Thu Apr 9 14:22:21 2015 +0200
msgb: Check the return value of msgb_alloc (Coverity)
In some places, the return value of msgb_alloc/msgb_alloc_headroom
is not checked before it is dereferenced.
This commit adds NULL checks to return with -ENOMEM from the calling
functions if the alloc function has failed.
Fixes: Coverity CID 1249692, 1293376
Sponsored-by: On-Waves ehf
-----------------------------------------------------------------------
Summary of changes:
src/gb/gprs_bssgp_util.c | 4 ++++
src/gsm/lapdm.c | 3 +++
src/sim/reader.c | 3 +++
3 files changed, 10 insertions(+)
hooks/post-receive
--
An utility library for Open Source Mobile Communications