Skip to content

Fix GH-17463: SplTempFileObject::ftruncate() segfault on negative len… - #17465

Closed
devnexen wants to merge 1 commit into
php:PHP-8.3from
devnexen:gh17463
Closed

devnexen wants to merge 1 commit into
php:PHP-8.3from
devnexen:gh17463

Conversation

@devnexen

Copy link
Copy Markdown
Member

…gth.

@devnexen
devnexen requested a review from Girgias as a code owner January 13, 2025 18:10
@devnexen devnexen linked an issue Jan 13, 2025 that may be closed by this pull request
Comment thread ext/spl/spl_directory.c Outdated
Comment on lines 2709 to 2714

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this should be after CHECK_SPL_FILE_OBJECT_IS_INITIALIZED() to be consistent with other methods (e.g. the seek one just below)

@devnexen
devnexen requested a review from bukka as a code owner January 14, 2025 12:20
Comment thread main/php_version.h Outdated
Comment on lines 4 to 8

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Revert this ;)

Comment thread ext/spl/tests/gh17463.phpt Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Test name is wrong

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes :) will fix the description no worries

@devnexen

Copy link
Copy Markdown
Member Author

Merged with e4473ab

@devnexen devnexen closed this Jan 14, 2025
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.

SEGV SplTempFileObject ftruncate negative

4 participants