Paul Yang
bb211e851e
Revert "Fix Ruby module name generation when the ruby_package option is used ( #5735 )"
...
This reverts commit 9638dcc340
.
2019-02-27 20:56:03 -08:00
Joe Bolinger
9638dcc340
Fix Ruby module name generation when the ruby_package option is used ( #5735 )
...
* fix module name generation and add tests
* fix existing tests
* support both package name styles
2019-02-27 20:26:59 -08:00
Joe Bolinger
7f14ea9f48
Raise error for JSON overflow encoding in Ruby ( #5752 )
...
* add check for overflow
* de-nestify
* break long lines
2019-02-27 20:26:14 -08:00
Joe Bolinger
e780681e35
Allow repeated fields in Ruby to accept multiple arguments on push ( #5736 )
...
* let repeated fields push arrays
* add varargs push
* better test
2019-02-27 18:05:06 -08:00
Peter Ebden
2adde396ed
Fix for construction of messages in the C++ Python implementation. ( #2299 )
...
* Fix construction of messages using the C++ Python implementation when a map field is passed from one message to another.
* Add a test on message map field construction
* python 3 support
* review comments
* add test
* Collapse code into one
2019-02-27 16:41:33 -08:00
Oliver Bristow
0de6577b7d
Add EnumTypeWrapper.__getattr__ to access values ( #5234 )
2019-02-27 16:39:51 -08:00
Hao Nguyen
05e81cb8f4
Merge pull request #5770 from mattpaletta/optional-grpc-thirdparty-docs
...
Added Optional GRPC library to third party docs
2019-02-27 12:02:04 -08:00
Paul Yang
bf32b36ab8
Merge pull request #5765 from BSBandme/integration
...
down integration from internal
2019-02-26 22:11:08 -08:00
Yilun Chong
59f7a859b6
vaccum commit
2019-02-26 16:23:18 -08:00
Yilun Chong
7bcb522287
fix mac python cpp building ( #5786 )
2019-02-26 15:47:09 -08:00
Sydney Acksman
a4c3472ce8
Add some exceptions for MessageParser.ParseFrom ( #5588 )
...
* Fix #5513
* Added tests for invalid lengths when reading strings and bytes.
Added test for reading tags with invalid wire types in unknown field set.
Changed invalid length check in ReadString to match the one in ReadBytes
2019-02-26 15:31:29 -08:00
grindhold
3a538fc91e
pyext: missing cast to constant char* ( #5713 )
...
We need to cast to a constant charpointer here.
2019-02-26 15:09:21 -08:00
Yilun Chong
9fd18ae9a5
fix BUILD for adding any_lite.cc
2019-02-26 13:55:31 -08:00
Yilun Chong
6d29c22a43
fix conformance test for text format
2019-02-26 13:46:30 -08:00
Yilun Chong
af8b91b828
fix csharp by regenerate descriptor
2019-02-26 13:07:59 -08:00
Yilun Chong
89b914f81d
fix macos build for High Sierra ( #5780 )
...
* fix macos build by changing xcode version
* add comments
* fix benchmark build for mac
* fix for gem option and install npm
* add test for node and npm
* fix node
* fix for node
* another attempts to fix node
* another attempts
* clean up
2019-02-26 12:52:06 -08:00
Kent Ross
b6375e03aa
create importable function for defining zlib
2019-02-26 11:27:20 -08:00
Yilun Chong
429d2ae19f
Merge branch 'master' into integration
2019-02-24 17:17:17 -08:00
Yilun Chong
e4e5bc49d7
Fix failure test by regenerating descriptor and revert golden file ( #5762 )
2019-02-24 17:09:49 -08:00
Matthew Paletta
5f470c3992
Added Optional GRPC library to third party docs
2019-02-24 10:59:15 -08:00
Joe Bolinger
bc929a3e82
add eql? method ( #5730 )
2019-02-24 09:53:24 -08:00
Daniel Ruoso
4b389fad57
Libs
should not include @PTHREAD_CFLAGS@
...
That should be only on the CFlags. When using the compiler
as the linker driver, one may want to also call pkg-config to get the
cflags, but when invoking the linker, there should be no compiler flags.
2019-02-22 11:19:38 -08:00
Yilun Chong
d8c2501b43
down integration from internal
2019-02-22 18:13:33 +08:00
dickmao
a7180caf19
protobuf.pc.in does not reflect CXXFLAGS
...
Currently, downstream libraries such as RProtoBuf fail because
`-std=c++11` is required via `configure.ac`, but RProtobuf has no way
of knowing this by consulting `pkg-config --cflags protobuf`.
2019-02-21 20:49:25 -08:00
Xiang Dai
e479410564
delete all duplicate empty blanks ( #5758 )
...
Signed-off-by: Xiang Dai <764524258@qq.com>
2019-02-20 19:28:50 -08:00
Dalvin
c691c4cbfa
Enhance java-lite documentation ( #5743 )
2019-02-20 19:24:37 -08:00
Hao Nguyen
e22907f364
Support rc version in update_version.py ( #5750 )
...
* Support rc version in update_version.py
2019-02-20 11:25:39 -08:00
michaelbausor
3bf05b88ea
PHP: Exclude repeated and map fields from normalization in constructor ( #5723 )
...
* Exclude repeated and map fields from normalization
* Remove erroneous comments
* Remove unnecessary check for map type
* Add support for repeated/map fields, add tests
* Fix wrapper message in repeated/map fields in array constructor
* Address PR comments
* Removed unused code
* Update docs
2019-02-15 16:16:42 -08:00
Paul Yang
95d1552b4a
Merge pull request #5733 from protocolbuffers/revert-5661-nesting
...
Revert "Add stack overflow protection for text format"
2019-02-15 11:11:30 -08:00
Paul Yang
f66c981051
Revert "Add stack overflow protection for text format"
...
This reverts commit 6dcd81093c
.
2019-02-15 10:03:39 -08:00
Sydney Acksman
e7283254d6
Change MessageType != null in IsInitialized to FieldType == Message || Group ( #5688 )
2019-02-14 11:34:15 -08:00
Joe Bolinger
39c0947893
implement to_s for message types ( #5710 )
2019-02-12 09:50:57 -08:00
Yuri Vanin
7fdc45a854
Use cached value for type safety check during unpacking of Any message ( #5698 )
...
This performance optimization allows to skip reflection (in the is() method) when the message has been already unpacked once
2019-02-11 18:35:29 -08:00
Cy
9c1c94f770
Update third party implementation links ( #5702 )
2019-02-11 18:08:08 -08:00
Sydney Acksman
2a05691a53
Refactor how group endings are detected in generated C# code ( #5686 )
...
* Modify how end tags are encounted in merge code (compiler)
* Modify how end tags are encounted in merge code (generated)
* Modify how end tags are encounted in merge code (library)
* Regenerate generated code through generate_descriptor_proto.sh
2019-02-11 15:12:40 -08:00
Greg Engle
de3be6c225
removed dead link to ProtoSharp ( #5610 )
...
I tried finding an active repo on github with no success. The only ProtoSharp I found wasn't related to PB at all.
2019-02-06 08:08:30 -08:00
Joe Bolinger
64eb9b6e85
Add more descriptive error messages to init methods in Ruby ( #5659 )
...
* add more descriptive error messages to init methods
* add type errors test to Makefile.am
2019-02-06 07:57:13 -08:00
Thomas Van Lenten
413c614a94
Document why no enum_extensibility is needed for Swift. ( #5680 )
...
Document why no enum_extensibility is needed for Swift.
2019-02-05 13:10:44 -05:00
Vitaly Buka
6dcd81093c
Add stack overflow protection for text format
...
It already exists for wire and json formats
2019-02-04 09:57:33 -08:00
Vitaly Buka
8bbabb87a2
Parse unknown enum values if target is proto3
2019-01-31 16:58:58 -08:00
Xiang Dai
8df872a500
Remove whitespace following trailing backslash
...
Fix below issue:
src/Makefile.am:210: warning: whitespace following trailing backslash
Signed-off-by: Xiang Dai <764524258@qq.com>
2019-01-31 14:39:06 -08:00
Michael Matthew Mitchell
dface63d71
Swapped libprotoc and libprotobuf
...
libprotobuf being targed before libprotoc was causing Visual Studio to fail in linking protoc.
2019-01-31 14:35:57 -08:00
Peter Sobot
50342e4812
Allowed json_format.ParseDict to parse extensions with scalar types. ( #5609 )
2019-01-31 13:00:23 -08:00
Bhargava Shastry
8532804bad
Fixes warnings in https://github.com/google/oss-fuzz/issues/864#issuecomment-458596374
2019-01-31 11:06:47 -08:00
Ivan Pizhenko
41f94bf372
Fix GetErrno() to be const ( #5595 )
...
* Fix GetErrno() to be const noexcept
* Removed noexcept
2019-01-28 17:20:28 -08:00
Paul Yang
a21caa237a
Default values should also be serialized for json map key/value ( #5643 )
2019-01-28 11:25:52 -08:00
Hao Nguyen
45a723b40d
Fix MacOS protoc release ( #5638 )
...
* Use set -ex
* Use -std=c++14 so -latomic can be found
2019-01-25 21:05:22 -08:00
Hao Nguyen
fac8e343e8
Fix python release build. ( #5636 )
...
* Fix python release build.
* Separate config.sh by platform
* Use KOKORO_JOR_NAME to determine the BUILD_COMMIT.
* Use -std=c++14 on MacOS so -latomic can be used.
2019-01-25 16:19:07 -08:00
Adam Cozzette
d135f07bba
Do "strict" heapcheck instead of "draconian" ( #5635 )
...
The draconian heapcheck turns up memory leaks outside our control, such
as ones in libc and in the heapchecker itself. I think for an automated
test it makes more sense for us to use the "strict" heapcheck, since
that already passes and should only report leaks that are within our
control.
2019-01-25 10:28:52 -08:00
Adam Cozzette
0f4ec5ecdc
Merge pull request #5628 from acozzette/update-gtest
...
Updated googletest submodule to the most recent upstream commit
2019-01-25 10:15:36 -08:00