Joshua Haberman
97e2aeb7ee
Merge pull request #375 from haberman/cleanups
...
A few minor cleanups
4 years ago
Joshua Haberman
83c0edbd2a
A few minor cleanups.
4 years ago
Joshua Haberman
baa7fe7473
Merge pull request #374 from haberman/update-deps
...
Updated versions of ABSL and protobuf deps.
4 years ago
Joshua Haberman
900bd5c426
Merge pull request #355 from haberman/aarch64
...
The fasttable parser works on ARM64!
4 years ago
Joshua Haberman
89df647460
Updated versions of ABSL and protobuf deps.
4 years ago
Joshua Haberman
e4343f0fa3
Update comment for ARM64.
4 years ago
Joshua Haberman
103d51f102
Merge branch 'master' into aarch64
4 years ago
Joshua Haberman
1b9cc09f0e
Removed extraneous copybara directive.
4 years ago
Joshua Haberman
bbd817fdb6
Merge pull request #373 from haberman/table-cleanup
...
Now that handlers are gone, cleaned up table to use arenas exclusively.
4 years ago
Joshua Haberman
c358829c76
Now that handlers are gone, cleaned up table to use arenas exclusively.
...
Also cleaned up some cruft from table.
4 years ago
Joshua Haberman
ed5b4108e0
Merge pull request #363 from haberman/delete-handlers
...
Deleted the legacy "Handlers" APIs. upb can finally be deserving of its name.
4 years ago
Joshua Haberman
bfa528f0ae
Merge pull request #372 from haberman/errmsg-fix
...
Fixed error message buffer overflow.
4 years ago
Joshua Haberman
ec9ba3f893
Fixed error message buffer overflow.
4 years ago
Joshua Haberman
eb0fdda14b
Merge pull request #371 from haberman/json-any
...
Fix for Any messages with no fields.
4 years ago
Joshua Haberman
e58f7a0284
Fix for Any messages with no fields.
4 years ago
Joshua Haberman
7541ba0f38
Merge pull request #364 from catenacyber/cifuzz
...
Adds CIFuzz
4 years ago
Joshua Haberman
81829bacc3
Removed quote chars from error message.
4 years ago
Joshua Haberman
88ed8f5d3b
Changed JSON decoding error message to be more clear.
...
"No such field:" is more clear than "Unknown field:",
because "unknown field" is a term of art within protocol
buffers that implies that we are preserving the field.
Also "No such field:" matches the pre-existing Ruby
error message.
4 years ago
Joshua Haberman
f41c0ec261
Added an internal API to get arena from symtab, for Ruby's use.
4 years ago
Joshua Haberman
b080659eee
Merge pull request #367 from haberman/timestamp-minute-offset
...
Support non-zero minutes in the timestamp offset for JSON.
4 years ago
Joshua Haberman
f7ed1f27a3
Support non-zero minutes in the timestamp offset for JSON.
4 years ago
Philippe Antoine
451dcbbb9a
Adds CIFuzz
4 years ago
Joshua Haberman
f5d2d55007
Deleted the legacy "Handlers" APIs. upb can finally be deserving of its name.
...
This is possible now that all users have been migrated to the new
upb_msg APIs.
4 years ago
Joshua Haberman
0f40d59258
Merge pull request #362 from haberman/rb-warnings
...
Fixed a bunch of Clang warnings.
4 years ago
Joshua Haberman
c7787cbaa1
Fixed a bunch of Clang warnings.
...
Unfortunately a few of the Clang warnings did not have easy fixes:
../../../../ext/google/protobuf_c/ruby-upb.c: In function ‘fastdecode_err’:
../../../../ext/google/protobuf_c/ruby-upb.c:353:13: warning: function might be candidate for attribute ‘noreturn’ [-Wsuggest-attribute=noreturn]
353 | const char *fastdecode_err(upb_decstate *d) {
| ^~~~~~~~~~~~~~
../../../../ext/google/protobuf_c/ruby-upb.c: In function ‘_upb_decode’:
../../../../ext/google/protobuf_c/ruby-upb.c:867:30: warning: argument ‘buf’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
867 | bool _upb_decode(const char *buf, size_t size, void *msg,
I even tried to suppress the first error, but it still shows up.
4 years ago
Joshua Haberman
5e53b5bb3d
Merge pull request #360 from haberman/default-msgval
...
Added API for getting fielddef default as a upb_msgval
4 years ago
Joshua Haberman
7a6e647be1
Merge branch 'master' into default-msgval
4 years ago
Joshua Haberman
edb0a9a2d9
Merge pull request #361 from haberman/arena-bugfix
...
Bugfix for arena cleanup list when passing to upb_decode().
4 years ago
Joshua Haberman
9175989431
Bugfix for arena cleanup list when passing to upb_decode().
4 years ago
Joshua Haberman
5e550e88f8
Added API for getting fielddef default as a upb_msgval.
4 years ago
Joshua Haberman
de76b31f9c
Merge pull request #359 from veblush/fix-upbdefs
...
Fixed upbdefs error
4 years ago
Esun Kim
3cab8a38fc
Fixed upbdefs error
4 years ago
Esun Kim
48bb3e5662
Merge pull request #357 from veblush/string-opt
...
Optimize calls to std::string::find() and friends for a single char.
4 years ago
Esun Kim
4c67b2086b
Merge pull request #358 from veblush/clang-tidy-fix
...
Fix clang-tidy function 'upb_encode_ex'
4 years ago
Esun Kim
38b4beed6b
Fix clang-tidy function 'upb_encode_ex' has a definition with different parameter names
4 years ago
Esun Kim
9b020d8f65
Optimize calls to std::string::find() and friends for a single char.
4 years ago
Joshua Haberman
60607da72e
Merge pull request #356 from haberman/codegen-uniquefiles
...
Split the code generators for .upb and .upbdefs.
4 years ago
Joshua Haberman
7a54a5f3d6
Split the code generators for .upb and .upbdefs.
...
Before there was a single code generator that generated both
.upb and .upbdefs, even though they are generated by different
rules. This worked fine as long as the codegen steps were
sandboxed, but if not it led to build errors.
Fixes https://github.com/protocolbuffers/upb/issues/354 .
4 years ago
Joshua Haberman
3c9ae7837a
The fasttable parser works on ARM64!
4 years ago
Joshua Haberman
b10b02f66f
Merge pull request #353 from haberman/small-fixes
...
A couple minor fixes. These are exercised by Ruby.
4 years ago
Joshua Haberman
cd7c2d2701
Merge pull request #352 from haberman/large-field-number
...
Fixed upb encoder for field numbers > 2**28.
4 years ago
Joshua Haberman
10b355a6e0
A couple minor fixes. These are exercised by Ruby.
4 years ago
Joshua Haberman
6c30b5fe73
Fixed upb encoder for field numbers > 2**28.
...
The encoder was improperly sign-extending the tag to 64 bits.
4 years ago
Joshua Haberman
31b3528424
Merge pull request #350 from haberman/encode-depthlimit
...
Added depth limit checking to upb_encode().
4 years ago
Joshua Haberman
e9551022c1
Added depth limit checking to upb_encode().
...
This can catch infinite recursion due to loops,
or just excessively deep message trees.
The depth limit is configurable, but defaults to 64.
4 years ago
Joshua Haberman
f389384c5a
Merge pull request #349 from lidizheng/json-public
...
Make Bazel rule ":json" publicly visible
4 years ago
Lidi Zheng
f72c26cbc4
Make :json publically visible
4 years ago
Joshua Haberman
5797d95172
Merge pull request #348 from haberman/json-emit-defaults
...
Fixes for JSON encoder when emitting default values.
4 years ago
Joshua Haberman
7a17493269
Removed print debugging.
4 years ago
Joshua Haberman
695b7f4617
Added code to test UPB_JSONENC_EMITDEFAULTS.
4 years ago