Index: third_party/protobuf/ruby/ext/google/protobuf_c/upb.c |
diff --git a/third_party/protobuf/ruby/ext/google/protobuf_c/upb.c b/third_party/protobuf/ruby/ext/google/protobuf_c/upb.c |
index 544ebc04175aeb3d741ed319a6af8c7d9062b4bb..74a2a1db30a325a87695db6428700419d292ba69 100644 |
--- a/third_party/protobuf/ruby/ext/google/protobuf_c/upb.c |
+++ b/third_party/protobuf/ruby/ext/google/protobuf_c/upb.c |
@@ -11076,8 +11076,8 @@ static bool end_stringval(upb_json_parser *p) { |
case UPB_TYPE_STRING: { |
upb_selector_t sel = getsel_for_handlertype(p, UPB_HANDLER_ENDSTR); |
- p->top--; |
upb_sink_endstr(&p->top->sink, sel); |
+ p->top--; |
break; |
} |
@@ -11175,7 +11175,7 @@ static bool parse_mapentry_key(upb_json_parser *p) { |
sel = getsel_for_handlertype(p, UPB_HANDLER_STRING); |
upb_sink_putstring(&subsink, sel, buf, len, NULL); |
sel = getsel_for_handlertype(p, UPB_HANDLER_ENDSTR); |
- upb_sink_endstr(&p->top->sink, sel); |
+ upb_sink_endstr(&subsink, sel); |
multipart_end(p); |
break; |
} |