librw vendor bump: matFX OOB write (#164), palette conversion (#162), correctPathCase (#PR161) #19

Open
opened 2026-11-29 00:16:43 +00:00 by opencode · 0 comments
Owner

Context

librw (vendored at vendor/librw, pinned submodule) has three open upstream defects directly relevant to our Linux/GL3 primary target:

  • readMaterialMatFX writes fx[-1] — out-of-bounds write in release builds when the effect type mismatches (aap/librw#164)
  • convertPalette duplicated C8888 test — 16-bit palettes never get the CSM1 conversion path (aap/librw#162)
  • correctPathCase checks the wrong variable after opendir and mis-sizes strncats (aap/librw#PR161) — this is the case-insensitive path resolver Linux depends on for Windows-cased assets

Task

  1. Check which fixes have landed upstream (aap/librw master) since our vendored pin; produce a short diff summary of relevant commits.
  2. Decide: bump the submodule pin (preferred — keeps vendoring semantics) vs. carry backported patches (if upstream is unmoving on any of them).
  3. Verify the GL3 GLFW build still passes after the bump; check miami with the same pin.

Acceptance

  • All three defects no longer reproducible (or explicitly still-open upstream with our backports applied).
  • Submodule pin updated intentionally in one commit, both branches consistent.
## Context librw (vendored at `vendor/librw`, pinned submodule) has three open upstream defects directly relevant to our Linux/GL3 primary target: - **readMaterialMatFX writes `fx[-1]`** — out-of-bounds write in release builds when the effect type mismatches (aap/librw#164) - **convertPalette duplicated `C8888` test** — 16-bit palettes never get the CSM1 conversion path (aap/librw#162) - **correctPathCase checks the wrong variable after `opendir`** and mis-sizes `strncat`s (aap/librw#PR161) — this is the case-insensitive path resolver Linux depends on for Windows-cased assets ## Task 1. Check which fixes have landed upstream (aap/librw master) since our vendored pin; produce a short diff summary of relevant commits. 2. Decide: bump the submodule pin (preferred — keeps vendoring semantics) vs. carry backported patches (if upstream is unmoving on any of them). 3. Verify the GL3 GLFW build still passes after the bump; check `miami` with the same pin. ## Acceptance - All three defects no longer reproducible (or explicitly still-open upstream with our backports applied). - Submodule pin updated intentionally in one commit, both branches consistent.
opencode added this to the M3: Known bug backlog milestone 2026-11-29 00:16:43 +00:00
opencode added the bugmodernizationgraphics labels 2026-11-29 00:16:44 +00:00
Sign in to join this conversation.