summaryrefslogtreecommitdiffstats
path: root/pb_decode.c
AgeCommit message (Expand)AuthorFilesLines
2017-03-12Fix potential out-of-bounds read with more than 64 required fieldsPetteri Aimonen1-3/+12
2017-03-02Fix callback pointer corruption in proto3 mode (issue #249)Petteri Aimonen1-1/+1
2017-02-22Extend inline / fixed length bytes array support (issue #244)Petteri Aimonen1-7/+25
2017-01-12Fix closing a non-empty substream resulting in an incorrect stream stateTobba1-8/+21
2016-12-23Make pb_decode_varint32 public APITobba1-2/+1
2016-12-09Enable clang integer sanitizer and clean up a few warnings.Petteri Aimonen1-2/+3
2016-10-09Add proto3 option to handle singular fieldsBernhard Krämer1-1/+2
2016-08-04Add inline allocation of bytes fieldsTom Roeder1-1/+8
2016-06-06Protect against corrupted _count fields in pb_release().Petteri Aimonen1-0/+6
2016-01-27Fix a few remaining bugs related to CHAR_BIT!=8 platforms.Petteri Aimonen1-25/+34
2016-01-27Replace uint8_t with a pb_byte_t typedef.Petteri Aimonen1-43/+47
2016-01-26Get rid of type punning in pb_encode_fixedXX().Petteri Aimonen1-28/+19
2015-12-16pb_istream_from_buffer: add const to prototypeAndrew Ruder1-5/+13
2015-10-25Ignore null pointers in pb_release() (issue #183).Petteri Aimonen1-0/+3
2015-09-21decode: Fix compiler issue with gcc-5Kyle Manna1-1/+2
2015-04-03Clear callbacks for union fields.Petteri Aimonen1-0/+3
2015-03-07Fix oneof submessage initialization bug.Petteri Aimonen1-0/+4
2015-01-15Release memory when overwriting oneof fields.Petteri Aimonen1-0/+39
2015-01-11Bugfixes for oneof support.Petteri Aimonen1-4/+13
2015-01-04Implement support for oneofs (C unions).Petteri Aimonen1-1/+11
2015-01-04Detect too large varint values when decoding.Petteri Aimonen1-14/+36
2015-01-04Add int_size option for generator.Petteri Aimonen1-0/+4
2014-12-26Fix memory leaks with PB_ENABLE_MALLOC and certain submessage type combinations.Petteri Aimonen1-20/+45
2014-12-26Initialize also extension fields to defaults in pb_decode().Petteri Aimonen1-54/+83
2014-12-26Add support for POINTER type in extensionsPetteri Aimonen1-0/+8
2014-09-11Protect against size_t overflows in pb_dec_bytes/pb_dec_string.Petteri Aimonen1-7/+13
2014-09-11Add just-to-be-sure check to allocate_field().Petteri Aimonen1-5/+11
2014-09-11Fix memory leak with duplicated fields and PB_ENABLE_MALLOC.Petteri Aimonen1-44/+60
2014-09-11Fix crash in pb_release() if called twice on same message.Petteri Aimonen1-10/+15
2014-08-18Rename UNUSED() and STATIC_ASSERT() macros with PB_ prefix.Petteri Aimonen1-4/+4
2014-08-18Change the _count fields to use pb_size_t datatype.Petteri Aimonen1-11/+29
2014-08-10Switch pb_encode to use the common iterator logic in pb_common.cPetteri Aimonen1-12/+10
2014-08-10Separate field iterator logic from pb_decode to pb_common.Petteri Aimonen1-109/+31
2014-06-02Make clearer that size = 0 in allocate_field() is not allowed.Petteri Aimonen1-17/+12
2014-06-02Don't use SIZE_MAX macro, as it is not in C89.Petteri Aimonen1-1/+2
2014-05-17Fix security issue with PB_ENABLE_MALLOC.Petteri Aimonen1-2/+22
2014-04-05Add a 'found' field to pb_extension_t.Petteri Aimonen1-2/+1
2014-04-02Add some missing 'static' specifiersPetteri Aimonen1-9/+8
2014-04-02Fix splint warnings, add splint test casePetteri Aimonen1-8/+8
2014-03-17More configuration options for dynamic allocPetteri Aimonen1-3/+3
2014-03-16Documentation updatesPetteri Aimonen1-1/+9
2014-03-15Get rid of pb_bytes_ptr_t, just allocate pb_bytes_array_t dynamically.Petteri Aimonen1-41/+17
2014-03-12Add pb_release() functionPetteri Aimonen1-18/+96
2014-03-10More fixes for dynamic allocationPetteri Aimonen1-41/+65
2014-02-25Bugfixes for dynamic allocationPetteri Aimonen1-13/+39
2014-02-24Beginnings of malloc support in pb_decodePetteri Aimonen1-5/+138
2013-12-21Add PB_LTYPE_UVARINT to fix encoding of negative int32 values.Petteri Aimonen1-3/+21
2013-11-14Optimize the common case of 1-byte reads for varints.Petteri Aimonen1-3/+23
2013-10-29Remove the NANOPB_INTERNALS functions from public API.Petteri Aimonen1-0/+9
2013-10-29Declare static functions before use.Petteri Aimonen1-12/+31