- 10 Dec, 2019 5 commits
-
-
Thomas Van Lenten authored
VLAs complicate static analysis and bloat stack size. Replace VLA allocation with calls to malloc and free. This will alos the code to build with -Wvla.
-
William A Rowe Jr authored
This corresponds to the newest reading of RFC 3629, and results in the largest possible number of character entities by any valid parser. This may result in a buffer which is oversized, but never undersized. This is after further discussion with acozzette in this PR; https://github.com/protocolbuffers/protobuf/pull/6844 Signed-off-by: William A Rowe Jr wrowe@pivotal.io Signed-off-by: Yechiel Kalmenson ykalmenson@pivotal.io
-
William A Rowe Jr authored
In consuming this useful string utility, it was discovered that the interpretation of leading byte codes 0xf8-0xff did not conform to either the RFC 3629 nor ISO/IEC 10646 definitions of utf-8. The IETF RFC describes only 1-4 byte encodings (a limited number of 4 byte encodings at that), and plainly states in section 1. Introduction; o The octet values C0, C1, F5 to FF never appear. Alternately, the ISO definition "R.2 Specification of UTF-8" preseented in the original IETF RFC 2279 clearly define the meaning of leading byte values F5 through FD, and RFC 3629 Section 10. Security paragraph 3 calls out this alternate reading (alterative to "never appears".) F5-F7 begin an invalid (in the domain of unicode code points) 4-byte UTF-8 sequence (similar to F0-F4), while F8-FC begin a 5-byte sequence, FC and FD begin a 6 byte sequence. The curent code is wrong in that it doesn't treat the codes F8-FF as invalid 1-byte characters, nor does it treat the codes F8-FD as the correct number of bytes. No valid parser will land these lead characters 4 bytes forward. Most will treat these as the 5 or 6 byte utf-32 character and may then treat the resulting character as invalid, while some parsers may reject all leading F5-FF characters as a single byte of erronious input, followed by each invalid continuation byte. We propose the conventional reading of F8-FD as 5 and 6 byte sequences as originally defined, while FE-FF must be read as single byte invalid code points. Signed-off-by: William A Rowe Jr <wrowe@pivotal.io> Signed-off-by: Yechiel Kalmenson <ykalmenson@pivotal.io>
-
summerCol authored
-
Yannic authored
Plugins (and some built-in generators) have `--<lang>_opt` flag that allows passing parameters one-by-one instead of passing them as `--<lang>_out=<params>:<out_base>`. This PR changes protoc to allow using `--<lang>_opt` for all (built-in) generators.
-
- 06 Dec, 2019 5 commits
-
-
Christian Maurer authored
-
Christian Maurer authored
-
Zhao Junwang authored
make cpp won't compile since it requires `-std=c++11` com
-
Asra Ali authored
Signed-off-by: Asra Ali <asraa@google.com>
-
Adam Cozzette authored
-
- 05 Dec, 2019 5 commits
-
-
Florian Enner authored
-
Elliotte Rusty Harold authored
@haberman
-
Jingwen Chen authored
-
Jan Tattermusch authored
Cleanup various bits of Google.Protobuf
-
Jan Tattermusch authored
Fix latest ArgumentException for C# extensions
-
- 04 Dec, 2019 1 commit
-
-
Tomo Suzuki authored
-
- 03 Dec, 2019 2 commits
-
-
Sydney Acksman authored
-
Sydney Acksman authored
-
- 02 Dec, 2019 3 commits
-
-
Paul Yang authored
* Add php 7.4 to docker image * Use https links
-
Sydney Acksman authored
-
Sydney Acksman authored
-
- 27 Nov, 2019 2 commits
-
-
Rafi Kamal authored
* Add a proto_lang_toolchain for javalite * fix toolchain. Swap javalite example to master repo
-
Sydney Acksman authored
-
- 26 Nov, 2019 1 commit
-
-
Jan Tattermusch authored
Fix conformance test failures for Google.Protobuf
-
- 25 Nov, 2019 1 commit
-
-
Jan Tattermusch authored
This reverts commit f0680052.
-
- 24 Nov, 2019 3 commits
-
-
Sydney Acksman authored
-
Sydney Acksman authored
-
Sydney Acksman authored
-
- 22 Nov, 2019 2 commits
-
-
Joshua Haberman authored
Remove add_proto_enumdesc and get_proto_enumdesc
-
Bo Yang authored
-
- 21 Nov, 2019 2 commits
-
-
Paul Yang authored
* Implement lazy loading of php class for proto messages * Fix php 7.1 * Fix encode * Fix memory leak * Fix enum descriptor
-
Rafi Kamal authored
* Update CHANGES.txt with 3.11.0-RC1 release notes (#6909) * Revert "Make shared libraries be able to link to MSVC static runtime libraries, so that VC runtime is not required." (#6914) * Marked update_compatibility_version.py as executable (#6916)
-
- 20 Nov, 2019 4 commits
-
-
Sydney Acksman authored
-
Sydney Acksman authored
-
Sydney Acksman authored
-
Jan Tattermusch authored
-
- 19 Nov, 2019 3 commits
-
-
Sydney Acksman authored
-
Sydney Acksman authored
-
Sydney Acksman authored
Remove IsInitialized checks accidentally left in MessageParser Simplify ExtensionCollection.CrossLink
-
- 18 Nov, 2019 1 commit
-
-
Paul Yang authored
* Make reserve names map persistent * Add DescriptorInternal to map * Use get_msgdef_desc in encode_decode.c * Add persistent map for ce=>def and enum=>def * Replace get_ce_obj * Remove get_proto_obj * Remove obsolete fields from Descriptor and EnumDescriptor * Add cache for descriptor php values * Add cache for descriptors * Fix bug * Avoid add generated file again if it has been added * Fix the bug upb depends on null-ended str for look up. * Initialize generated pool impl * Turn down old generated pool * Add init entry flag protobuf.keep_descriptor_pool_after_request By default, it's off. Add protobuf.keep_descriptor_pool_after_request=1 to php.ini to enable it * Fix zts build
-