Running coalesce inside readCollection on a huge GIF causes the native module to throw a memory access out of bounds exception
VM2835:1 Error processing GIF: RuntimeError: memory access out of bounds
at magick.dfc94ac5f18be68f99c9.wasm:0x8f67
at magick.dfc94ac5f18be68f99c9.wasm:0x2809f3
at magick.dfc94ac5f18be68f99c9.wasm:0x80938
at magick.dfc94ac5f18be68f99c9.wasm:0x151a9d
at magick.dfc94ac5f18be68f99c9.wasm:0x384918
at magick.dfc94ac5f18be68f99c9.wasm:0x8e91f3
at e._MagickImageCollection_Coalesce (magick.js:8:1)
at magick-image-collection.ts:439:1
at magick-image-collection.ts:811:1
at exception.ts:39:1
at Ge.use (int-pointer.ts:18:1)
at T.use (exception.ts:38:1)
at magick-image-collection.ts:809:1
at Me.attachImages (magick-image-collection.ts:729:1)
at Me.replaceImages (magick-image-collection.ts:809:1)
at Me.coalesce (magick-image-collection.ts:439:1)
magick-wasm version
0.0.30
Description
Running coalesce inside readCollection on a huge GIF causes the native module to throw a memory access out of bounds exception
Steps to Reproduce
Images
https://drive.google.com/file/d/1jeToienatAO07jRmZYpLMlK0MJgBFUcx/view?usp=sharing
This is a zipped file with the GIF image used.
The GIF has 201 frames as read by
ImageMagick.readCollection