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

Specifying the --disable-limits flag triggers the "color" secure limits #1449

Open
bigcat88 opened this issue Jan 25, 2025 · 1 comment
Open

Comments

@bigcat88
Copy link
Contributor

I encountered this when I wanted to add support for the "disable security limits" flag for Python bindings as a temporary workaround for some situations.

Test file for this can be taken from here: bigcat88/pillow_heif#328

Steps to reproduce:

  1. heif-dec 200MP.heic is OK

  2. heif-dec 200MP.heic --disable-limits results in:
    Could not read HEIF/AVIF file: Invalid input: Security limit exceeded: Color profile exceeds maximum supported size

@bigcat88 bigcat88 changed the title Specifying the --disable-limits flag triggers the color the "color" secure limits Specifying the --disable-limits flag triggers the "color" secure limits Jan 25, 2025
@silverbacknet
Copy link

#1451 should fix that one. I scanned through the code and didn't find any other missing checks.

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

No branches or pull requests

2 participants