diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-10-24 21:45:39 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-10-24 21:45:39 +0300 |
commit | ed564186e14c79c767096f4b306dc3c6c5bd2e7d (patch) | |
tree | 5fde14736419a4a8513c0c6a5c6a42e926344ea0 /tests/common | |
parent | 86d698315608c372868bb55f6d2c609600ac8e41 (diff) |
Detect invalid sizes when encoding bytes fields.
Diffstat (limited to 'tests/common')
-rw-r--r-- | tests/common/unittestproto.proto | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/common/unittestproto.proto b/tests/common/unittestproto.proto index 7024942e..eb3e7dec 100644 --- a/tests/common/unittestproto.proto +++ b/tests/common/unittestproto.proto @@ -12,6 +12,10 @@ message StringMessage { required string data = 1 [(nanopb).max_size = 10]; } +message BytesMessage { + required bytes data = 1 [(nanopb).max_size = 16]; +} + message CallbackArray { // We cheat a bit and use this message for testing other types, too. // Nanopb does not care about the actual defined data type for callback |