mirror of
https://github.com/google/pebble.git
synced 2025-03-20 11:01:20 +00:00
15 lines
437 B
Text
15 lines
437 B
Text
|
# 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)
|
||
|
|