osmo-msc/openbsc/tests/gprs
Holger Hans Peter Freyther ce1b22e817 gprs: Add testcases for the APN string/octet conversion and fix it
Create a testcase for the gprs_str_to_apn and gprs_apn_to_str
routines. While writing the testcase we noticed it is possible to
write more bytes than should have been allowed. This is fixed by
checking that the max_len is at least 1 (needed to write the first
length octet) and to do the size check before writing to the output.

Modify the signature of gprs_str_to_apn to put the length/size next
to the parameter that requires a size.

Done with Jacob
2014-08-04 15:00:54 +02:00
..
Makefile.am gprs: Add testcases for the APN string/octet conversion and fix it 2014-08-04 15:00:54 +02:00
gprs_test.c gprs: Add testcases for the APN string/octet conversion and fix it 2014-08-04 15:00:54 +02:00
gprs_test.ok gprs: Honor GSM 04.64 8.4.2 Receipt of unacknowledged information 2012-01-06 18:52:05 +01:00