| Commit message (Collapse) | Author | Age |
... | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
I ran the tcmalloc heap checker in draconian mode, and it reported some
heap allocations that were still reachable when protobuf-test exited. To
fix that, I updated FileDescriptorTables to make sure its temporary
heap-allocated maps are deleted when it is destroyed.
|
| | | | | | | | | |
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
* Adopt ruby_package in ruby generated code.
* Add test for ruby_package
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
references (#4633)
* rewrite int128 long divison to avoid stackoverflow hit
Protobuf was showing Stackoverflow hits in the code base, primarily code written to calculate long division. This code was copied from a stackoverflow post, which means it would be licensed under CC BY-SA 3.0. Due to this license, IBM Legal did not want to include this OSS in our products and advised us to re-write this particular piece of code to avoid the license restriction. We have re-written the code for our own distribution, and are willing to merge it into the main code base for others who want to avoid the stackoverflow license issues to benefit as well.
|
|\ \ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | | |
Fix undefined behavior in hash function.
|
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | | |
This avoids compile warnings when compiling generated code with the
-Wmissing-declarations option.
|
| |_|_|/ / / / / /
|/| | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
* Adopt php_metadata_namespace in php code generator
The php_metadata_namespace is corresponded to the relative directory of
the metadata file. e.g., previously, the metadata file of foo.proto was
GPBMetadata/Foo.php. If the php_metadata_namespace is "Metadata\\Bar",
the metadata file will be Metadata/Bar/Foo.php.
* Handle empty php_metadata_namespace
|
| | | | | | | | | |
|
| | |_|_|_|_|/ /
| |/| | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Signed integer overflow creates undefined behavior that may lead to unpredictable fails on different platforms.
One known example of the hardware where this code did fail is Apple A6 (32-bit Apple Swift CPU)
16777619, 16777499 - two prime numbers that typically used to get better dispersion.
|
|/ / / / / / / |
|
| |_|_|_|/ /
|/| | | | | |
|
| | | | | | |
|
| |_|_|_|/
|/| | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Pointer Arguments to memcpy can not be null in UndefinedBehaviorSanitizer.
In this case, both the memory and the size was zero. This change allows
protoc to run under UndefinedBehaviorSanitizer.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* Edited MessageFieldGenerator to clone to backing field instead of property
* Generated C# proto code
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Cleanup + documentation for Java Lite runtime.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The current 15.6.x versions of Visual Studio 2017 contain a bug that
prevent them from compiling the following construct under certain
conditions:
std::unique_ptr<std::unique_ptr<Foo> []> foos;
This will fail to compile if Foo is an abstract class. To work-around
the problem the whole construct was change into:
std::vector<std::unique_ptr<Foo>> foos;
This not only fixes the compiler error but is also more readable than
previous version.
|
|/ / / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Update instructions about getting protobuf source.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Since the generated header import GPBProtocolBuffers.h, there is no need
to generate imports for the WKTs as they will have already been imported.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
To avoid a cycle between headers, have the WKTs use minimal imports instead
of using the helper to get everything from the library.
Fixes https://github.com/google/protobuf/issues/4301
Fixes https://github.com/google/protobuf/issues/4403
|
|/ / / / / |
|
| | | | | |
|
| | | | |
| | | | |
| | | | | |
Add googletest as a submodule in third_party/googletest.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
range options (#4342)
* when interpreting options, rewrite file descriptor's source code info
- so that interpreted option paths have correct location information
- so that corresponding uninterpreted option paths are removed
also includes a fix to source code locations for extension range options
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Remove javanano.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
(#4350)
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Fix bug: whether always_print_enums_as_ints is true or false, it alwa…
|
| | | | | | | |
|
| |/ / / / /
|/| | | | |
| | | | | | |
This makes possible to build grpc_php_plugin with protobuf in shared mode.
|
| | | | | | |
|
| |\ \ \ \ \
| |/ / / / /
|/| | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
DefaultValueObjectWriter::FindEnumDefault
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Integrated internal changes from Google
|
| | | | | | | |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Pre-5.1.0 versions of GCC do not support these particular type traits
(see https://github.com/google/protobuf/issues/417).
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
print the default value of enums as strings
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Fix spelling error of __GNUC_MINOR__
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
Support using MSVC intrinsics in Log2FloorNonZero
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
We no longer need this, now that we have finished the switch to C++11
and are using std::unique_ptr.
|
| | | | | | | | | |
|
| | | |\ \ \ \ \ \
| |_|_|/ / / / / /
|/| | | | | | | | |
|
| | | | | | | | | |
|
| |/ / / / / / /
|/| | | | | | | |
|
| |_|/ / / / /
|/| | | | | |
| | | | | | |
| | | | | | | |
This reverts commit 724f0be33d0eb42055ebe81ce0c8c7bf88ea666c.
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Add support for libc++ on Windows.
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
Blacklist all WELL_KNOWN_PROTOS from Bazel C++ code generation.
|
|\ \ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | | |
Adds an option in C++ JSON parser to ignore unrecognized enum values
|