summaryrefslogtreecommitdiffstats
path: root/src/gsm0480.c
AgeCommit message (Collapse)AuthorFilesLines
2010-10-18gsm0480: Add method create own number responseHolger Hans Peter Freyther1-0/+50
2010-10-11ussd: gsm_7bit_decode will null terminate the stringHolger Hans Peter Freyther1-2/+0
2010-10-11ussd: Make sure that we at least have 8 bytes when decoding the stringHolger Hans Peter Freyther1-0/+6
The actual gsm_7bit_decode can still cause a buffer overrun but at least we are safe until this point.
2010-10-11ussd: Add size checks to the parse_ss_invoke callsHolger Hans Peter Freyther1-0/+9
Make sure that the mandatory and optional part fits.
2010-10-11ussd: Make sure the component fits.Holger Hans Peter Freyther1-2/+8
Use a while() {} to check offset +2 <= length on the first iteration of the loop. Once we have the component length check that it is going to fit into the given length.
2010-10-11ussd: Work with uint16_t for the lengthHolger Hans Peter Freyther1-6/+6
Work with uint16_t for the length all the way.
2010-10-11ussd: Check the structure of the IE.Holger Hans Peter Freyther1-0/+9
This is fixing the current crashes. Next we will need to manipulate the content...
2010-10-11ussd: Add a test case, switch parsing to use a gsm48_hdr and lenHolger Hans Peter Freyther1-20/+25
The current USSD code is not doing any size checks, add a test case to find out how easily we access the data out of bounds. Begin to use the length in some places.
2010-10-09gsm0480: Move the USSD parsing code to libosmocoreHolger Hans Peter Freyther1-0/+188
- Change u_int8 to uint8 - Change DEBUGP to LOGP - Change fprintf(stderr, to LOGP(0, LOGL_DEBUG - We should define log areas used inside libosmocore
2010-09-30gsm0480: Add USSD format functions to libosmocoreHolger Hans Peter Freyther1-0/+190
These routines come from OpenBSC, the msgb_wrap_* functions belong to Mike Haben, the rest is mine. The msgb allocation is compatible to the GSM48 allocation in OpenBSC.