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

src/__init__.py tests/: avoid segv from fz_samples_get() with empty p… #3979

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

julian-smith-artifex-com
Copy link
Collaborator

…ixmap.

Pixmap.color_count(): don't raise exception if JM_color_count() returns empty dict.

_read_samples(): return empty list if pixmap has no samples - avoids segv from fz_samples_get().

Addresses #3848.

…ixmap.

Pixmap.color_count(): don't raise exception if JM_color_count() returns empty
dict.

_read_samples(): return empty list if pixmap has no samples - avoids segv from
fz_samples_get().

Addresses #3848.
…n of field_label.

Also recurse to parent if node's string value is empty string. This appears to
be what Adobe does.

Addresses #3950.
@julian-smith-artifex-com
Copy link
Collaborator Author

julian-smith-artifex-com commented Oct 22, 2024

[I've added a commit that addresses #3950.]

@julian-smith-artifex-com julian-smith-artifex-com merged commit 69f3cc7 into main Oct 22, 2024
2 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants