Skip to content

Fix is_zend_ptr() for huge blocks #14626

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

Merged
merged 4 commits into from
Jun 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Skip test on Windows
  • Loading branch information
arnaud-lb committed Jun 25, 2024
commit 5f672d4166020c943abaad83c927e37b2a7a6d71
4 changes: 4 additions & 0 deletions ext/ffi/tests/gh14626.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
GH-14626: FFI::free() may crash in is_zend_ptr() when at least one huge block exists and the ptr is non-zend
--EXTENSIONS--
ffi
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) == 'WIN') die("skip no malloc() on windows");
?>
--INI--
ffi.enable=1
--FILE--
Expand Down
Loading