Skip to content

Commit 4c79915

Browse files
committed
Fix use-after-free with nested FFI::addr() in VarDumper test
1 parent e6d6bed commit 4c79915

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Symfony/Component/VarDumper/Tests/Caster/FFICasterTest.php

-6
Original file line numberDiff line numberDiff line change
@@ -392,12 +392,6 @@ public function testCastPointerToStruct()
392392
}
393393
OUTPUT, \FFI::addr($struct));
394394

395-
$this->assertDumpEquals(<<<'OUTPUT'
396-
FFI\CData<struct <anonymous>**> size 8 align 8 {
397-
cdata: null
398-
}
399-
OUTPUT, \FFI::addr(\FFI::addr($struct)));
400-
401395
// Save the pointer as variable so that
402396
// it is not cleaned up by the GC
403397
$pointer = \FFI::addr($struct);

0 commit comments

Comments
 (0)