Skip to content

Removing 'bogus' memory exhaustions cheks in php_chunk_split() #4614

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

Closed
wants to merge 3 commits into from

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Aug 24, 2019

Similar to #4613

Not sure if the tests should use explicit line numbers.

@Girgias Girgias force-pushed the bogus-check-php-chunk-split branch from a429d4e to ff8d2af Compare August 25, 2019 18:21
@nikic
Copy link
Member

nikic commented Aug 25, 2019

Looks like the 32-bit tests will need some adjustments.

@Girgias Girgias force-pushed the bogus-check-php-chunk-split branch from ff8d2af to 0c6ea7a Compare August 25, 2019 21:10
@Girgias Girgias force-pushed the bogus-check-php-chunk-split branch from 0c6ea7a to 09d64dd Compare August 26, 2019 09:48
Copy link
Member

@nikic nikic left a comment

Choose a reason for hiding this comment

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

Personally I would only add the ext/standard/tests/strings/chunk_split_variation1_32bit.phpt and ext/standard/tests/strings/chunk_split_variation2_32bit.phpt tests -- the other ones don't really show any "special" interesting behavior. On 64-bit those sizes are very far removed from overflow cases.

@Girgias
Copy link
Member Author

Girgias commented Aug 26, 2019

Merged in as 5b09e60

@Girgias Girgias closed this Aug 26, 2019
@Girgias Girgias deleted the bogus-check-php-chunk-split branch August 26, 2019 15:18
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.

3 participants