Skip to content

Sync bundled LibRaw 0.22.2 -> 0.22.3 - #222

Merged
danoli3 merged 1 commit into
masterfrom
deps/libraw-0.22.3
Oct 27, 2026
Merged

danoli3 merged 1 commit into
masterfrom
deps/libraw-0.22.3

Conversation

@danoli3

@danoli3 danoli3 commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Upstream bugfix release (2026-10-24). Fixes relevant to FreeImage's RAW loading:

  • CRX: 64-bit data offsets; clamped qParam table index in the legacy quantization path
  • TIFF: strip byte counts computed in 64 bits and checked against 2^31-1
  • X3F: CAMF matrix size check, allocated image size check, extra thumbnail offset check
  • CIFF: fixed a wrong 32->64-bit conversion
  • Sony YCbCr: masked decode-cache index
  • Panasonic 8: explicit 6-bit mask on the shift argument
  • Lossless DNG SOF1/IDCT: refuses tiff_samples > 1
  • DNG: tone-curve table initialized before OpcodeList2 parsing
  • X-Trans interpolation: memmove size, green-pixel selection and tile-source fixes

Before 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.md and debian/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:

  • CVE-2026-111272: upstream calls this a false positive. The report came from static analysis alone and assumed the system calloc(). LibRaw actually uses its own LibRaw::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_Load on RAW files.

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
@danoli3
danoli3 merged commit 67d2b38 into master Oct 27, 2026
72 of 73 checks passed
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.

1 participant