Fix reported issues #212, #214 and refix #199, add in valgrind to do the testing

build-env/Dockerfile.build-env
scripts/build.sh

Add in valgrind testing of the tests

src/option.c

Issue #199 Better fix of ADVANCE_OPT_CHECK()

src/pdu.c

Issue #214 Validate token length in coap_pdu_parse_header()

src/uri.c

Issue #212 Check not reading off end of buffer in dots()

tests/test_pdu.c
tests/test_uri.c

Tests updated to include tests for #212 & #214
This commit is contained in:
Jon Shallow committed 2018-07-12 15:30:17 +01:00
1 parent 92994031ea
commit 96d8877606
7 files changed
+68 -7

No files matched your search

+3 -1
View File
@@ -36,7 +36,9 @@ esac
err=$?
if test $err = 0 -a -n "$WITH_TESTS" ; then
tests/testdriver
EXEC_FILE=tests/testdriver
# then run valgrind on the actual executable
libtool --mode=execute valgrind --track-origins=yes --leak-check=yes --show-reachable=yes --error-exitcode=123 --quiet $EXEC_FILE
err=$?
fi