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