Jumping into the thread without proper References: headers, since I was not
subscribed before.
Simon Thelen <foss-ml@...>:
> Hello,
>
> When opening a gif file using giflib the RunningBits member of
> GifFilePrivateType is never initialized before access in
> DGifSetupDecompress (called from DGifGetImageDesc) causing the function
> to occasionally set GifFile->Error = D_GIF_ERR_READ_FAILED and return
> GIF_ERROR even though no actual error occurred.
I was bitten by this in the image viewer that I use, sxiv:
https://github.com/muennich/sxiv
Since giflib 5.1.2, sxiv fails (variously "Corrupted gif image" and "Error
opening image") when trying to view the _second_ gif, when given a list of
images to view. giflib 5.1.1 does not have this problem.
I can verify that the problem is solved with a giflib compiled from the repo
at exactly ef0cb9b4be572262b49fbc26fb2348683f44a517 "Explicitly zero private
storage.", which should be where the fix was pushed.
Thanks for the fix Simon and Eric. I wish for a new release in the near
future.
//Daniel
|