Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid chunk ASE_FILE_CHUNK_FLI_COLOR2 #4322

Closed
redbug26 opened this issue Feb 20, 2024 · 1 comment
Closed

Invalid chunk ASE_FILE_CHUNK_FLI_COLOR2 #4322

redbug26 opened this issue Feb 20, 2024 · 1 comment
Assignees
Labels
bug persistence Issues about loading or saving files / persisting information on disk time-1
Milestone

Comments

@redbug26
Copy link

Chunk ASE_FILE_CHUNK_FLI_COLOR2 is invalid when palette > 256

fputc(pal->size() == 256 ? 0: pal->size(), f); // number of colors

@dacap dacap added the triage label Feb 20, 2024
@dacap dacap self-assigned this Feb 20, 2024
@dacap dacap added bug persistence Issues about loading or saving files / persisting information on disk time-1 and removed triage labels Feb 21, 2024
@dacap dacap added this to the v1.3.5 milestone Feb 21, 2024
@dacap
Copy link
Member

dacap commented Feb 21, 2024

Thanks for reporting this bug @redbug26, I think the best thing to do in this case is not to write the color2 chunk at all (as it's only there for backward compatibility with older versions of Aseprite and we generally use the palette chunk that does't have this issue).

@dacap dacap closed this as completed in 10dda30 Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug persistence Issues about loading or saving files / persisting information on disk time-1
Projects
Archived in project
Development

No branches or pull requests

2 participants