-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Labels
BugGood first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)Status: Needs ReviewYaml
Description
Symfony version(s) affected
6.4.3
Description
We noticed that the YAML parser triggers a deprecation with some malformed strings:
DEPRECATED substr(): Passing null to parameter #2 ($offset) of type int is deprecated in /var/www/vendor/symfony/yaml/Parser.php on line 641.
How to reproduce
$yaml = new \Symfony\Component\Yaml\Parser();
$yaml->parse(',:
-
');
Possible Solution
No response
Additional Context
We noticed this while testing our YAML parsing logic with php-fuzzer.
GromNaN
Metadata
Metadata
Assignees
Labels
BugGood first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)Status: Needs ReviewYaml