Subbu created OPENNLP-1826:
------------------------------

             Summary: Prevent OOM during Array Allocation
                 Key: OPENNLP-1826
                 URL: https://issues.apache.org/jira/browse/OPENNLP-1826
             Project: OpenNLP
          Issue Type: Bug
            Reporter: Subbu


{{HeadRules}} (English) and {{AncoraSpanishHeadRules}} (Spanish) parsed the
tag count field from head rules files with {{Integer.parseInt()}} and used
the result directly as an array size with no bounds check. A crafted model
file with a count of {{Integer.MAX_VALUE}} would trigger an immediate
{{OutOfMemoryError}} during parser model loading.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to