Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

zhangskz
Copy link
Member

@zhangskz zhangskz commented Feb 5, 2024

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

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
@zhangskz zhangskz requested a review from a team as a code owner February 5, 2024 19:19
@zhangskz zhangskz requested review from JasonLunn and haberman and removed request for a team and JasonLunn February 5, 2024 19:19
@JasonLunn JasonLunn added ruby jruby Issues unique to the JRuby interpreter labels Feb 5, 2024
@zhangskz zhangskz merged commit ab6bcba into 26.x Feb 5, 2024
188 checks passed
@zhangskz zhangskz deleted the cp-32a6f7a branch February 5, 2024 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jruby Issues unique to the JRuby interpreter ruby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants