libcamera: yaml: Increase the YAML parser limit
Increase the maximum list size to 2000 elements. This allows, for example, larger lens shading config structures to be parsed correctly without throwing any errors. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
baab00721c
commit
5322b7ba61
1 changed files with 1 additions and 1 deletions
|
@ -676,7 +676,7 @@ int YamlParserContext::parseDictionaryOrList(YamlObject::Type type,
|
|||
* Add a safety counter to make sure we don't loop indefinitely in case
|
||||
* the YAML file is malformed.
|
||||
*/
|
||||
for (unsigned int sentinel = 1000; sentinel; sentinel--) {
|
||||
for (unsigned int sentinel = 2000; sentinel; sentinel--) {
|
||||
auto evt = nextEvent();
|
||||
if (!evt)
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue