Protobuf Team Bot
670e0c2a0d
Fix begin iterator for empty arrays.
...
If the underlying array for a repeated field is a nullptr (which is possible for const array access on a message field that hasn't been set) the begin iterator will currently contain garbage data, which can lead to an illegal access. This CL adds a nullptr check to `begin()`, similar to what already exists for `size()`.
PiperOrigin-RevId: 595217999
1 year ago
Eric Salo
df57e5474b
upb: fix Ruby bug which allowed map.delete(key) on a frozen map
...
Also clean up some compiler warnings about exiting from non-void functions without returning a value.
PiperOrigin-RevId: 595185251
1 year ago
Protobuf Team Bot
255f95e5b1
Include JSON output tests with Proto2 messages in the conformance test suite.
...
PiperOrigin-RevId: 595173790
1 year ago
Kevin King
8876b1069f
impl SettableValue for MsgView
...
For the cpp runtime, call the `Message::CopyFrom` method.
For the upb runtime, expose the message `MiniTable` and call `upb_Message_DeepCopy`.
PiperOrigin-RevId: 595166276
1 year ago
Protobuf Team Bot
569548cd82
Make Rust Conformance skip non-wire output test cases by using an overlay proto.
...
PiperOrigin-RevId: 595152672
1 year ago
Protobuf Team Bot
84f8e4fbbc
Auto-generate files after cl/595144470
1 year ago
Kevin King
fa5f8fa7e8
Depend on upb_generator:mangle from rust compiler
...
Update cmake to include necessary upb_generator files and upb namespace.
PiperOrigin-RevId: 595144470
1 year ago
Protobuf Team Bot
3d9916caca
Auto-generate files after cl/595137531
1 year ago
Eric Salo
9debd6b10a
upb: merge upb:message_accessors into upb:message
...
PiperOrigin-RevId: 595137531
1 year ago
Protobuf Team Bot
18d4a7651b
Auto-generate files after cl/595018281
1 year ago
Eric Salo
4ba7d27201
upb: implement _upb_Message_ClearOneofCase()
...
PiperOrigin-RevId: 595018281
1 year ago
Protobuf Team Bot
de5ea1e6a4
Auto-generate files after cl/595002227
1 year ago
Eric Salo
4f1eba857a
upb: lock down the internal headers for upb:wire_reader
...
PiperOrigin-RevId: 595002227
1 year ago
Protobuf Team Bot
cb8a31ee3d
Auto-generate files after cl/594992691
1 year ago
Eric Salo
64dbf0dba4
upb: delete the aliases for upb:hash, upb:lex, upb:reflection_internal
...
PiperOrigin-RevId: 594992691
1 year ago
Protobuf Team Bot
2b79738d5f
Auto-generate files after cl/594654099
1 year ago
Eric Salo
f1b8f477d7
upb: factor out message internal data pointers
...
PiperOrigin-RevId: 594654099
1 year ago
Protobuf Team Bot
499c748e39
Auto-generate files after cl/594514934
1 year ago
Eric Salo
f0cf0b653c
upb: clean up and consolidate the upb/message/ build targets
...
PiperOrigin-RevId: 594514934
1 year ago
Protobuf Team Bot
6e25bb8d4c
Optimize AddAllocatedForParse function.
...
PiperOrigin-RevId: 594422850
1 year ago
Protobuf Team Bot
61b82528ba
Auto-generate files after cl/594337191
1 year ago
Eric Salo
1fc0e72416
upb: make :wire internal headers private
...
PiperOrigin-RevId: 594337191
1 year ago
Protobuf Team Bot
1597bf4971
Auto-generate files after cl/594322509
1 year ago
Joshua Haberman
c16ac66e85
Fixed non-conformance in upb JSON enum decoding when ignoring unknown enum values.
...
PiperOrigin-RevId: 594322509
1 year ago
Adam Cozzette
4ec9170bcd
Fix layering check for usage of gtest
...
To satisfy the layering check, we need to depend on :gtest for the headers, in
addition to :gtest_main which provides the main() function.
There are a bunch of formatting changes as a side effect of this, but they
should be harmless.
PiperOrigin-RevId: 594318263
1 year ago
Protobuf Team Bot
79cc57bf57
Auto-generate files after cl/594312823
1 year ago
Protobuf Team Bot
a83da510c4
Automated rollback of commit 0bcc8ef9f2
.
...
PiperOrigin-RevId: 594312823
1 year ago
Hong Shin
4c35408777
Rename Thunk to ThunkName
...
Let's hint at returning a name as opposed to a computed chunk / lambda
PiperOrigin-RevId: 594300381
1 year ago
Joshua Haberman
37a926e177
Added JSON parsing/serialization to benchmark
...
PiperOrigin-RevId: 594293336
1 year ago
Protobuf Team Bot
27cccac563
Fix some non-breaking issues with rust gencode.
...
- Stop emitting a clear thunk for without-presence string/bytes fields (was unused, but would link-error it was used since there's no such operation).
- Remove unused clearer_thunk variable in message.cc
- Remove unsafe{} block surrounding non-unsafe BytesMutVTable::new
- Add #[allow(non_snake_case)] on module names (the new mangling added in cr/593048297 puts double-underscore in names which rustc recognizes as non-snake).
PiperOrigin-RevId: 594287606
1 year ago
Hong Shin
50f0140780
Fix textfmt typo: vaid -> valid
...
PiperOrigin-RevId: 594286947
1 year ago
Protobuf Team Bot
c2c01b6166
Auto-generate files after cl/594280505
1 year ago
Eric Salo
0eac807f3b
upb: delete the aliases for base:internal and mini_descriptor:internal
...
PiperOrigin-RevId: 594280505
1 year ago
Dmitri Gribenko
b82bb29340
Internal Code Change
...
PiperOrigin-RevId: 594266511
1 year ago
Protobuf Team Bot
e0b3610e7f
Auto-generate files after cl/594261739
1 year ago
Protobuf Team Bot
0bcc8ef9f2
Removed the unused "JSPB (internal)" from conformance the conformance test suite.
...
PiperOrigin-RevId: 594261739
1 year ago
Protobuf Team Bot
0b237199c5
Hook up the edition2023 cases to Rust conformance test.
...
PiperOrigin-RevId: 594235463
1 year ago
Joshua Haberman
442e079677
Removed Ruby compatibility tests.
...
In Ruby protobuf 4.26.0 we are intentionally breaking compatibility with our generated code from Protobuf 3.0.0. So these tests are now obsolete.
PiperOrigin-RevId: 594157323
1 year ago
Protobuf Team Bot
e9ea4a5154
Auto-generate files after cl/594135760
1 year ago
Eric Salo
7e1fd68667
upb: clean up some of the includes in upb/message/
...
PiperOrigin-RevId: 594135760
1 year ago
Sandy Zhang
0317875286
Update Ruby GHA to test against Ruby 3.3 in Linux / MacOS / Install and FFI combinations.
...
PiperOrigin-RevId: 594132729
1 year ago
Jie Luo
4f77929203
BREAKING CHANGE in v26: check if Timestamp is valid.
...
Seconds should be in range [-62135596800, 253402300799]
Nanos should be in range [0, 999999999]
PiperOrigin-RevId: 594119545
1 year ago
Joshua Haberman
75455eae6c
Fixed compiler warnings in the Ruby C extension.
...
PiperOrigin-RevId: 594106078
1 year ago
Joshua Haberman
36bb6fb0dd
Disable MacOS C++ Cmake test for now.
...
PiperOrigin-RevId: 594102279
1 year ago
Protobuf Team Bot
9b4aff2a43
Auto-generate files after cl/594089137
1 year ago
Eric Salo
27eae8f404
upb: delete mini_table/types.h
...
PiperOrigin-RevId: 594089137
1 year ago
Protobuf Team Bot
19c800c4f8
Fix warning from missing (void) on a 0-arg function.
...
PiperOrigin-RevId: 594080778
1 year ago
Protobuf Team Bot
e4057a4014
Enable Rust conformance test on proto3 message.
...
PiperOrigin-RevId: 594080663
1 year ago
Protobuf Team Bot
80b5fe437b
Auto-generate files after cl/594074354
1 year ago
Eric Salo
090c3adbf2
upb: start consolidating the upb/message/ build targets
...
PiperOrigin-RevId: 594074354
1 year ago