From daa653fc2268ca99389ef2730abf5fe000eb7a37 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 11 Oct 2010 07:56:06 +0200 Subject: ussd: Add a test case, switch parsing to use a gsm48_hdr and len 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. --- tests/ussd/Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/ussd/Makefile.am (limited to 'tests/ussd/Makefile.am') diff --git a/tests/ussd/Makefile.am b/tests/ussd/Makefile.am new file mode 100644 index 0000000..d29506c --- /dev/null +++ b/tests/ussd/Makefile.am @@ -0,0 +1,5 @@ +INCLUDES = $(all_includes) -I$(top_srcdir)/include +noinst_PROGRAMS = ussd_test + +ussd_test_SOURCES = ussd_test.c +ussd_test_LDADD = $(top_builddir)/src/libosmocore.la -- cgit v1.2.3-55-g7522