Skip to content

Do not depend on the evaluation order of C arguments - #698

Merged
hsbt merged 1 commit into
ruby:masterfrom
mame:do-not-depend-on-eval-order-of-args
Dec 4, 2024
Merged

hsbt merged 1 commit into
ruby:masterfrom
mame:do-not-depend-on-eval-order-of-args

Conversation

@mame

@mame mame commented Nov 29, 2024

Copy link
Copy Markdown
Member

The evaluation order of C arguments is unspecified. RSTRING_LEN(value) would fail if the conversion to a String by StringValuePtr(value) is not done yet.

Coverity Scan found this issue.

The evaluation order of C arguments is unspecified.
`RSTRING_LEN(value)` would fail if the conversion to a String by
`StringValuePtr(value)` is not done yet.

Coverity Scan found this issue.
@hsbt
hsbt merged commit 0eb96cb into ruby:master Dec 4, 2024
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.

2 participants