You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Subbu (Jira)" <ji...@apache.org> on 2026/05/05 14:24:00 UTC
[jira] [Created] (OPENNLP-1826) Prevent OOM during Array Allocation
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)