- Jun 19, 2016
-
-
Petteri Aimonen authored
-
- Jun 14, 2016
-
-
Petteri Aimonen authored
-
- Jun 06, 2016
-
-
Petteri Aimonen authored
-
Petteri Aimonen authored
Fixes a potential security issue (#205). Only relevant if the user code writes untrusted data to _count fields, but this is allowed as per the security model.
-
Petteri Aimonen authored
-
Petteri Aimonen authored
Attempt at reproducing issue #204.
-
- May 25, 2016
-
-
Petteri Aimonen authored
-
Petteri Aimonen authored
The FieldMaxSize class was reusing the same list instance, causing problems when multiple files were specified on the protoc command line.
-
Petteri Aimonen authored
-
- May 05, 2016
-
-
Petteri Aimonen authored
Added explanation of `oneof` section usage
-
Yaniv Mordekhay authored
-
- Mar 10, 2016
-
-
Petteri Aimonen authored
-
- Mar 07, 2016
-
-
Petteri Aimonen authored
-
Petteri Aimonen authored
Update API reference to match headers
-
Maxim Khitrov authored
Update typedefs and function prototypes in the API reference to match header files. Delete documentation for pb_skip_varint/pb_skip_string, which are superseded by pb_skip_field, and add pb_get_encoded_size.
-
- Mar 04, 2016
-
-
Petteri Aimonen authored
-
- Feb 20, 2016
-
-
Petteri Aimonen authored
Generate MIN/MAX/ARRAYSIZE for enums
-
Petteri Aimonen authored
Add -D option to specify output directory
-
- Feb 19, 2016
-
-
isotes authored
This generates #defines mirroring the following values from the generated C++ code of GPB * const Foo Foo_MIN: the smallest valid value of the enum (VALUE_A in the example). * const Foo Foo_MAX: the largest valid value of the enum (VALUE_C in the example). * const Foo Foo_ARRAYSIZE: always defined as Foo_MAX + 1.
-
Kenshi Kawaguchi authored
-
- Feb 13, 2016
-
-
Petteri Aimonen authored
-
Petteri Aimonen authored
-
- Feb 07, 2016
-
-
Petteri Aimonen authored
-
- Feb 06, 2016
-
-
Petteri Aimonen authored
-
Petteri Aimonen authored
-
- Jan 27, 2016
-
-
Petteri Aimonen authored
-
Petteri Aimonen authored
This is now handled automatically using shift operations.
-
Petteri Aimonen authored
-
Petteri Aimonen authored
This supports platforms where uint8_t does not exist. If you are using a custom pb_syshdr.h, this may require adding definitions for uint_least8_t etc.
-
Petteri Aimonen authored
This will still catch the most common bug of long int vs. long long int. The uint8_t checks do not seem necessary, test for this will be added in later commit.
-
- Jan 26, 2016
-
-
Petteri Aimonen authored
This was never very clean code, but it was fast. Hopefully compilers are smart enough to optimize it away, or the speed difference is not very large. This should be checked. However working code is always more important than fast code, and the previous way couldn't really work for platforms that do not have byte-sized memory access. Related to PR #191.
-
- Dec 16, 2015
-
-
Petteri Aimonen authored
pb_istream_from_buffer: add const to prototype
-
Andrew Ruder authored
This commit changes the prototype for pb_istream_from_buffer from: pb_istream_t pb_istream_from_buffer(uint8_t *buf, size_t bufsize); to pb_istream_t pb_istream_from_buffer(const uint8_t *buf, size_t bufsize); This allows pb_istream_from_buffer users to point to const buffers without having to inspect code (to ensure practical const-ness) and then be forced to manually cast away const. In order to not break compatibility with existing programs (by introducing a const/non-const union in the pb_istream_t state) we simply cast away the const in pb_istream_from_buffer and re-apply it when possible in the callbacks. Unfortunately we lose any compiler help in the callbacks to ensure we are treating the buffer as const but manual inspection is easy enough.
-
- Nov 21, 2015
-
-
Petteri Aimonen authored
-
- Nov 20, 2015
-
-
Petteri Aimonen authored
Add testcase for the same.
-
- Nov 15, 2015
-
-
Petteri Aimonen authored
-
- Nov 14, 2015
-
-
Petteri Aimonen authored
-
Petteri Aimonen authored
Fixes compilation error with anonymous unions when it is not the last field in message. Also fixes extraneous newlines in header file. Cleanup the pb.h extraneous use of ##.
-
- Nov 11, 2015
-
-
Benjamin Kamath authored
-
- Oct 25, 2015
-
-
Petteri Aimonen authored
-