Skip to content

Fixed TGA crash for images where indices have more bits than mapped colors - #2673

Merged
Shnatsel merged 2 commits into
image-rs:mainfrom
RunDevelopment:tga-wide-index-crash
Nov 30, 2025
Merged

Shnatsel merged 2 commits into
image-rs:mainfrom
RunDevelopment:tga-wide-index-crash

Conversation

@RunDevelopment

Copy link
Copy Markdown
Member

fixes #2598

This fixes the crash by returning an error instead.

@197g 197g left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit, otherwise LGTM

Comment thread src/codecs/tga/decoder.rs Outdated
@Shnatsel
Shnatsel merged commit fa46308 into image-rs:main Nov 30, 2025
32 checks passed
@RunDevelopment
RunDevelopment deleted the tga-wide-index-crash branch November 30, 2025 14:04
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Release 0.25.* Mar 2, 2026
@197g 197g moved this from Done to In progress in Release 0.25.* Mar 4, 2026
@197g 197g moved this from In progress to In review in Release 0.25.* Mar 4, 2026
@197g 197g moved this from In review to Backported in Release 0.25.* Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backported

Development

Successfully merging this pull request may close these issues.

Panic in Tga decoder for color-mapped images

3 participants