I try to parse some XML files, and check if an XML file is indeed a VectorDrawable one:
try {
val doc = CompressedXmlParser().parseDOM(ByteArrayInputStream(data))
Log.d("AppLog", "got docs")
} catch (e: Exception) {
e.printStackTrace()
Log.d("AppLog", "")
}
For some reason, when I try it, I get java.lang.NegativeArraySizeException: -126 .
How come?
Attached the file.
ic_launcher_foreground.zip
Also attached POC project that I used for this:
apkInfoUsingSaf.zip
I try to parse some XML files, and check if an XML file is indeed a VectorDrawable one:
For some reason, when I try it, I get
java.lang.NegativeArraySizeException: -126.How come?
Attached the file.
ic_launcher_foreground.zip
Also attached POC project that I used for this:
apkInfoUsingSaf.zip