Skip to content

Commit

Permalink
Auto-generate files after cl/713766718
Browse files Browse the repository at this point in the history
  • Loading branch information
protobuf-team-bot committed Jan 9, 2025
1 parent 3580d09 commit b339b5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion php/ext/google/protobuf/php-upb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3221,7 +3221,7 @@ static bool _upb_Arena_AllocBlock(upb_Arena* a, size_t size) {

// We may need to exceed the max block size if the user requested a large
// allocation.
size_t block_size = UPB_MAX(size, clamped_size) + kUpb_MemblockReserve;
size_t block_size = UPB_MAX(kUpb_MemblockReserve + size, clamped_size);

upb_MemBlock* block =
upb_malloc(_upb_ArenaInternal_BlockAlloc(ai), block_size);
Expand Down
2 changes: 1 addition & 1 deletion ruby/ext/google/protobuf_c/ruby-upb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3221,7 +3221,7 @@ static bool _upb_Arena_AllocBlock(upb_Arena* a, size_t size) {

// We may need to exceed the max block size if the user requested a large
// allocation.
size_t block_size = UPB_MAX(size, clamped_size) + kUpb_MemblockReserve;
size_t block_size = UPB_MAX(kUpb_MemblockReserve + size, clamped_size);

upb_MemBlock* block =
upb_malloc(_upb_ArenaInternal_BlockAlloc(ai), block_size);
Expand Down

0 comments on commit b339b5c

Please sign in to comment.