Repository navigation
Sync bundled LibRaw 0.22.2 -> 0.22.3 - #222
Merged
Merged
Conversation
Upstream bugfix release (2026-10-24). The fixes that matter for FreeImage's RAW loading: - CRX: 64-bit data offsets; clamp the qParam table index in the legacy quantization path - TIFF: compute strip byte counts in 64 bits and check against 2^31-1 - X3F: CAMF matrix size check, allocated image size check, additional thumbnail offset check - CIFF: fix a wrong 32->64-bit conversion - Sony YCbCr: mask the decode-cache index - Panasonic 8: explicit 6-bit mask on the shift argument - lossless DNG SOF1/IDCT: refuse tiff_samples > 1 - DNG: initialize the tone-curve table before OpcodeList2 parsing - X-Trans: memmove size, green-pixel selection and tile-source fixes The 18 changed source files matched the pristine 0.22.2 release exactly before the overlay, so no FreeImage-local patches were dropped. No files were added or removed. As with the 0.22.2 sync, the top-level LibRaw doc files were left alone. Full list: LibRaw/LibRaw@0.22.2...0.22.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upstream bugfix release (2026-10-24). Fixes relevant to FreeImage's RAW loading:
tiff_samples > 1Before the overlay, all 18 changed source files matched the pristine 0.22.2 release exactly, so no FreeImage-local patches were dropped. No files were added or removed. As with the 0.22.2 sync, LibRaw's top-level doc files were left alone. Also updated:
README.md,THIRD_PARTY_VERSIONS.md,CHANGELOG.mdanddebian/changelog.Verified: Release build plus
ctest(11/11) on macOS arm64. Those tests don't decode real camera RAW samples.Upstream diff: LibRaw/LibRaw@0.22.2...0.22.3
CVEs fixed
No CVE IDs are attached to the fixes in this release. The upstream changelog references a single CVE, and only to dispute it:
calloc(). LibRaw actually uses its ownLibRaw::calloc(), so the flagged fixed-offset heap accesses stay inside the allocated buffer. Upstream also says the reporter never contacted them. This bump doesn't fix anything for that CVE, because by upstream's account there was nothing to fix. A scanner flagging LibRaw 0.22.2 for it may still clear once this release is vendored.The memory-safety fixes listed above (CRX offsets and index clamp, TIFF strip-size overflow, X3F size and offset checks, CIFF 32->64-bit conversion, Sony YCbCr and Panasonic 8 masking, DNG tone-curve initialization) went in without CVE numbers, as with 0.22.2. They are all in decoders FreeImage compiles, so they are reachable through
FreeImage_Loadon RAW files.