Joshua Haberman
4c57b1fefd
More progress on Lua extension.
5 years ago
Joshua Haberman
d6c3152c0b
Added more Lua tests that are passing.
...
Also ripped out the ctype checking in upb_table, it
was not helpful (didn't help catch bugs) but was causing
problems.
5 years ago
Joshua Haberman
ae66e571d4
Fixed some bugs and added a few more tests.
5 years ago
Joshua Haberman
bfc86d3577
Fixed many bugs, basic Lua test passes!
5 years ago
Joshua Haberman
b518b06d75
Lua test program is loaded successfully.
5 years ago
Joshua Haberman
6ae4a2694c
Merge branch 'maps' of github.com:haberman/upb into maps
5 years ago
Joshua Haberman
cc6db9fb0b
Fixed crash bug.
5 years ago
Joshua Haberman
88d996132e
Added Lua main.c test driver program.
5 years ago
Joshua Haberman
626ec4bfcf
Everything builds, test pass except test_decoder.
5 years ago
Joshua Haberman
5239655b99
WIP.
5 years ago
Joshua Haberman
23825332e1
WIP.
5 years ago
Joshua Haberman
27b95c969a
WIP.
5 years ago
Joshua Haberman
9a360ad43d
Moved legacy_msg_reflection.{c,h} -> reflection.{c.h}.
5 years ago
Joshua Haberman
dc58b657ee
New reflection API doesn't need types as parameters for map/array.
...
All tests are passing again.
5 years ago
Joshua Haberman
c486da3970
WIP.
5 years ago
Joshua Haberman
b76040cfcc
Merge branch 'maps' of github.com:haberman/upb into maps
5 years ago
Joshua Haberman
cc8e894b63
Merge branch 'master' into maps
5 years ago
Joshua Haberman
f32f2fdb25
Merge pull request #221 from haberman/endsubmsg
...
Changed endsubmsg handler to return the closure of the submessage.
5 years ago
Joshua Haberman
ea99941f92
Merge pull request #223 from haberman/timestamp
...
Fixed leap year handling by reworking upb_mktime() -> upb_timegm().
5 years ago
Joshua Haberman
88b1026d26
Fixed leap year handling by reworking upb_mktime() -> upb_timegm().
...
The new function name also better reflects the semantics of the
function. Like timegm(), this function always converts to/from
UTC, not local time.
5 years ago
Joshua Haberman
715718d5a5
Changed endsubmsg handler to return the closure of the submessage.
...
This is a behavior change to help out PHP for the lazy wrappers
optimization.
5 years ago
Joshua Haberman
946880c105
Merge branch 'master' into maps
5 years ago
Joshua Haberman
56589c7276
Merge pull request #219 from haberman/asan
...
Fixed compiler error "error: control reaches end of non-void function".
5 years ago
Joshua Haberman
1ed64db8c2
Fixed compiler error "error: control reaches end of non-void function".
5 years ago
Joshua Haberman
32bed8562a
Merge pull request #217 from haberman/fix-bazel
...
Fixed for Bazel >= 1.0.
5 years ago
Joshua Haberman
5768e68ed7
Fixed for Bazel >= 1.0.
5 years ago
Esun Kim
9effcbcb27
Merge pull request #213 from veblush/c99
...
Removed -std=c89 option
5 years ago
Esun Kim
905d1913f7
No // comment
5 years ago
Esun Kim
e5f873198e
Removed -std=c89 option
5 years ago
Joshua Haberman
cdb3779e99
Merge pull request #210 from haberman/asanfix
...
A memory safety fix, found by ASAN.
5 years ago
Joshua Haberman
4e77dc16c1
Merge pull request #209 from haberman/pbcodecache2
...
Properly cache decoder methods, instead of regenerating every time.
5 years ago
Joshua Haberman
29c30e9cb3
Fixed cache to properly insert by msgdef key.
5 years ago
Joshua Haberman
555b60b062
A memory safety fix, found by ASAN.
...
We cannot assume that the input string is NULL-terminated,
or read past "len." Instead we manually NULL-terminate it.
5 years ago
Joshua Haberman
ca4605b3af
Properly cache decoder methods, instead of regenerating every time.
...
This doesn't fully share bytecode. If you generate for message A
which has B as a sub-message, then generate B, B's code will be
generated twice. This could be optimized later if desired. But
this addresses the leak in PHP.
Also removed some obsolete JIT-only code.
5 years ago
Joshua Haberman
2c86919770
Merge pull request #208 from haberman/bool_bugfix
...
Bugfix for boolean defaults.
5 years ago
Joshua Haberman
509f1e474f
Bugfix for boolean defaults.
5 years ago
Joshua Haberman
1461da5056
WIP.
5 years ago
Paul Yang
d3762e96cb
Accpet string for numeric wrappers ( #202 )
5 years ago
Esun Kim
931bbecbd3
Merge pull request #205 from veblush/murmur
...
Rename MurmurHash2 to upb_murmur_hash2
5 years ago
Esun Kim
59f43cd6e3
Merge pull request #204 from veblush/msvc-port
...
Clean up MSVC port for vsnprintf
5 years ago
Esun Kim
311049a67e
Merge pull request #203 from veblush/clang-port
...
Make it use builtin functions on clang
5 years ago
Esun Kim
6f9a9fb2fa
Rename MurmurHash2 to upb_murmur_hash2
5 years ago
Esun Kim
ce4c4fd76b
Clean up MSVC port for vsnprintf
5 years ago
Esun Kim
bc6d9518e1
Make it use builtin functions on clang
5 years ago
Nicolas Noble
b70f68269a
Merge pull request #201 from veblush/ubsan2
...
Fixed ubsan error on memmove
5 years ago
Esun Kim
3838f62aa5
Fixed ubsan error on memmove
5 years ago
Nicolas Noble
638d114a1a
Merge pull request #200 from veblush/ubsan
...
Fixed UBSAN issues
5 years ago
Esun Kim
bc8b1a8f90
Fixed UBSAN issues
5 years ago
Nicolas Noble
7e7cb5f831
Merge pull request #199 from veblush/upb_alloc_global
...
Add extern C to upb_alloc_global
5 years ago
Esun Kim
98ae7806e9
Add extern C to upb_alloc_global
5 years ago