-
-
Notifications
You must be signed in to change notification settings - Fork 665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad EXIF freezes image scanning #1382
Comments
This is probably fixed by mindeng/nom-exif#17 |
I have the other exif error :
|
I reported it as mindeng/nom-exif#21 |
I don't know Rust. But I want to ask if that any way to catch the panic and handle it? |
With panic="unwind" - yes(this is what this project uses by default), czkawka/czkawka_core/src/broken_files.rs Lines 187 to 203 in 1c99adb
The biggest problem is with freezing, and this must be fixed in |
common_image.rs : something like :
|
The panic is thrown from parser.parse(ms). Need to catch it and handle. For my case it didn't return the rotation as it have panic. So it need to return OK(none) if it fail. |
Bug Description
Latest committ stops scanning image at possibly bad image exif
8.0.0 works fine
the same image scans ok once exif is stripped.
Steps to reproduce:
please use possibly_bad_exif.zip image to reproduce.
Terminal output (optional):
System
The text was updated successfully, but these errors were encountered: