Skip to content

Harden external image buffer size calculations with safe arithmetic#205

Merged
eustas merged 4 commits into
google:mainfrom
uwezkhan:overflow-check
May 12, 2026
Merged

Harden external image buffer size calculations with safe arithmetic#205
eustas merged 4 commits into
google:mainfrom
uwezkhan:overflow-check

Conversation

@uwezkhan
Copy link
Copy Markdown
Contributor

This PR ports the fix originally proposed in
libjxl/libjxl#4644
to jpegli, as suggested by maintainers.

It addresses a potential integer overflow in buffer growth logic.

Related: libjxl/libjxl#4644

@eustas
Copy link
Copy Markdown
Collaborator

eustas commented May 11, 2026

Please rebase

@eustas
Copy link
Copy Markdown
Collaborator

eustas commented May 12, 2026

Please rebase again. Sorry.

@eustas eustas merged commit 7cdf212 into google:main May 12, 2026
69 of 77 checks passed
@uwezkhan uwezkhan deleted the overflow-check branch May 12, 2026 20:31
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.

2 participants