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