Joshua Haberman
5f74d43cf9
Re-add some comment text that was accidentally removed.
4 years ago
Joshua Haberman
0f27b0450a
Merge branch 'master' into license-headers
4 years ago
Joshua Haberman
e59d2c8fa7
Added license headers to all files.
4 years ago
Joshua Haberman
be4f64b926
Merge pull request #381 from haberman/mv-msg-public
...
Put public message interface into msg.h and moved internal functions to msg.int.h.
4 years ago
Joshua Haberman
1674f28dd7
Put public message interface into msg.h and moved internal functions to msg.int.h.
4 years ago
Matt Fowles Kulukundis
f104225a1e
Merge pull request #376 from haberman/fix-quadratic-mem
...
Fixed quadratic memory usage in upb_array_append().
4 years ago
Joshua Haberman
3c3799498d
Merge pull request #379 from fowles/master
...
Remove unused file test_util.h
4 years ago
Matt Kulukundis
2e83d5c98f
Remove unused file test_util.h
4 years ago
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