Debian Codegraph @

tests/regression/GHSA-gcx3-7m76-287p/SConscript

raw
1 # Regression test for security issue GHSA-gcx3-7m76-287p
2 # "Out-of-memory condition on repeated field can result in invalid free()"
3
4 Import("malloc_env")
5
6 malloc_env.NanopbProto("test")
7
8 test = malloc_env.Program(["test.c", "test.pb.c",
9 "$COMMON/pb_decode_with_malloc.o",
10 "$COMMON/pb_common_with_malloc.o",
11 "$COMMON/malloc_wrappers.o"])
12
13 malloc_env.RunTest([test, 'test_input.pb'])