-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a bug in
upb_Map_Delete()
that caused crashes in map.delete(k…
…) for Ruby when string-keyed maps were in use. Fixes: protocolbuffers/protobuf#12580 When `upb_Map_Delete(map, k, &v)` was called for a string-keyed map, the returned value `v` contained garbage data instead of the true string length. Since `map.delete(k)` in Ruby returns the deleted value, this was causing a garbage length to be used when allocating and copying data. PiperOrigin-RevId: 535261609
- Loading branch information
1 parent
73ee41c
commit 14bad4a
Showing
2 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters