8000 Update libpng to 1.6.59 by bryan-minimal · Pull Request #800 · gominimal/pkgs · GitHub
[go: up one dir, main page]

Skip to content

Update libpng to 1.6.59 - #800

Merged
bryan-minimal merged 1 commit into
mainfrom
update-libpng-1.6.59
Oct 10, 2026
Merged

bryan-minimal merged 1 commit into
mainfrom
update-libpng-1.6.59

Conversation

@bryan-minimal
@bryan-minimal bryan-minimal commented Oct 2, 2026 •
Copy link
Copy Markdown
Member

Bumps libpng 1.6.58 → 1.6.59.

Fixes GHSA-qvg3-h654-xq3j (medium): use-after-free of zlib input in png_read_end after an incomplete zTXt/iTXt/iCCP chunk. Affects >= 1.6.0, <= 1.6.58; patched in 1.6.59.

Source. I did this by hand because the automated bump kept failing. The archive is the official SourceForge release (downloads.sourceforge.net/project/libpng/libpng16/1.6.59/libpng-1.6.59.tar.xz), 1,074,540 bytes.

  • xz -t passes, the top directory is libpng-1.6.59/, and png.h has PNG_LIBPNG_VER_STRING "1.6.59".
  • Mirrored (no-clobber) to gs://minimal-staging-archives/libpng-1.6.59.tar.xz; the bucket copy re-downloads to the same sha256 as the pin: d80dd2a38a37f803cb9b6ac7b14bd6e74ddc3b654780a8380bdf93523fdb4389.
  • I did not run pkgscan's diff on this manual path, so reviewers should note that.

Diff is the same three lines as the 1.6.58 bump (#88): version, sha256, and the origin comment.

Why the automated bump failed, and the comment change. The recipe's origin comment used SourceForge's shortcut form downloads.sourceforge.net/libpng/libpng-1.6.58.tar.xz, which cannot name a file and serves an HTML page. pkgmgr's comment reader bumped it to 1.6.59 and downloaded 149 KB of HTML (caught by the new download guard; pkgmgr#927 now skips that form). The comment now uses the direct /project/libpng/libpng16/<ver>/ form so the file works the same either way.

Needs a human reviewer; build + tests are the merge gate.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the app’s PNG processing component from version 1.6.58 to 1.6.59. This release note reflects a component version update only; no changes to user-facing features or behavior are specified. The update does not describe any new capabilities, removed functionality, or changes to how images are processed in the app.

Fixes GHSA-qvg3-h654-xq3j (use-after-free of zlib input in png_read_end).
The recipe comment now uses SourceForge's direct /project/ form: the
downloads.sourceforge.net/<project>/<file> shortcut it carried serves an HTML
page, which aborted the automated bump.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@bryan-minimal
bryan-minimal requested a review from a team as a code owner October 2, 2026 19:19
@coderabbitai
coderabbitai Bot commented Oct 2, 2026 •
Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

🧰 Additional context used
📚 Code guidelines (1)
AGENTS.md — auto-discovered

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: gominimal/pkgs/.coderabbit.yaml

Review profile: CHILL

Plan: Essentials

Run ID: d7c87f49-b0af-4c27-86df-48f804d829b3

📥 Commits

Reviewing files that changed from the base of the PR and between e54005a and 6afee4e.

📒 Files selected for processing (1)
  • packages/libpng/build.ncl

Included review availability: This review used your included allowance. 2 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.


📝 Walkthrough

Walkthrough

The libpng build configuration now specifies version 1.6.59. The archive URL comment and SHA-256 checksum are updated; the source URL template remains unchanged.

Changes

libpng source update

Layer / File(s) Summary
Update libpng release metadata
packages/libpng/build.ncl
The configured version, archive URL comment, and SHA-256 checksum are updated for libpng 1.6.59.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 6afee

No merge-blocking issue was identified in this metadata update. Run the stated build and test checks before merging.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: updating libpng to version 1.6.59.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Comment @coderabbitai help to get the list of available commands.

@norrietaylor norrietaylor 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.

Verified: SourceForge and gs:// mirror both hash to the declared sha256; top dir matches strip_prefix; soname unchanged within libpng16 (8 reverse deps, no pins); repro flags intact.

Nit: GHSA-qvg3-h654-xq3j in the body 404s on github.com/advisories, the advisories API and OSV. The tarball's ANNOUNCE names the fix as CVE-2026-46675 (UAF of zlib input in png_read_end), which matches the description. Suggest citing the CVE in the merge commit.

@bryan-minimal
bryan-minimal added this pull request to the merge queue Oct 10, 2026
Merged via the queue into main with commit 79233e3 Oct 10, 2026
11 checks passed
@bryan-minimal
bryan-minimal deleted the update-libpng-1.6.59 branch October 10, 2026 00:35
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.

2 participants

0