mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:50:52 +01:00
[PR #1331] conformance: the PNG reader rejects an invalid critical chunk structure (OLD-9989) #1362
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1362
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1331
Author: @fin-github
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:takeover/old-9989-png-critical-chunks📝 Commits (2)
1fd64c5Reject invalid critical PNG chunk structure in conformance reads741f4aaReject non-letter PNG chunk types after review📊 Changes
2 files changed (+52 additions, -0 deletions)
View changed files
📝
tests/test_conformance_png_transparency.py(+32 -0)📝
tools/conformance/compare.py(+20 -0)📄 Description
Claimed in the coordination issue as:
OLD-9989(https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7145581073)Supersedes draft #259, carried over from old upstream PR 9989 in the original repository. This is the same change cherry-picked onto current
main(git cherry-pick -x), with the original author (Tayar) kept on every commit. The change and its explanation are theirs; see #259 for the original description.Tested
Windows 11 Pro 26200, CPython 3.14.4, on
main4a50cafc7. No GPU, no game files.tests/test_conformance_png_transparency.py: 6 tests OKmain's code:test_invalid_critical_chunk_structure_is_rejectedfails in 6 subtests (duplicate IHDR, IEND placement, IDAT order, unknown critical chunk, …), so the tests still catch the bug on currentmain.scripts/check_no_game_data.pyon the changed files andtests/test_text_write_line_endings.py: clean.GPUs tested: n/a
AI-assisted: yes (Claude Code). The cherry-pick and the test runs were done by the agent; the code is the original author's.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.