summaryrefslogtreecommitdiffstats
path: root/src/gsm0480.c
Commit message (Collapse)AuthorAgeFilesLines
* gsm0480: Add method create own number responseHolger Hans Peter Freyther2010-10-181-0/+50
|
* ussd: gsm_7bit_decode will null terminate the stringHolger Hans Peter Freyther2010-10-111-2/+0
|
* ussd: Make sure that we at least have 8 bytes when decoding the stringHolger Hans Peter Freyther2010-10-111-0/+6
| | | | | The actual gsm_7bit_decode can still cause a buffer overrun but at least we are safe until this point.
* ussd: Add size checks to the parse_ss_invoke callsHolger Hans Peter Freyther2010-10-111-0/+9
| | | | Make sure that the mandatory and optional part fits.
* ussd: Make sure the component fits.Holger Hans Peter Freyther2010-10-111-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.
* ussd: Work with uint16_t for the lengthHolger Hans Peter Freyther2010-10-111-6/+6
| | | | Work with uint16_t for the length all the way.
* ussd: Check the structure of the IE.Holger Hans Peter Freyther2010-10-111-0/+9
| | | | | This is fixing the current crashes. Next we will need to manipulate the content...
* ussd: Add a test case, switch parsing to use a gsm48_hdr and lenHolger Hans Peter Freyther2010-10-111-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.
* gsm0480: Move the USSD parsing code to libosmocoreHolger Hans Peter Freyther2010-10-091-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
* gsm0480: Add USSD format functions to libosmocoreHolger Hans Peter Freyther2010-09-301-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.