request-image-size icon indicating copy to clipboard operation
request-image-size copied to clipboard

fix: don't abort if the buffer exceeds the limits (introduced in #13)

Open pablopunk opened this issue 3 years ago • 0 comments

From #13:

This commit is breaking the ability to detect the size for -at least- some JPG images. When I experience this problem, I see that the first data block retrieved is something like 16K, but image-size module is trying to read ahead of that block, throwing 'Corrupt JPG, exceeded buffer limits' error. For such an error, it is required to fetch the upcoming blocks of the image too.

This should prevent calling abort() in that case and continue reading

pablopunk avatar Apr 06 '22 15:04 pablopunk