Closed
Description
Symfony version(s) affected
7.0.6
Description
Fuzzing reveals that CsvEncoder throws a fatal error with some values:
PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/pierre/www/fuzzer/vendor/symfony/serializer/Encoder/CsvEncoder.php:179
How to reproduce
Here is the smallest value I was able to reproduce with:
<?php
require __DIR__.'/vendor/autoload.php';
$encoder = new \Symfony\Component\Serializer\Encoder\CsvEncoder();
var_dump($encoder->decode(',.
,', 'csv'));
Possible Solution
No response
Additional Context
I am using php-fuzzer to test various input.