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

Fix io_buffer_get_string default length computation. #8427

Merged
merged 2 commits into from Sep 14, 2023

Conversation

ioquatix
Copy link
Member

@ioquatix ioquatix commented Sep 13, 2023

When an offset bigger than the size is given, the resulting length will be computed incorrectly. Raise an argument error in this case.

Conversion from VALUE to size_t requires special consideration, so I'll write helpers.

When an offset bigger than the size is given, the resulting length will be
computed incorrectly. Raise an argument error in this case.
@ioquatix ioquatix force-pushed the io-buffer-get_string-validations branch from 3dde22e to 21997a5 Compare September 13, 2023 01:36
@ioquatix ioquatix force-pushed the io-buffer-get_string-validations branch from d5fafac to ac8e063 Compare September 13, 2023 09:03
@ioquatix ioquatix merged commit a095740 into ruby:master Sep 14, 2023
92 checks passed
@ioquatix ioquatix deleted the io-buffer-get_string-validations branch September 14, 2023 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant