Matt Fowles Kulukundis
b053fa6991
Merge pull request #378 from fowles/master
...
Allow arena fuse to fail and only fuse when they are safe
4 years ago
Matt Kulukundis
7876639e50
remove unused macro
4 years ago
Matt Kulukundis
5b97df91dd
Restrict fuse to matching block_alloc
4 years ago
Matt Kulukundis
e74d6c23de
Small renames and use uintptr_t instead of void*
4 years ago
Matt Kulukundis
d9a0c58108
Allow arena fuse to fail
...
Track initial blocks to avoid having fuse operate on arenas that cannot
be fused.
4 years ago
Joshua Haberman
53f5d9f69b
Merge pull request #377 from haberman/json-parse-null
...
Fixed "NULL + 0" UB in JSON encoder and decoder.
4 years ago
Joshua Haberman
8370818143
Switch to a macro to avoid signed/const mismatches.
4 years ago
Joshua Haberman
63ad3db980
Fixed "NULL + 0" UB in JSON encoder and decoder.
4 years ago
Joshua Haberman
add9b12f18
Fixed quadratic memory usage in upb_array_append().
...
We were erroneously calling realloc() instead of resize(),
forcing the entire array to be reallocated for every array
append.
4 years ago
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