SConscript 486 B

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