Skip to content
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

[stable fix] Catch broken files before the autorotate call #74

Closed
wants to merge 1 commit into from

Conversation

blefaudeux
Copy link
Contributor

@blefaudeux blefaudeux commented Jan 23, 2025

turns out that img.AutoRotate() from govips (calling vips) can hard crash on ill formated files, if the number of channels is not specified properly (it will read/rotate/write the buffer, kind of makes sense).
Now sanitizing the image before calling it, seems to have fixed stability issues

  • splitting the go cmd in two so that we have a pure go test for filesystem and db
  • reproducing the python crash
  • better sanitation in the image processing

@blefaudeux blefaudeux force-pushed the ben/img_close branch 2 times, most recently from d37aad2 to 099d2ee Compare January 23, 2025 17:16
@blefaudeux blefaudeux marked this pull request as draft January 23, 2025 17:24
@blefaudeux blefaudeux force-pushed the ben/img_close branch 6 times, most recently from 11b6342 to d9a07f9 Compare January 23, 2025 23:17
- now reproed the issue, looks like it's around the autorotate part
- fixing this hopefully
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant