Skip to content

reject >256-color external colormap in CreateInverseColorMap#237

Open
rootvector2 wants to merge 1 commit into
google:mainfrom
rootvector2:inverse-colormap-cap
Open

reject >256-color external colormap in CreateInverseColorMap#237
rootvector2 wants to merge 1 commit into
google:mainfrom
rootvector2:inverse-colormap-cap

Conversation

@rootvector2
Copy link
Copy Markdown
Contributor

FindCandidatesForCell indexes a fixed int mindist[256] by actual_number_of_colors, so an external colormap with more than 256 entries overflows the stack when CreateInverseColorMap runs.

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