Closed jakenuts closed 3 years ago
Thank you so much for reporting this! I had a few bugs in the error handling for jpeg decoding which slipped past the integration tests. I'd been testing jpegs with warnings but not with errors.
The access violation was actually a null reference exception, so there's no security risk.
Can you give NativeRuntime v1.5.8-rc62 a try once it lands and see if it resolves your issue?
Will do! 8)
You're the best, getting the "unsupported marker" exception in the latest build which will let us gracefully recover and also know there's a problem with the file which is great. Thanks so much!
No problem, thank you for the report!
Every once in a while, one of these partial/corrupt jpegs sneak into our system (todo: don't let them) and cause AccessViolationExceptions during processing bringing down the windows service doing the work. We can definitely fallback to InSubprocessAsync but I thought I'd check if this was avoidable.
Versions: ImageFlow.Net 0.7.23 Imageflow.NativeRuntime.win-x86_64 1.5.7(rc61)
Corrupt.jpg file: https://user-images.githubusercontent.com/344606/112767745-4f833a80-8fcd-11eb-921a-c824a077e1d6.jpg
Here's the stacktrace and a demo: