aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/nanopb/tests/regression/issue_205/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nanopb/tests/regression/issue_205/SConscript')
-rw-r--r--third_party/nanopb/tests/regression/issue_205/SConscript14
1 files changed, 14 insertions, 0 deletions
diff --git a/third_party/nanopb/tests/regression/issue_205/SConscript b/third_party/nanopb/tests/regression/issue_205/SConscript
new file mode 100644
index 0000000000..ed8899ddfc
--- /dev/null
+++ b/third_party/nanopb/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)
+