- 13 May, 2020 1 commit
-
-
Ilya Lipnitskiy authored
Resolves an ambiguity that %zu was meant to address, since %zu is not present on all platforms. Fixes #357.
-
- 13 Feb, 2020 2 commits
-
-
Robert Edmonds authored
Bump version to 1.3.3
-
Robert Edmonds authored
-
- 04 Dec, 2019 2 commits
-
-
Robert Edmonds authored
-
Robert Edmonds authored
fix suport for MSVC static build
-
- 19 Oct, 2019 4 commits
-
-
Markus Engel authored
Signed-off-by: Markus Engel <engel@sero-systems.de>
-
Robert Edmonds authored
protobuf-c.c: Make zigzag encoding more compact
-
Robert Edmonds authored
Fixed some test assertions in test-generated-code2.c
-
Robert Edmonds authored
.travis.yml: Reenable code coverage
-
- 18 Oct, 2019 2 commits
-
-
Ilya Lipnitskiy authored
Also match upstream code in src/google/protobuf/wire_format_lite.h
-
Robert Edmonds authored
Makefile.am: Only enable the Issue #330 test case when building against protobuf 3.x
-
- 17 Oct, 2019 1 commit
-
-
Robert Edmonds authored
Issue #330 is a bug in proto3 behavior and the test case handling it needs a 'syntax = "proto3";' line in its .proto file, which is not supported by the protobuf 2 implementation. Since we still support building against protobuf 2, this commit conditionalizes the Issue #330 test case so that it is only built when protobuf-c is being built against protobuf 3.
-
- 27 Aug, 2019 1 commit
-
-
Adam Cozzette authored
I fixed a couple test assertions here that seemed to be accidentally using assignment (=) instead of equality (==).
-
- 24 Jun, 2019 3 commits
-
-
Robert Edmonds authored
Bump version to 1.3.2
-
Robert Edmonds authored
-
Robert Edmonds authored
-
- 20 May, 2019 1 commit
-
-
Ilya Lipnitskiy authored
Code coverage option was removed in the xenial update change (fe36c167)
-
- 18 May, 2019 7 commits
-
-
Robert Edmonds authored
Check if tag is equal to 0
-
Robert Edmonds authored
-
Robert Edmonds authored
Fix a SEGV on on protobuf_c_message_check on messages with 'oneof's inside
-
Jurriaan Bremer authored
* allow compilation with -pedantic (thanks @Bun) Can be reproduced with the following command: $ make CFLAGS=-pedantic protobuf-c/protobuf-c.o * put el-size on a separate line
-
Robert Edmonds authored
Fix proto3 repeated scalar field default packing behavior (#330)
-
Robert Edmonds authored
-
Robert Edmonds authored
Fixed out-of-bounds read (#375)
-
- 17 May, 2019 2 commits
-
-
Ilya Lipnitskiy authored
Fixes #330 and makes scalar repeated fields packed by default in proto3. https://developers.google.com/protocol-buffers/docs/encoding#packed: In proto3, repeated fields of scalar numeric types are packed by default.
-
Ilya Lipnitskiy authored
-
- 16 May, 2019 1 commit
-
-
Adam Cozzette authored
The scan_length_prefixed_data() function returns the number of bytes taken up by a varint length delimiter, plus the actual value of that delimiter. Since it returns a uint32_t, a delimiter of 2^32 - 1 (or close to that) could cause the return value to overflow and result in an incorrect value. At first I tried to fix it by making scan_length_prefixed_data() use a size_t for its result, but I realized this would have no effect on 32-bit systems. To fix the problem for 32-bit, I changed the function to return early if the length is 2 GiB or more (protobuf messages are not allowed to be that large). I kept the size_t change anyway, since the result will ultimately be stored in a size_t (ScannedMember.len) and we might as well stay consistent with that. Signed-off-by: Adam Cozzette <acozzette@google.com>
-
- 16 Apr, 2019 1 commit
-
-
Hayri Ugur Koltuk authored
Signed-off-by: Hayri Ugur Koltuk <ugur.koltuk@adyen.com>
-
- 11 Apr, 2019 4 commits
-
-
Robert Edmonds authored
t/generated-code2/cxx-generate-packed-data.cc: Fix build failure on newer protobuf
-
Robert Edmonds authored
google::protobuf::Message::Reflection has been removed in newer versions of protobuf. The replacement is google::protobuf::Reflection. protobuf in commit 779f61c6a3ce02a119e28e802f229e61b69b9046 ("Integrate recent changes from google3.", from August 2008) changed the following in message.h: @@ -336,7 +337,8 @@ class LIBPROTOBUF_EXPORT Message { // Introspection --------------------------------------------------- - class Reflection; // Defined below. + // Typedef for backwards-compatibility. + typedef google::protobuf::Reflection Reflection; The "typedef for backwards-compatibility" apparently lasted ten years until protobuf commit 6bbe197e9c1b6fc38cbdc45e3bf83fa7ced792a3 ("Down-integrate from google3.", from August 2018) which finally removed the typedef: @@ -327,8 +344,6 @@ class LIBPROTOBUF_EXPORT Message : public MessageLite { // Introspection --------------------------------------------------- - // Typedef for backwards-compatibility. - typedef google::protobuf::Reflection Reflection; This commit updates the only use of this typedef (in the test suite) to directly refer to the replacement, google::protobuf::Reflection. This fixes the build failure in the test suite.
-
Robert Edmonds authored
.travis.yml: Bump protobuf version to 3.7.1, use new URL
-
Robert Edmonds authored
-
- 05 Feb, 2019 1 commit
-
-
Hayri Ugur Koltuk authored
Signed-off-by: Hayri Ugur Koltuk <ugur.koltuk@adyen.com>
-
- 12 Nov, 2018 1 commit
-
-
msshapira authored
-
- 14 Aug, 2018 6 commits
-
-
Robert Edmonds authored
Bump version to 1.3.1
-
Robert Edmonds authored
-
Robert Edmonds authored
-
Robert Edmonds authored
Use AX_CXX_COMPILE_STDCXX macro to enable C++11 support in old compilers
-
Robert Edmonds authored
This reverts commit 0585e053. Now that we autodetect any needed flags to enable C++11 support with the AX_CXX_COMPILE_STDCXX macro, we no longer need to force this in .travis.yml.
-
Robert Edmonds authored
This commit enables use of the AX_CXX_COMPILE_STDCXX macro from the autoconf-archive (added in the previous commit), which automatically adds needed flags to the CXX variable to enable C++11 support. This only works and is only required on compilers that are both new enough to have C++11 support and old enough to not enable it by default. We call it with "noext" as the second argument (so that we get the "std" C++11 variant on GCC) and "mandatory" as the third argument, since we now rely on C++11 features as of 83c59e70. Note that this macro is only called when we are building the compiler (i.e., without --disable-protoc) so that the library can still be built on ancient C compilers.
-