Repository navigation
fix(rgbw): zero-init failed cache matrices + drop duplicate comment (meta #2580 B1+B7) - #2589
Conversation
…lock Two CodeRabbit follow-ups for src/fl/gfx/rgbw_colorimetric.cpp.hpp: - B1: build_profile_cache warned on invert3x3 failure but still wrote garbage matrices into cache->P_*_inv. Downstream matvec3() then produced undefined output. Zero-init each failed matrix so output is deterministic (zero) on degenerate profiles. - B7: lines 43-46 and 51-54 were near-identical comment blocks about degenerate primaries. Removed the second block. Addresses CodeRabbit findings B1 (originally #2552) and B7 (#2554) per meta #2580.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR adds defensive initialization to the ChangesRGBW inverse matrix degenerate-case safeguarding
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Two related CodeRabbit follow-ups in
src/fl/gfx/rgbw_colorimetric.cpp.hpp:build_profile_cachewarned oninvert3x3failure but still wrote garbage matrices intocache->P_*_inv. Downstreammatvec3()then produced undefined output. Now zero-inits each failed matrix so output is deterministic (zero) on degenerate profiles.Bundled into one PR because both findings touch the same file.
Addresses meta-issue #2580 findings B1 (#2552 (comment)) and B7 (#2554 (review)).
Test plan
bash lintSummary by CodeRabbit