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

Enhance string decoding error handling in RealDecoder #38

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

ryan-gang
Copy link
Contributor

Added checks to ensure the remaining bytes are sufficient for string lengths in GetString, GetNullableString, GetCompactString, and GetCompactNullableString methods. Improved error messages to provide clearer feedback on expected versus actual byte lengths during decoding.

Added checks to ensure the remaining bytes are sufficient for string lengths in GetString, GetNullableString, GetCompactString, and GetCompactNullableString methods. Improved error messages to provide clearer feedback on expected versus actual byte lengths during decoding.
@ryan-gang ryan-gang self-assigned this Dec 12, 2024
@ryan-gang ryan-gang merged commit a880f2c into main Dec 12, 2024
2 checks passed
@ryan-gang ryan-gang deleted the unsafe-reads branch December 12, 2024 06:34
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.

1 participant