Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix a crash in jxlsave #3620

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

Merged
merged 4 commits into from
Aug 24, 2023
Merged

Fix a crash in jxlsave #3620

merged 4 commits into from
Aug 24, 2023

Conversation

jcupitt
Copy link
Member

@jcupitt jcupitt commented Aug 23, 2023

Some versions of GraphicsMagick can report rgb colourspace for some mono BMPs. In turn, this can trigger a crash in jxlsave.

See #3619

@kleisauke this is against master, though since it's a crash (under some circumstances) maybe it should be cherrypicked for 8.14?

Some versions of GraphicsMagick can report rgb colourspace for some mono
BMPs. In turn, this can trigger a crash in jxlsave.

See #3619
@jcupitt
Copy link
Member Author

jcupitt commented Aug 23, 2023

Some tests fail if you run with graphicsmagick, but I don't see an easy way to fix them, unfortunately. I suppose we'd need some way for pyvips to detect if libvips was running with graphicsmagick.

jcupitt and others added 2 commits August 24, 2023 11:11
@jcupitt
Copy link
Member Author

jcupitt commented Aug 24, 2023

🤦 thanks Lovell, copy-paste error :(

@kleisauke
Copy link
Member

@kleisauke this is against master, though since it's a crash (under some circumstances) maybe it should be cherrypicked for 8.14?

I could cherry-pick this to 8.14 and make a new release if needed. However, given that we already warn users in our documentation about the security concerns when processing untrusted images via *magick, it's probably fine to leave this fix only on the master branch (assuming this crash can only occur with GraphicsMagick and v8.15.0 is released in a couple of weeks).

@kleisauke kleisauke merged commit 4e1bf32 into master Aug 24, 2023
@kleisauke
Copy link
Member

Oh, huh, somehow GitHub accidentally merged this twice (see commit 0297086 / 4e1bf32).

jcupitt added a commit that referenced this pull request Aug 24, 2023
Some versions of GraphicsMagick can report rgb colourspace for some mono
BMPs. In turn, this can trigger a crash in jxlsave.

See #3619
kleisauke pushed a commit to kleisauke/libvips that referenced this pull request Sep 17, 2023
Some versions of GraphicsMagick can report rgb colourspace for some mono
BMPs. In turn, this can trigger a crash in jxlsave.

See libvips#3619

(cherry picked from commit 0297086)
@kleisauke
Copy link
Member

Backport to 8.14 available as #3662.

kleisauke pushed a commit that referenced this pull request Sep 18, 2023
Some versions of GraphicsMagick can report rgb colourspace for some mono
BMPs. In turn, this can trigger a crash in jxlsave.

See #3619

(cherry picked from commit 0297086)
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.

3 participants