Skip to content

Heap buffer overflow in ZEND_ADD_ARRAY_UNPACK_SPEC_HANDLER #11016

Closed
@Changochen

Description

@Changochen

Description

The following code:

<?php
ob_flush ( ) ;
echo [ 6.5 => 0.5 , ... [ [ 1 ] , [ 1 ] , 1 ]] ;

Using the asan build and USE_TRACKED_ALLOC=1 USE_ZEND_ALLOC=0 php-src/asan/sapi/cli/php -f poc1.php
Resulted in this output:

heap-buffer-overflow write

But I expected this output instead:

Array

PHP Version

PHP 8.3.0-dev

Operating System

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions