ArrayIndexOutOfBoundsException when Parsing SVG

Hi.

Aspose.Words seems to have trouble parsing this SVG file:

<svg xmlns="http://www.w3.org/2000/svg" width="100px" height="100px" viewBox="0 0 1 1">
    <path d="M0 .5a.25.25 0 0 0 .5-.5Z"/>
</svg>

Stacktrace:

java.lang.ArrayIndexOutOfBoundsException: 6
    at com.aspose.words.zzYWE.zzT(Unknown Source)
    at com.aspose.words.zzYWE.zzZ(Unknown Source)
    at com.aspose.words.zzYWA.zzZgY(Unknown Source)
    at com.aspose.words.zzYWA.zzW(Unknown Source)
    at com.aspose.words.zzYWI.zzY(Unknown Source)
    at com.aspose.words.zzYWI.zzX(Unknown Source)
    at com.aspose.words.zzYWI.zzZ(Unknown Source)
    at com.aspose.words.zzYWC.zzZh3(Unknown Source)
    at com.aspose.words.zzZP6.zzY(Unknown Source)
    at com.aspose.words.zzZOQ.setImageBytes(Unknown Source)
    at com.aspose.words.ImageData.setImageBytes(Unknown Source)
    at com.aspose.words.DocumentBuilder.insertImage(Unknown Source)
    at com.aspose.words.DocumentBuilder.zzZ(Unknown Source)
    at com.aspose.words.DocumentBuilder.zzZ(Unknown Source)
    at com.aspose.words.DocumentBuilder.zz9(Unknown Source)
    at com.aspose.words.DocumentBuilder.insertImage(Unknown Source)
    at ...

If I add the superfluous separators in the path specification (“M 0 0.5 a 0.25 0.25 0 0 0 0.5 -0.5 Z”), the crash does not occur.

We use version 17.7 of the Java library.

Best regards,
Maximilian

@mhilbert,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-15751. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

@mhilbert,

The issues you have found earlier (filed as WORDSNET-15751) have been fixed in this Aspose.Words for .NET 17.10 update and this Aspose.Words for Java 17.10 update.