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

XDR limits updates #1236

Merged
merged 2 commits into from
Nov 20, 2023
Merged

XDR limits updates #1236

merged 2 commits into from
Nov 20, 2023

Conversation

dmkozh
Copy link
Contributor

@dmkozh dmkozh commented Nov 20, 2023

What

  • Use the input-based limit for the de-serialization (we always know the buffer size before decoding it)
  • Increase the default 'width' limit to 32MiB - is is only used for serialization now. Serialization is protected by the budget metering, so there is no need to be too restrictive with the hard limit.

Why

Improve XDR safety/usability

Known limitations

N/A

- Use the input-based limit for the de-serialization (we always know the buffer size before decoding it)
- Increase the default 'width' limit to 32MiB - is is only used for serialization now. Serialization is protected by the budget metering, so there is no need to be too restrictive with the hard limit.
@dmkozh dmkozh added this pull request to the merge queue Nov 20, 2023
Merged via the queue into stellar:main with commit 0b22e1e Nov 20, 2023
9 of 10 checks passed
@dmkozh dmkozh deleted the xdr_limits_upd branch November 20, 2023 20:48
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.

3 participants