aboutsummaryrefslogtreecommitdiffstats
path: root/tests/regression/issue_205/SConscript
blob: ed8899ddfc7b0fc9ab73e563d9a467038685e9ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Check that pb_release() correctly handles corrupted size fields of
# static arrays.

Import('env', 'malloc_env')

env.NanopbProto('size_corruption')

p = malloc_env.Program(["size_corruption.c",
                         "size_corruption.pb.c",
                         "$COMMON/pb_decode_with_malloc.o",
                         "$COMMON/pb_common_with_malloc.o",
                         "$COMMON/malloc_wrappers.o"])
env.RunTest(p)