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

Bug 707210: fitz: fix assertion on mutool on s390x #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mtasaka
Copy link
Contributor

@mtasaka mtasaka commented Sep 28, 2023

template_span_with_mask_3_general attemps to accelerate template_span_with_mask_N_general
by accessing byte sequence dp and sp 4 bytes each, reinterpreting them as uint32_t sequence then calculating the result sequence 4 bytes each. The value of each 4 byte interpreted as uint32_t differs according to endianness, so fixing assertion expression as such.

Fixes https://bugs.ghostscript.com/show_bug.cgi?id=707210 : mutool draw -F png assertion on s390x.

template_span_with_mask_3_general attemps to accelerate
template_span_with_mask_N_general
by accessing byte sequence dp and sp 4 bytes each,
reinterpreting them as uint32_t sequence then calculating the result
sequence 4 bytes each. The value of each 4 byte interpreted as
uint32_t differs according to endianness,  so fixing
assertion expression as such.

Fixes https://bugs.ghostscript.com/show_bug.cgi?id=707210 :
`mutool draw -F png` assertion on s390x.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant