Tests: image filter with too large PNG dimensions - #84
Open
VadimZhestikov wants to merge 1 commit into
Open
VadimZhestikov wants to merge 1 commit into
VadimZhestikov wants to merge 1 commit into
Conversation
VadimZhestikov
force-pushed
the
image-filter-max-pixels
branch
from
July 17, 2026 21:08
01250a3 to
c553198
Compare
VadimZhestikov
marked this pull request as draft
July 21, 2026 18:01
VadimZhestikov
force-pushed
the
image-filter-max-pixels
branch
from
September 14, 2026 19:19
c553198 to
13d2494
Compare
VadimZhestikov
marked this pull request as ready for review
September 14, 2026 22:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Regression test for nginx/nginx#1575: PNG images with a dimension that does not fit into 16 bits are rejected with 415, instead of being understated by reading only the low 16 bits of the IHDR fields.
Covers
resize,rotate(which decodes on the unfixed code) andsize, for both width and height, plus a 65535 boundary control that must still be processed. The rejection cases are marked TODO for versions before 1.31.6.This replaces the earlier
image_filter_max_pixelsdirective test; the directive was dropped in review.Verified: all 7 pass on the fix; on the unfixed code the five above-16-bit cases fail (as TODO) and both 65535 controls pass.