Skip to content

Increased the size of the error message buffer by 4x, to 511 bytes.#15649

Merged
1 commit merged intomainfrom
test_602852859
Jan 31, 2024
Merged

Increased the size of the error message buffer by 4x, to 511 bytes.#15649
1 commit merged intomainfrom
test_602852859

Conversation

@copybara-service
Copy link
Copy Markdown

Increased the size of the error message buffer by 4x, to 511 bytes.

The previous limit of 127 was causing error messages to get truncated when long identifiers are in use.

This will increase the stack usage of any code that is allocating a upb_Status on the stack. If we want to support smaller stacks in the future, we could change upb_Status to store its capacity inline, so different users can allocate error buffers with different capacity.

Fixes: #14376

@copybara-service copybara-service Bot force-pushed the test_602852859 branch 2 times, most recently from 4dca236 to a271155 Compare January 31, 2024 18:51
The previous limit of 127 was causing error messages to get truncated when long identifiers are in use.

This will increase the stack usage of any code that is allocating a `upb_Status` on the stack. If we want to support smaller stacks in the future, we could change `upb_Status` to store its capacity inline, so different users can allocate error buffers with different capacity.

Fixes: #14376
PiperOrigin-RevId: 603136385
@copybara-service copybara-service Bot closed this pull request by merging all changes into main in 32a6f7a Jan 31, 2024
@copybara-service copybara-service Bot deleted the test_602852859 branch January 31, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PHP Fatal error: Unable to load descriptor: type mismatch when resolving

1 participant