Update protobuf's UPB dep to include the most recent changes.
PiperOrigin-RevId: 506093740
diff --git a/ruby/ext/google/protobuf_c/ruby-upb.h b/ruby/ext/google/protobuf_c/ruby-upb.h
index bd1ce0b..7d01e6c 100755
--- a/ruby/ext/google/protobuf_c/ruby-upb.h
+++ b/ruby/ext/google/protobuf_c/ruby-upb.h
@@ -1813,7 +1813,9 @@
// Must be last.
struct upb_MiniTableExtension {
+ // Do not move this field. We need to be able to alias pointers.
upb_MiniTableField field;
+
const upb_MiniTable* extendee;
upb_MiniTableSub sub; // NULL unless submessage or proto2 enum
};
@@ -8262,6 +8264,7 @@
int limit = size + (int)(ptr - e->end);
int delta = e->limit - limit;
_upb_EpsCopyInputStream_CheckLimit(e);
+ UPB_ASSERT(limit <= e->limit);
e->limit = limit;
e->limit_ptr = e->end + UPB_MIN(0, limit);
_upb_EpsCopyInputStream_CheckLimit(e);
@@ -9734,19 +9737,21 @@
status);
}
-// Links a sub-message field to a MiniTable for that sub-message. If a
+// Links a sub-message field to a MiniTable for that sub-message. If a
// sub-message field is not linked, it will be treated as an unknown field
-// during parsing, and setting the field will not be allowed. It is possible
+// during parsing, and setting the field will not be allowed. It is possible
// to link the message field later, at which point it will no longer be treated
-// as unknown. However there is no synchronization for this operation, which
+// as unknown. However there is no synchronization for this operation, which
// means parallel mutation requires external synchronization.
-UPB_API void upb_MiniTable_SetSubMessage(upb_MiniTable* table,
+// Returns success/failure.
+UPB_API bool upb_MiniTable_SetSubMessage(upb_MiniTable* table,
upb_MiniTableField* field,
const upb_MiniTable* sub);
-// Links an enum field to a MiniTable for that enum. All enum fields must
-// be linked prior to parsing.
-UPB_API void upb_MiniTable_SetSubEnum(upb_MiniTable* table,
+// Links an enum field to a MiniTable for that enum.
+// All enum fields must be linked prior to parsing.
+// Returns success/failure.
+UPB_API bool upb_MiniTable_SetSubEnum(upb_MiniTable* table,
upb_MiniTableField* field,
const upb_MiniTableEnum* sub);