Skip to content

Recursive array segfaults soap encoding #16318

Closed

Description

@YuanchengJiang

Description

The following code:

<?php
$tmp = &$utf8_string;
$utf8_string[] = $tmp;
$fusion = $utf8_string;
$client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=>1,"exceptions"=>0));
$client->__soapCall("echoStructArray", array(array($struct1,$fusion)), array("soapaction"=>"http://soapinterop.org/","uri"=>"http://soapinterop.org/"));

PHP Version

PHP 8.4.0-dev

Operating System

ubuntu 22.04

Activity

  1. ndossche commented on Oct 9, 2024

    @ndossche
    Member

    It's missing the typical array/object recursion protection; and even when fixing that it probably can fail with e.g. very deeply nested objects.

  2. changed the title [-]Segmentation fault in ext/soap/php_encoding.c:382[/-] [+]Recursive array segfaults soap encoding[/+] on Oct 10, 2024
  3. added a commit that references this issue on Oct 10, 2024
    89fd4ca
  4. added 2 commits that reference this issue on Oct 12, 2024
    6ff4a2d
    f108c16
  5. added a commit that references this issue on Oct 12, 2024
    e150b0b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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