flenniken / metar

Metadata reader for image files.
MIT License
10 stars 1 forks source link

Fix an infinite loop. #2

Closed akavel closed 3 years ago

akavel commented 3 years ago

I got a jpeg where one section's length was exactly 65534, which overflowed uint16 after +2, resulting in an infinite loop. Fixing the calculation resolved the issue with the jpeg.

flenniken commented 3 years ago

Thanks for fixing this.

akavel commented 3 years ago

You're more than welcome - and huge thanks to you for writing metar! 😊