mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
437 B
15 lines
437 B
8 years ago
|
# 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)
|
||
|
|