1# Regression test for security issue GHSA-gcx3-7m76-287p 2# "Out-of-memory condition on repeated field can result in invalid free()" 3 4Import("malloc_env") 5 6malloc_env.NanopbProto("test") 7 8test = 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 13malloc_env.RunTest([test, 'test_input.pb']) 14