Joshua Haberman
c52c247c92
Addressed PR comments.
3 years ago
Joshua Haberman
32ebb4817a
Simplified AssureWritable().
3 years ago
Joshua Haberman
dc0d1b4932
Addressed PR comments.
3 years ago
Joshua Haberman
6bb891e32b
Addressed PR comments.
3 years ago
Joshua Haberman
c42beeb8d3
Addressed PR comments.
3 years ago
Joshua Haberman
eb38a2a608
Some more cleanups before sending for PR.
3 years ago
Joshua Haberman
0222899642
Merge branch 'main' into python-message
3 years ago
Joshua Haberman
f47a22d805
Merge pull request #460 from haberman/encode-required
...
Added required field checking into the encoder
3 years ago
Joshua Haberman
2df18f0a3e
Addressed PR comments.
3 years ago
Joshua Haberman
39365f16a7
Addressed PR comments.
3 years ago
Joshua Haberman
a0374b3b08
Added required field checking into the encoder.
3 years ago
Joshua Haberman
4111d13172
WIP.
3 years ago
Joshua Haberman
0d87ddc7d7
Merge pull request #458 from haberman/python-descriptor
...
Implemented descriptor wrappers in Python
3 years ago
Joshua Haberman
5d92e132c7
Removed defunct link to old protobuf.
3 years ago
Joshua Haberman
5815be9ae6
Reverted GitHub Actions changes.
3 years ago
Joshua Haberman
14f696fad6
Install Valgrind (attempt #2 ).
3 years ago
Joshua Haberman
55e3f89098
Install Valgrind.
3 years ago
Joshua Haberman
2734519115
Temporarily change GitHub Actions to use Valgrind, to debug CI-only failures.
3 years ago
Joshua Haberman
d2e408ebc4
Removed fail-fast, so we get information about all failures.
3 years ago
Joshua Haberman
a155418fea
Addressed PR comment.
3 years ago
Joshua Haberman
e3cd0586bc
More PR comments.
3 years ago
Joshua Haberman
8c5c59a308
Addressed PR comments.
3 years ago
Joshua Haberman
bfc264d098
Moved pointers left and added some comments.
3 years ago
Joshua Haberman
deddc20f0c
Adds implementations for most descriptor objects.
3 years ago
Joshua Haberman
34a3f12d63
Merge pull request #457 from haberman/fix-main
...
Removed the explicit define of __SANITIZE_ADDRESS__.
3 years ago
Joshua Haberman
be383022c5
Removed the explicit define of __SANITIZE_ADDRESS__.
...
This should always be set when `-fsanitize=address` is true, but for
some reason this doesn't appear to be happening.
3 years ago
Joshua Haberman
272614dfd7
Merge pull request #451 from haberman/python-convert
...
Conversion functions between Python and upb data types
3 years ago
Joshua Haberman
b75f7cff17
Addressed PR comments.
3 years ago
Joshua Haberman
1aa7200dc6
Addressed PR comments.
3 years ago
Joshua Haberman
fd9d19d665
Properly compare Python unknown fields.
3 years ago
Joshua Haberman
9bff7b82d1
Unknown field comparison is passing tests.
3 years ago
Joshua Haberman
732a21bb59
Added unknown field comparison to compare.h/compare.c.
3 years ago
Joshua Haberman
59035e87fb
Merge pull request #440 from stanhu/sh-fix-lua-bounds-check
...
Fix LUA out-of-range checks to handle integer overflow
3 years ago
Stan Hu
50be590581
Use pre-defined standard integer max/mins in INTCHECK
...
This makes the code easier to read.
3 years ago
Joshua Haberman
50d02938ed
Merge pull request #437 from stanhu/sh-fix-big-endian-packed-enums
...
Fix big-endian encodings for fixed packed arrays
3 years ago
Joshua Haberman
4c94682c77
Merge pull request #454 from haberman/large-message-set-num
...
Check extension field numbers against extension ranges.
3 years ago
Joshua Haberman
d2283ed219
Verify extension ranges, and addressed PR comments.
3 years ago
Joshua Haberman
df77ca5dbb
Check extension field numbers against extension ranges.
...
This makes extension checking more strict in most cases.
However it also fixes a bug with MessageSet where we were being
too strict. MessageSet allows larger extension numbers than
normal extensions do.
3 years ago
Joshua Haberman
01e6339d79
Merge pull request #453 from haberman/ubsan-fix
...
Avoid NULL + 0 when adding a list of 0 extensions.
3 years ago
Joshua Haberman
7576a3bfc1
Avoid NULL + 0 when adding a list of 0 extensions.
3 years ago
Joshua Haberman
1e1adc6a34
PR comments and WIP.
3 years ago
Joshua Haberman
a0b616252a
Merge pull request #444 from haberman/descriptor-containers
...
[python] Added descriptor containers
3 years ago
Joshua Haberman
1845997498
Added comments.
3 years ago
Stan Hu
4e8267e7e3
Fix big-endian encodings for fixed packed arrays
...
Previously the encoder would serialize the output buffer in one copy,
but this only works on little-endian systems. For big-endian systems, we
now iterate through the array and convert each value if necessary before
serializing it out.
Closes https://github.com/protocolbuffers/upb/issues/436
3 years ago
Joshua Haberman
269e36b092
Addressed PR comments.
3 years ago
Joshua Haberman
4fb0971bd0
Used Py_XDECREF instead of explicit NULL checks.
3 years ago
Joshua Haberman
d6212461e6
Addressed PR comments.
3 years ago
Joshua Haberman
83d1508ee5
Addressed PR comments.
3 years ago
Joshua Haberman
643e43c3e9
Merge pull request #450 from stanhu/sh-fix-conformance-tests-big-endian
...
Fix conformance test failures on big-endian systems
3 years ago
Stan Hu
81eda8fade
Fix conformance test failures on big-endian systems
...
Previously 59 tests were failing in the conformance tests. These were
failing in SINT32 and JSON enum handling. In both cases, we need to cast
int64 values to int32 to avoid losing bytes in a big-endian system.
Closes https://github.com/protocolbuffers/upb/issues/449
3 years ago