You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C++] SetBitRunReader fails on large unaligned bitmap slices #55945
Describe the bug, including details regarding any error messages, version, and platform.
SetBitRunReader narrows the slice length to int32_t before computing how many bits to read from the first byte. For a slice starting at bit offset 3 with a length of 2^31 bits, it should read 5 bits from that byte. Instead, the narrowed length is negative and a Debug build fails the num_bits > 0 assertion in LoadPartialWord().
ReverseSetBitRunReader has the same issue at the other end of the slice.
Activity
apacheGH-55945: [C++] Clamp partial-byte lengths before narrowing in …