spdx / spdx-java-jackson-store

JSON storage implementation for the SPDX tools
Apache License 2.0
3 stars 7 forks source link

YAML files restricted to nearly 3MB #60

Open chbaeumer opened 1 year ago

chbaeumer commented 1 year ago

SnakeYaml introduced in version 1.32 a new property codePointLimit which is set to 3MB as default. Now it is not possible to read spdx.yaml files which are larger than that limit.

The yamlFactory in the class MultiFormatStore has to be initialized with a bigger value. The best would be do make this configurable from outside or during the initialization of the store.

goneall commented 1 year ago

@chbaeumer Thanks for the info - we should definitely increate the default.

We could make it configurable using a property with a default value.

A pull request would be welcome - it may be a couple weeks before I free up enough time to work on it myself.