Skip to content

Enforce actual Imagick sequence frame limits - #21

Merged
smnandre merged 3 commits into
altophp:mainfrom
smnandre:security/animation-frame-limit
Sep 27, 2026
Merged

smnandre merged 3 commits into
altophp:mainfrom
smnandre:security/animation-frame-limit

Conversation

@smnandre

Copy link
Copy Markdown
Contributor

The header's approximate frame count allowed longer sequences to bypass maxFrames before Imagick decoded and coalesced them.

Probe the complete sequence before pixel decoding, enforce the actual count again before coalescing, and apply a scoped native list-length limit where supported. Restore the previous native limit after both successful and failed requests, while preserving existing corrupt-input and missing-coder errors.

@smnandre
smnandre force-pushed the security/animation-frame-limit branch from e0e4410 to a11e257 Compare September 27, 2026 13:26
@smnandre
smnandre merged commit e0236ee 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