SConscript 437 B

1234567891011121314
  1. # Check that pb_release() correctly handles corrupted size fields of
  2. # static arrays.
  3. Import('env', 'malloc_env')
  4. env.NanopbProto('size_corruption')
  5. p = malloc_env.Program(["size_corruption.c",
  6. "size_corruption.pb.c",
  7. "$COMMON/pb_decode_with_malloc.o",
  8. "$COMMON/pb_common_with_malloc.o",
  9. "$COMMON/malloc_wrappers.o"])
  10. env.RunTest(p)