-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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-17463: SplTempFileObject::ftruncate() segfault on negative len… #17465
Conversation
ext/spl/spl_directory.c
Outdated
if (size < 0) { | ||
zend_argument_value_error(1, "must be greater or equal to 0"); | ||
RETURN_THROWS(); | ||
} | ||
|
||
CHECK_SPL_FILE_OBJECT_IS_INITIALIZED(intern); |
There was a problem hiding this comment.
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)
main/php_version.h
Outdated
#define PHP_MINOR_VERSION 3 | ||
#define PHP_RELEASE_VERSION 17 | ||
#define PHP_MINOR_VERSION 5 | ||
#define PHP_RELEASE_VERSION 0 | ||
#define PHP_EXTRA_VERSION "-dev" | ||
#define PHP_VERSION "8.3.17-dev" | ||
#define PHP_VERSION_ID 80317 | ||
#define PHP_VERSION "8.5.0-dev" | ||
#define PHP_VERSION_ID 80500 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert this ;)
ext/spl/tests/gh17463.phpt
Outdated
@@ -0,0 +1,16 @@ | |||
--TEST-- | |||
GH-15918 (Assertion failure in ext/spl/spl_fixedarray.c) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test name is wrong
There was a problem hiding this comment.
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
Merged with e4473ab |
…gth.