Debian Patches

Status for taglib/2.3.2-3

Patch Description Author Forwarded Bugs Origin Last update
0001-RIFF-avoid-32-bit-offset_t-overflow-in-size-clamping.patch RIFF: avoid 32-bit offset_t overflow in chunk size clamping
TagLib::offset_t is off_t on POSIX, which is a 32-bit signed type on
32-bit platforms built without _FILE_OFFSET_BITS=64 (e.g. Debian i386).
The RF64 support introduced in 2.3.2 clamps chunk sizes with
std::min<offset_t>(size, 0xffffffff): with a 32-bit offset_t the constant
converts to -1 and becomes the result, so chunkDataSize() returns
4294967295 and the WAV/AIFF/RIFF parsers misbehave. In read(), a declared
size above 2 GiB likewise turns negative before the clamping check.

Perform the clamping in 64-bit types instead. Fixes the test suite
failures (TestRIFF, TestWAV, TestAIFF) observed on Debian i386. The same
clamp in WAV::Properties is fixed as well.
Boyuan Yang <byang@debian.org> yes upstream 2026-09-16

All known versions for source package 'taglib'

Links