- Feb 12, 2017
-
-
Petteri Aimonen authored
-
- Dec 31, 2016
-
-
Petteri Aimonen authored
-
Petteri Aimonen authored
Previously the field iterator logic didn't know whether two oneof fields were part of the same union, or separate. This caused wrong pointers to be calculated if multiple oneofs were inside a single message. This commit fixes this by using dataoffset of PB_SIZE_MAX to indicate union fields after the first field. Theoretically PB_SIZE_MAX is also a valid value for data offset, which could cause errors. Adding a compile-time assert for this is somewhat difficult. However I consider it extremely unlikely that there is any platform that could trigger this situation, as it would require 255 bytes of extra data/padding between two protobuf oneof fields. On 64-bit architectures the worst case is 16 bytes, and even esoteric platforms only align to 64 bytes or so. Manual modification of the generated .pb.h file could trigger this, but even then it would require pretty bad luck to happen.
-
Petteri Aimonen authored
-
- Dec 23, 2016
-
-
Petteri Aimonen authored
-
Petteri Aimonen authored
Make pb_decode_varint32 public API
-
Tobba authored
-
- Dec 22, 2016
-
-
Petteri Aimonen authored
-
- Dec 09, 2016
-
-
Petteri Aimonen authored
Changed to use simple indexing instead of while (count--) in buf_read()/buf_write(), because the count overflowed from 0 to max on the last iteration. While the unsigned integer overflow is defined and behaviour was correct, making this simple change allowed enabling the sanitizer which might catch true errors elsewhere in the code.
-
Petteri Aimonen authored
-
Petteri Aimonen authored
-
Petteri Aimonen authored
Mainly to clean up the code. Also fixed handling of PB_LTYPE_FIXED_LENGTH_BYTES for proto3 files.
-
Guillaume Lager authored
If the type is string, do not try to deference it as int16, int32 or int64. This may lead to unalign memory access, which may cause trap on some architectures (ARM)
-
- Nov 22, 2016
-
-
Petteri Aimonen authored
-
Petteri Aimonen authored
-
Petteri Aimonen authored
-
- Nov 21, 2016
-
-
William A. Kennington III authored
Google-Bug-Id: 28000875 Signed-off-by:
William A. Kennington III <wak@google.com> Change-Id: I1bffd39168abe04593588291b0ebbe5199a00138
-
- Nov 19, 2016
-
-
Petteri Aimonen authored
-
- Oct 30, 2016
-
-
Petteri Aimonen authored
-
Petteri Aimonen authored
-
Petteri Aimonen authored
-
- Oct 24, 2016
-
-
Petteri Aimonen authored
-
Petteri Aimonen authored
-
Petteri Aimonen authored
-
Petteri Aimonen authored
-
- Oct 23, 2016
-
-
Petteri Aimonen authored
-
Petteri Aimonen authored
-
Petteri Aimonen authored
-
Petteri Aimonen authored
-
Petteri Aimonen authored
Need to generate compile time check if the bytes field + size field might exceed 255 bytes. Also eliminated spurious checks generated for some callback fields.
-
- Oct 11, 2016
-
-
Petteri Aimonen authored
Fix typo in encoding
-
- Oct 10, 2016
-
-
berni155 authored
-
Petteri Aimonen authored
Added CMake project
-
Petteri Aimonen authored
Proto3 singular fields support
-
- Oct 09, 2016
-
-
Bernhard Krämer authored
-
Bernhard Krämer authored
-
- Sep 02, 2016
-
-
Petteri Aimonen authored
-
- Aug 10, 2016
-
-
Petteri Aimonen authored
Bazel: export LICENSE.txt file.
-
Piotr Sikora authored
Signed-off-by:
Piotr Sikora <piotrsikora@google.com>
-
- Aug 06, 2016
-
-
Petteri Aimonen authored
-