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 GH-18212: fseek with SEEK_CUR and negative offset crash on debug #18224

Closed
wants to merge 1 commit into from

Conversation

devnexen
Copy link
Member

@devnexen devnexen commented Apr 1, 2025

Triggers the assertion as with SEEK_CUR the stream position is set to a negative value so we force the failure without affecting its position instead.

@devnexen devnexen requested a review from bukka as a code owner April 1, 2025 18:00
@devnexen devnexen linked an issue Apr 1, 2025 that may be closed by this pull request
@@ -0,0 +1,13 @@
--TEST--
GH-18212 fseek with SEEK_CUR and negative offset leads to negative file stream position.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT

Suggested change
GH-18212 fseek with SEEK_CUR and negative offset leads to negative file stream position.
GH-18212: fseek with SEEK_CUR and negative offset leads to negative file stream position.

Triggers the assertion as with SEEK_CUR the stream position is set to a
negative value so we force the failure without affecting its position
instead.

close phpGH-18224
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unreachable program point: streams
2 participants