SConscript 372 B

123456789101112
  1. # Regression test for #647:
  2. # Ill-formed oneof message leads to calling free on an arbitrary pointer
  3. Import("env")
  4. env.NanopbProto("repro.proto")
  5. test = env.Program(["repro.c", "repro.pb.c",
  6. "$COMMON/pb_decode_with_malloc.o",
  7. "$COMMON/pb_common_with_malloc.o",
  8. "$COMMON/malloc_wrappers.o"])
  9. env.RunTest(test)