mirror of
https://github.com/opencv/opencv.git
synced 2026-11-23 17:57:56 -06:00
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.