Skip to content

[Yaml] PHP notice on invalid input #35344

Closed
@ntzm

Description

@ntzm

Symfony version(s) affected: 5.0.2

Description

When trying to parse an invalid YAML string of "!", a PHP notice is emitted

How to reproduce

\Symfony\Component\Yaml\Yaml::parse('!');

Additional context

PHP Notice:  Uninitialized string offset: 1 in /home/nat/Code/personal/fuzzer-test/yaml/vendor/symfony/yaml/Inline.php on line 79

Notice: Uninitialized string offset: 1 in /home/nat/Code/personal/fuzzer-test/yaml/vendor/symfony/yaml/Inline.php on line 79
PHP Notice:  Uninitialized string offset: 1 in /home/nat/Code/personal/fuzzer-test/yaml/vendor/symfony/yaml/Inline.php on line 272

Notice: Uninitialized string offset: 1 in /home/nat/Code/personal/fuzzer-test/yaml/vendor/symfony/yaml/Inline.php on line 272

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