mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-27 01:48:17 +00:00
update to nanopb 0.2.9.3
This commit is contained in:
parent
fff16e813a
commit
0a55a9e415
@ -1,5 +1,5 @@
|
|||||||
/* Automatically generated nanopb constant definitions */
|
/* Automatically generated nanopb constant definitions */
|
||||||
/* Generated by nanopb-0.2.9.2 */
|
/* Generated by nanopb-0.2.9.3 */
|
||||||
|
|
||||||
#include "messages.pb.h"
|
#include "messages.pb.h"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Automatically generated nanopb header */
|
/* Automatically generated nanopb header */
|
||||||
/* Generated by nanopb-0.2.9.2 */
|
/* Generated by nanopb-0.2.9.3 */
|
||||||
|
|
||||||
#ifndef _PB_MESSAGES_PB_H_
|
#ifndef _PB_MESSAGES_PB_H_
|
||||||
#define _PB_MESSAGES_PB_H_
|
#define _PB_MESSAGES_PB_H_
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
/* Version of the nanopb library. Just in case you want to check it in
|
/* Version of the nanopb library. Just in case you want to check it in
|
||||||
* your own program. */
|
* 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
|
/* Include all the system headers needed by nanopb. You will need the
|
||||||
* definitions of the following:
|
* definitions of the following:
|
||||||
|
@ -992,6 +992,12 @@ static void pb_release_single_field(const pb_field_iterator_t *iter)
|
|||||||
if (PB_HTYPE(type) == PB_HTYPE_REPEATED)
|
if (PB_HTYPE(type) == PB_HTYPE_REPEATED)
|
||||||
{
|
{
|
||||||
count = *(pb_size_t*)iter->pSize;
|
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)
|
if (pItem)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Automatically generated nanopb constant definitions */
|
/* Automatically generated nanopb constant definitions */
|
||||||
/* Generated by nanopb-0.2.9.2 */
|
/* Generated by nanopb-0.2.9.3 */
|
||||||
|
|
||||||
#include "storage.pb.h"
|
#include "storage.pb.h"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Automatically generated nanopb header */
|
/* Automatically generated nanopb header */
|
||||||
/* Generated by nanopb-0.2.9.2 */
|
/* Generated by nanopb-0.2.9.3 */
|
||||||
|
|
||||||
#ifndef _PB_STORAGE_PB_H_
|
#ifndef _PB_STORAGE_PB_H_
|
||||||
#define _PB_STORAGE_PB_H_
|
#define _PB_STORAGE_PB_H_
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Automatically generated nanopb constant definitions */
|
/* Automatically generated nanopb constant definitions */
|
||||||
/* Generated by nanopb-0.2.9.2 */
|
/* Generated by nanopb-0.2.9.3 */
|
||||||
|
|
||||||
#include "types.pb.h"
|
#include "types.pb.h"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Automatically generated nanopb header */
|
/* Automatically generated nanopb header */
|
||||||
/* Generated by nanopb-0.2.9.2 */
|
/* Generated by nanopb-0.2.9.3 */
|
||||||
|
|
||||||
#ifndef _PB_TYPES_PB_H_
|
#ifndef _PB_TYPES_PB_H_
|
||||||
#define _PB_TYPES_PB_H_
|
#define _PB_TYPES_PB_H_
|
||||||
|
Loading…
Reference in New Issue
Block a user