From 3af7d0910b9660a270aa3279716596c7d7711671 Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Mon, 6 Jun 2016 21:00:59 +0300 Subject: Add testcase for issue #205 --- tests/regression/issue_205/SConscript | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/regression/issue_205/SConscript (limited to 'tests/regression/issue_205/SConscript') diff --git a/tests/regression/issue_205/SConscript b/tests/regression/issue_205/SConscript new file mode 100644 index 00000000..ed8899dd --- /dev/null +++ b/tests/regression/issue_205/SConscript @@ -0,0 +1,14 @@ +# Check that pb_release() correctly handles corrupted size fields of +# static arrays. + +Import('env', 'malloc_env') + +env.NanopbProto('size_corruption') + +p = malloc_env.Program(["size_corruption.c", + "size_corruption.pb.c", + "$COMMON/pb_decode_with_malloc.o", + "$COMMON/pb_common_with_malloc.o", + "$COMMON/malloc_wrappers.o"]) +env.RunTest(p) + -- cgit 1.2.3-korg