LoaderOptions.setCodePointLimit() not honored by loadAll()

Issue #553 resolved
Robert Patrick created an issue

When parsing a large file and using LoaderOptions.setCodePointLimit() to accommodate the file size, everything works perfectly if you call the load() method. If you call loadAll() and iterate through the results, you get an error saying that the document size exceeded the 3MB default limit. Since we use loadAll() for everything, this new size limit breaks SnakeYaml for us and we have had to revert to 1.31 until this bug is addressed.

I wrote a simple little test project (see attached). Simply run tar zxf snake.tar.gz, cd snake, and run mvn test to see that the load() method works fine but loadAll() and iterating through the results fails.