Skip to content

Enforce limits before intermediate raster allocations - #20

Merged
smnandre merged 2 commits into
altophp:mainfrom
smnandre:security/intermediate-raster-limits
Sep 27, 2026
Merged

smnandre merged 2 commits into
altophp:mainfrom
smnandre:security/intermediate-raster-limits

Conversation

@smnandre

Copy link
Copy Markdown
Contributor

A large resize, extension, or rotation followed by a small crop could pass final-output checks while allocating an oversized intermediate raster.

Apply strict output limits before each built-in operation in both drivers, using the actual current dimensions so the same protection works after dynamic trimming. Explicit non-strict policies and trusted escape callbacks retain their documented behavior.

@smnandre
smnandre force-pushed the security/intermediate-raster-limits branch from c5f6d1e to 9639538 Compare September 27, 2026 13:21
@smnandre
smnandre merged commit ce17866 into altophp:main Sep 27, 2026
9 checks passed
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

Successfully merging this pull request may close these issues.

1 participant