You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, the decode step would cause ArrayIndexOutOfBoundsException sometime
privateconstvalMAX_STACK_SIZE=4096privateval prefix =ShortArray(MAX_STACK_SIZE)
fundecode(imageData:ByteArray, destination:ByteArray, pixelCount:Int) {
val lzwMinimumCodeSize = imageData[dataIndex]
val clear:Int=1.shl(lzwMinimumCodeSize.toInt())
for (code in0 until clear) {
prefix[code] =0
suffix[code] = code.toByte()
}
once lzwMinimumCodeSize's value greater than 12, I can't make sure that gif file is corrupted or not due to it happened from my user's devices, but it is infrequent, the last report was two months ago, about 20 times totally, probably the files was broken.
just to ask if you have any idea.
The text was updated successfully, but these errors were encountered:
Seems about right! I believe the gif to be corrupted: lzw minimum code size can't be > 12, according to lzw specs.
So, if for some reason, it is, then a failure would be expected.
Hi, the decode step would cause ArrayIndexOutOfBoundsException sometime
once lzwMinimumCodeSize's value greater than 12, I can't make sure that gif file is corrupted or not due to it happened from my user's devices, but it is infrequent, the last report was two months ago, about 20 times totally, probably the files was broken.
just to ask if you have any idea.
The text was updated successfully, but these errors were encountered: