Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
When parsing an SVG file inside a JAR, ParsedURLDefaultProtocolHandler gets called for url references.
Its first statement is this:
String start = urlStr.substring(0, JAR.length()+1).toLowerCase();
if the urlStr is very short (e.g. "#s"), this triggers an AIOOBE.
To reproduce, create a gradient that has a single-character id and use it elsewhere:
<linearGradient id="v" ...> ... </linearGradient> ... <circle ... fill="url(#v)" ... />