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 1e50e2ad4813c037b0fbc5559381ec22776225d7 (commit) from ffad574a4b68596d17671965bf145f11f0b00e57 (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=1e50e2ad4813c037b0fbc5559381e...
commit 1e50e2ad4813c037b0fbc5559381ec22776225d7 Author: Stefan Sperling ssperling@sysmocom.de Date: Mon Jan 8 19:20:02 2018 +0100
TLVP_PRESENT() should not return TRUE after tlv_parse() fails.
If the length provided in the patcket exceeds the buffer length, tlv_parse() returns -2 but leaves tlv.val and tlv.len initializd.
Many callers of tlv_parse() do not check its return value, but rely on TLVP_PRESENT() to see if a particular TLV was parsed successfully. By clearing tlv.val and tlv.len we make it less likely that those callers will use an overlong TLV length value.
Change-Id: I4dda6938e1650b4bcaac45809a4763f86f5a9794
-----------------------------------------------------------------------
Summary of changes: src/gsm/tlv_parser.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)
hooks/post-receive