1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-23 07:58:09 +00:00

update to nanopb 0.2.9.3

This commit is contained in:
Pavol Rusnak 2016-08-29 12:59:29 +02:00
parent fff16e813a
commit 0a55a9e415
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
8 changed files with 13 additions and 7 deletions

View File

@ -1,5 +1,5 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.2.9.2 */
/* Generated by nanopb-0.2.9.3 */
#include "messages.pb.h"

View File

@ -1,5 +1,5 @@
/* Automatically generated nanopb header */
/* Generated by nanopb-0.2.9.2 */
/* Generated by nanopb-0.2.9.3 */
#ifndef _PB_MESSAGES_PB_H_
#define _PB_MESSAGES_PB_H_

View File

@ -46,7 +46,7 @@
/* Version of the nanopb library. Just in case you want to check it in
* your own program. */
#define NANOPB_VERSION nanopb-0.2.9.2
#define NANOPB_VERSION nanopb-0.2.9.3
/* Include all the system headers needed by nanopb. You will need the
* definitions of the following:

View File

@ -992,6 +992,12 @@ static void pb_release_single_field(const pb_field_iterator_t *iter)
if (PB_HTYPE(type) == PB_HTYPE_REPEATED)
{
count = *(pb_size_t*)iter->pSize;
if (PB_ATYPE(type) == PB_ATYPE_STATIC && count > iter->pos->array_size)
{
/* Protect against corrupted _count fields */
count = iter->pos->array_size;
}
}
if (pItem)

View File

@ -1,5 +1,5 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.2.9.2 */
/* Generated by nanopb-0.2.9.3 */
#include "storage.pb.h"

View File

@ -1,5 +1,5 @@
/* Automatically generated nanopb header */
/* Generated by nanopb-0.2.9.2 */
/* Generated by nanopb-0.2.9.3 */
#ifndef _PB_STORAGE_PB_H_
#define _PB_STORAGE_PB_H_

View File

@ -1,5 +1,5 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.2.9.2 */
/* Generated by nanopb-0.2.9.3 */
#include "types.pb.h"

View File

@ -1,5 +1,5 @@
/* Automatically generated nanopb header */
/* Generated by nanopb-0.2.9.2 */
/* Generated by nanopb-0.2.9.3 */
#ifndef _PB_TYPES_PB_H_
#define _PB_TYPES_PB_H_