Skip to content

Never set the PFM header to little endian #4242

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
Nov 3, 2024
Merged

Never set the PFM header to little endian #4242

merged 4 commits into from
Nov 3, 2024

Conversation

agoode
Copy link
Contributor

@agoode agoode commented Nov 3, 2024

PFM files are always written in big endian:
https://github.com/libvips/libvips/blob/master/libvips/foreign/ppmsave.c#L459

But the header is set to little endian if on a big endian machine (!) https://github.com/libvips/libvips/blob/master/libvips/foreign/ppmsave.c#L414-L415

Fixes #4241.

jcupitt and others added 4 commits October 30, 2024 16:38
and a little more logging for jxlload
* Add Magic Kernel support

* Fix range for MKS2013

* Improve readability for MKS2013 filter

* Add Magic Kernel test

* Update ChangeLog
@jcupitt jcupitt changed the base branch from master to 8.16 November 3, 2024 12:06
@jcupitt
Copy link
Member

jcupitt commented Nov 3, 2024

!!!! Well, that was pretty dumb. Thank you very much for finding this @agoode.

Let's put this in 8.16 (stable branch), it seems like a straightforward change.

@jcupitt jcupitt merged commit 2aca66d into libvips:8.16 Nov 3, 2024
6 checks passed
jcupitt added a commit that referenced this pull request Nov 3, 2024
@jcupitt
Copy link
Member

jcupitt commented Nov 3, 2024

Ooop, more dumbness, I messed that up.

Fixed with f06db0f I hope.

@kleisauke
Copy link
Member

Retargeting PRs to stable branches can be somewhat cumbersome. :(

Hopefully PR #4162 makes the process of backporting commits to these branches a bit smoother.

@agoode agoode deleted the end branch November 3, 2024 17:25
@agoode
Copy link
Contributor Author

agoode commented Nov 3, 2024

Will this get merged back to master eventually?

@jcupitt
Copy link
Member

jcupitt commented Nov 3, 2024

Yes, we always merge stable branches to master, I just hadn't got around to it. I'll do it now.

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.

pfm formats test fails on s390x
4 participants