Skip to content

BAD_COPY_PASTE in ext/standard/array.c #13309

Closed
@AlexRudyuk

Description

@AlexRudyuk

Description

ext/standard/array.c

l2 = buf2 + sizeof(buf2) - 1 - s1;

in line 191:
instead of the variable s1, there must be a variable s2, otherwise there is no point in an additional branch of the is() construction.

Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
Author A. Slepykh ([email protected]).

PHP Version

PHP 8.2.3

Operating System

ALT Linux

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