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
When trying to retrieve size of an image,
size,_ := bimg.NewImage(img).Size()
In github.com/h2non/bimg/metadata.go,
Metadata function tries to extract Software tag from image. Wherein an image had Software value starting with '('. This is not being handled at github.com/h2non/bimg/vips.go -> vipsExifStringTag -> vipsExifShort,
Leads to panic with slice out of bound stack trace.
Infact, this vipsExifShort is being used to extract lot of Exif data in Metadata function.
Kindly handle images with such metadata. In case there is a hard restriction, please serve an error to handle gracefully.
The text was updated successfully, but these errors were encountered:
size,_ := bimg.NewImage(img).Size()
Metadata function tries to extract Software tag from image. Wherein an image had Software value starting with '('. This is not being handled at github.com/h2non/bimg/vips.go -> vipsExifStringTag -> vipsExifShort,
Leads to panic with slice out of bound stack trace.
Kindly handle images with such metadata. In case there is a hard restriction, please serve an error to handle gracefully.
The text was updated successfully, but these errors were encountered: