Commit Graph

5454 Commits

Author SHA1 Message Date
Rodrigo Hernandez
24493eef93 Using binary one's complement to negate an unsigned int
This removes a Visual Studio warning:

warning C4146: unary minus operator applied to unsigned type, result
still unsigned.
2017-12-07 13:29:20 -06:00
Paul Yang
c370f88fb1
Recursively clear unknown fields in submessages. (#3982)
* Recursively clear unknown fields in submessages.

* Recursively discard unknown fields in submsg for c extension

* Fix zts build

* Add comment for tests

* Add a TODO to add a util for encoding varint for better readability.

* Add test for oneof message field.
2017-12-07 11:16:47 -08:00
Jisi Liu
1b5b3b2839
Merge pull request #4013 from laszlocsomor/io_win32
io_win32: support non-ASCII paths
2017-12-07 11:16:08 -08:00
Laszlo Csomor
a3a1c93fb4 io_win32_unittest: remove incorrect error check
Unlike GetEnvironmentVariableW,
GetCurrentDirectoryW doesn't set
ERROR_INSUFFICIENT_BUFFER.
2017-12-07 15:31:49 +01:00
Laszlo Csomor
eb3bd6ec29 io_win32_unittest: fix condition in GetCwdAsUtf8 2017-12-07 15:31:49 +01:00
Laszlo Csomor
3f1b1a6da5 io_win32_unittest: use CWD as last tempdir
If the test cannot find a temp directory by
checking environment variables, it will fall back
to using the current working directory as the temp
directory root.

This is what the test used to do as of commit
6de51caed5
and what was then changed by commit
792d098769
2017-12-07 15:31:49 +01:00
Laszlo Csomor
57a01c7fbe io_win32: add more encoding-related tests 2017-12-07 15:31:49 +01:00
Laszlo Csomor
65da9fd97f io_win32: support non-ASCII paths
Fixes https://github.com/google/protobuf/issues/3951
2017-12-07 15:31:49 +01:00
Laszlo Csomor
953a0253fc io_win32_unittest: make //:win32_test run again
Do not use "googletest.h", apprently that leads to
linking errors on Windows which I couldn't figure
out how to solve, and decided to just go with
plain gTest instead.

See https://github.com/google/protobuf/issues/3951
2017-12-07 15:31:49 +01:00
Bo Yang
457f6a607c Add release log 2017-12-06 10:54:11 -08:00
Bo Yang
ba60b854b6 Update php c extension version number to 3.5.0.1 2017-12-06 10:46:57 -08:00
Bo Yang
212563d756 Fix memory leak in php7 2017-12-06 10:40:07 -08:00
Bo Yang
3b7a5f4515 Fix several more memory leak 2017-12-06 10:38:18 -08:00
Bo Yang
7d3437152a Fix memory leak when creating map field via array. 2017-12-06 10:37:53 -08:00
Bo Yang
e0d3aa057b Fix memory leak when creating repeated field via array. 2017-12-06 10:37:26 -08:00
Paul Yang
de44982a74 Remove duplicate typedef. (#3975) 2017-12-06 10:36:52 -08:00
W
0316ae802d
--pre is not necessary
--pre was not necessary to install google-protobuf when I tried it today (2017-12-06).
2017-12-06 18:18:50 +01:00
Adam Cozzette
9021f623e1
Merge pull request #3988 from acozzette/down-integrate
Integrated internal changes from Google
2017-12-05 13:02:36 -08:00
Yilun Chong
173f3043d3
Merge pull request #3926 from BSBandme/down_sync_benchmark
Sync benchmark changes from internal
2017-12-05 10:54:14 -08:00
Adam Cozzette
e372df5c97 Fixed failing JS tests 2017-12-05 10:41:31 -08:00
Feng Xiao
db7c043f6d
Merge pull request #3968 from fahhem/patch-2
Add a check_version() for use in WORKSPACEs
2017-12-04 15:28:56 -08:00
Fahrzin Hemmati
35119e39a0 Add a check_protobuf_required_bazel_version() for use in WORKSPACEs 2017-12-04 15:12:08 -08:00
Yilun Chong
1fd6c1761e Fix bugs to pass tests 2017-12-04 14:39:08 -08:00
Adam Cozzette
7bb8584f9d Updated conformance failure lists 2017-12-04 14:14:29 -08:00
Bo Yang
b140cb3145 Fix memory leak when creating map field via array. 2017-12-04 12:32:10 -08:00
Thomas Van Lenten
716acc3b97 Remove Xcode directives on some configs.
Travis changed their default image:
https://blog.travis-ci.com/2017-11-21-xcode8-3-default-image-announce

So there is no need to set a specific image any more, and the non
apple language tests should be able to use the default images.
2017-12-04 12:48:12 -05:00
Bo Yang
1acacf46cc Fix memory leak when creating repeated field via array. 2017-12-01 20:14:57 -08:00
Yilun Chong
1c062a65af Sync internal benchmark changes 2017-12-01 11:55:38 -08:00
Adam Cozzette
5d647e19e7 Updated Makefile.am to add a new file to EXTRA_DIST 2017-12-01 11:22:17 -08:00
Adam Cozzette
0ba8eea655 Merge branch 'master' into down-integrate 2017-12-01 10:05:19 -08:00
Adam Cozzette
92a7e778e7 Integrated internal changes from Google 2017-12-01 10:05:10 -08:00
Adam Cozzette
a711e3d5b4
Merge pull request #3979 from acozzette/3.5.x-merge
Merge 3.5.x branch into master
2017-12-01 07:31:37 -08:00
Adam Cozzette
a27da09339 Merge branch '3.5.x' into 3.5.x-merge 2017-11-30 13:34:51 -08:00
Paul Yang
94bb1eed17
Remove duplicate typedef. (#3975) 2017-11-30 12:21:00 -08:00
Paul Yang
74e7decbbf
Provide discardUnknonwnFields API in php (#3976)
* Provide discardUnknownFields API in php implementation

* Provide discardUnknownFields API in php c extension.
2017-11-30 12:19:50 -08:00
Feng Xiao
6de51caed5
Merge pull request #3824 from anuraaga/dev_rag
[Java] Add a UTF-8 decoder that uses Unsafe to directly decode a byte buffer.
2017-11-30 11:03:46 -08:00
Feng Xiao
da89eb25ef
Merge pull request #3955 from linux-on-ibm-z/master
Adding Release_CompareAndSwap 64-bit variant
2017-11-30 10:44:11 -08:00
Jie Luo
6d6099553b
Update csharp version number (#3958) 2017-11-29 16:10:44 -08:00
Joshua Haberman
0289dd8f90
Merge pull request #2519 from rubynerd-forks/ruby-fix-repeated-message-type-field
unwrap descriptor class before comparison of RepeatedField types
2017-11-29 10:07:35 -08:00
Jon Skeet
74f64b667c Fix JsonTokenizer exception message 2017-11-29 07:14:57 +00:00
Anuraag Agrawal
3e944aec9e Add a UTF-8 decoder that uses Unsafe to directly decode a byte buffer. 2017-11-29 15:44:58 +09:00
Adam Cozzette
3c6fd3f7f9
Merge pull request #3960 from acozzette/libprotoc-export-fix
Added back in LIBPROTOC_EXPORT which was removed by mistake
2017-11-28 16:54:55 -08:00
Adam Cozzette
1b1d1ea340 Added back in LIBPROTOC_EXPORT which was removed by mistake 2017-11-28 07:28:26 -08:00
Adam Cozzette
34e30e5c1b
Merge pull request #3962 from jleni/fix_dotnet
Upgrading dotnet to 1.0.4
2017-11-28 07:23:31 -08:00
Juan Leni
582d6ac3aa Upgrading dotnet to 1.0.4 2017-11-28 05:18:25 +01:00
Jisi Liu
f2127b667e
Merge pull request #3416 from xiaoshuang-lu/PROTOBUF-3404
[PROTOBUF-3404] add --with-zlib=PATH to configure.ac script
2017-11-27 09:45:36 -08:00
Nayana-ibm
642e1ac635 Adding Release_CompareAndSwap 64-bit variant 2017-11-27 05:43:30 -05:00
Xiaoshuang LU
8ff2284456 [PROTOBUF-3404] add --with-zlib=PATH to configure.ac script 2017-11-23 10:53:31 +08:00
Jisi Liu
cf65a7946f Update version for 3.5.0.post1 2017-11-22 14:05:10 -08:00
Jisi Liu
f466709e7d
Merge pull request #3941 from google/anandolee-patch-2
Add _file_desc_by_toplevel_extension back
2017-11-22 14:01:02 -08:00