php-src/ext/ffi/tests
Niels Dossche ec8a24f746
Fix GH-16397: Segmentation fault when comparing FFI object (#16401)
`compare` is a required handler [1], but this handler was set to NULL.
Throw an exception when trying to compare FFI objects.

[1] 35c8a010c6/Zend/zend_object_handlers.h (L231C1-L231C64)

Closes GH-16401.
2024-10-14 19:23:04 +02:00
..
001.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
002.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
003.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
004.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
005.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
006.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
007.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
008.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
009.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
010.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
011.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
012.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
013.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
014.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
015.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
016.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
017.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
018.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
019.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
020.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
021.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
022.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
023.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
024.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
025.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
026.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
027.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
028.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
029.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
030.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
031.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
032.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
033.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
034.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
035.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
036.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
037.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
038.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
039.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
040.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
041.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
042.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
043.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
044.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
045.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
046.phpt Rename FFI getFuncArg* to getFuncParameter*, $arg_index->$index (#7236) 2021-07-14 09:12:25 -04:00
047.phpt Fix order of checks to throw exception with better message 2022-08-11 09:30:47 +03:00
100.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
101.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
200.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
300-win32.h.in
300.h Convert CRLF line endings to LF 2019-05-07 04:40:01 +02:00
300.phpt Merge branch 'PHP-8.0' into PHP-8.1 2022-11-03 14:37:17 +01:00
301-win32.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
301.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
302.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
303.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
arrayPointer.phpt Avoid crash for reset/end/next/prev() on ffi classes (#9711) 2023-02-03 09:17:33 -05:00
bug77632.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
bug77632b.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
bug77706.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
bug77768.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
bug78270_1.phpt Remove zend_atoi() (#7232) 2021-07-13 09:22:31 +02:00
bug78270_2.phpt Remove zend_atoi() (#7232) 2021-07-13 09:22:31 +02:00
bug78543.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
bug78714.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
bug78761_preload.h Fix #78761: Zend memory heap corruption with preload and casting 2019-10-30 19:49:39 +01:00
bug78761_preload.php Fix #78761: Zend memory heap corruption with preload and casting 2019-10-30 19:49:39 +01:00
bug78761.phpt Merge branch 'PHP-8.0' into PHP-8.1 2022-11-03 14:37:17 +01:00
bug78762.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
bug79096.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
bug79177.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
bug79532.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
bug79571.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
bug79576.phpt Merge branch 'PHP-8.0' into PHP-8.1 2021-09-15 15:01:08 +03:00
bug79749.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
bug80186.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
bug80847.phpt Add missing zend_test requirement to ffi test for bug80847 2021-08-18 17:16:54 +02:00
bug_gh9090.phpt Fix GH-9090: Support assigning function pointers in FFI 2022-07-27 10:42:25 +02:00
callconv_x86.dll Fix #78716: Function name mangling is wrong for some parameter types 2019-10-22 11:38:58 +02:00
callconv.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
cdef_new.phpt Fix leaking definitions on FFI::cdef()->new() 2023-07-21 10:42:19 +02:00
gh7867.phpt Merge branch 'PHP-8.0' into PHP-8.1 2022-04-24 18:04:37 +02:00
gh8433.phpt Merge branch 'PHP-8.0' into PHP-8.1 2022-04-24 18:04:37 +02:00
gh9697.phpt Merge branch 'PHP-8.0' into PHP-8.1 2022-10-10 11:25:23 +03:00
gh9698.phpt Fix GH-9698: stream_wrapper_register crashes with FFI\CData provided as class 2023-12-15 14:11:56 +00:00
gh10403.phpt Fix incorrect bitshifting and masking in ffi bitfield (#10403) 2023-01-24 09:15:03 +03:00
gh10568.phpt Fix assertion failure when var_dump'ing void FFI result (#10568) 2023-02-13 22:38:28 +03:00
gh12905.phpt Run one testsuite with observers enabled in CI (#13869) 2024-04-02 18:11:02 +02:00
gh14215.h Fix GH-14215: Cannot use FFI::load on CRLF header file with apache2handler 2024-05-14 19:49:22 +02:00
gh14215.phpt Fix GH-14215: Cannot use FFI::load on CRLF header file with apache2handler 2024-05-14 19:49:22 +02:00
gh14286_1.phpt Fix GH-14286 (ffi enum type (when enum has no name) make memory leak) 2024-07-22 17:44:47 +02:00
gh14286_2.phpt Fix GH-14286 (ffi enum type (when enum has no name) make memory leak) 2024-07-22 17:44:47 +02:00
gh14626.phpt Fix is_zend_ptr() for huge blocks (#14626) 2024-06-25 15:14:00 +02:00
gh16397.phpt Fix GH-16397: Segmentation fault when comparing FFI object (#16401) 2024-10-14 19:23:04 +02:00
list.phpt Migrate skip checks to --EXTENSIONS--, p2 2021-04-01 12:08:24 +01:00
preload.inc Improve FFI test suite for Windows 2020-03-18 16:53:06 +01:00
trampoline_reset.phpt Reset EG(trampoline).op_array.last_var that FFI may modify 2023-03-27 22:59:00 +02:00
utils.inc Improve FFI test suite for Windows 2020-03-18 16:53:06 +01:00
weak_reference_001.phpt Fix segfault caused by weak references to FFI objects (#12488) 2023-10-28 14:59:06 +02:00
weak_reference_002.phpt Fix segfault caused by weak references to FFI objects (#12488) 2023-10-28 14:59:06 +02:00
weak_reference_003.phpt Fix segfault caused by weak references to FFI objects (#12488) 2023-10-28 14:59:06 +02:00
weak_reference_004.phpt Fix segfault caused by weak references to FFI objects (#12488) 2023-10-28 14:59:06 +02:00