Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
ManifoldCF 2.13
-
None
Description
The following method can throw AIOOBE:
protected void applyMultiAttributeValues(final RepositoryDocument rd, final Map<String, Set<String>> values) throws ManifoldCFException { if (values == null) { return; } for (final String attributeName : values.keySet()) { final Set<String> attributes = values.get(attributeName); final String[] attributeValues = new String[values.size()]; int i = 0; for (final String attributeValue : attributes) { attributeValues[i++] = attributeValue; } rd.addField(attributeName, attributeValues); } }