Skip to content

Reject PNG images when the decoder is unavailable - #24

Draft
leeebo with Copilot wants to merge 3 commits into
masterfrom
copilot/fix-png-decoder-encoder-issue
Draft

leeebo with Copilot wants to merge 3 commits into
masterfrom
copilot/fix-png-decoder-encoder-issue

Conversation

Copilot AI commented Nov 6, 2026 •

Copy link
Copy Markdown

PNG files load successfully but fail later when decoded, potentially interrupting a running application. PNG encoding is also unavailable despite being documented as supported.

  • Fail fast: Reject PNG files at load when the decoder is disabled.
  • Protect files: Avoid truncating existing files when PNG encoding is unavailable.
  • Cleanup: Release framebuffer allocations when image loading or saving raises an exception.
  • Documentation: Clarify PNG availability in the bilingual guides and API stubs.

Copilot AI and others added 2 commits November 6, 2026 08:12
Co-authored-by: leeebo <16922815+leeebo@users.noreply.github.com>
Co-authored-by: leeebo <16922815+leeebo@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix PNG decoder/encoder failure during image operations Reject PNG images when the decoder is unavailable Nov 6, 2026
Copilot AI requested a review from leeebo November 6, 2026 08:15
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.

[Firmware] image: PNG accepted at load but decode/save fail ("PNG decoder/encoder is not enabled")

2 participants