-
-
Notifications
You must be signed in to change notification settings - Fork 711
validate poppler page size #4620
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
base: 8.17
Are you sure you want to change the base?
Conversation
Poppler can return pages less than 1 pixel wide or high. Check for this and flag an error. Thanks Yang Luo, Riema Labs
We don't always validate all metadata returned by load libraries (we mostly assume they do this). Perhaps we should add more protection against this type of error? For example, we could add: if (!vips_object_sanity(VIPS_OBJECT(image)))
return -1; Near the start of major functions such as
|
I added some extra sanity checks as a backstop. They wouldn't have stopped this error, but they should catch other missed validations. Is this too large a change for stable? We could delay until 8.18. |
Should the target branch be updated to |
Oh drat, I always forget to set the target, sorry. |
I'm unsure about adding these new |
Oh, you're right, It'd be a simple change to make sanity log an error, or perhaps that should wait until 8.18? |
Poppler can return pages less than 1 pixel wide or high. Check for this and flag an error.
Thanks Yang Luo