Files
opencv-MIRROR/modules/core
Pu Cheng 29a31a187d core: report an error for a '-' line after the first YAML document
After the first document, YAMLParser::parse() expects the next one to
start with '---'. A line that starts with an alphanumeric character is
rejected with "The YAML streams must start with '---', except the first
one", but a line that starts with '-' and is not '---' is neither
consumed nor rejected, so the loop that looks for the next document
never advances and FileStorage::open() does not return.

Report the same parse error for such a line.
2026-11-22 03:39:22 +08:00
..