HomeFreeBSD

archivers/pbzip2: fix stream decompression after libc++ 19 fix

Description

archivers/pbzip2: fix stream decompression after libc++ 19 fix

The patch in bug 283655 to fix the pbzip2 build against libc++ 19 (which
finally removed std::char_traits<unsigned char>) had a problem where it
did not correctly check the bzip2 header. This only occurred when
decompressing from standard input, in the 'BZ2StreamScanner' mode, and
would then throw an unexpected "invalid file format" error.

PR: 283655
Reported by: wosch
MFH: 2024Q4

(cherry picked from commit 89f872ec2ccf488f24cd9daca2e0d1f80e7ee429)

Details

Provenance
dimAuthored on Dec 27 2024, 9:15 PM
Parents
R11:9b0f6d74f4f7: net/netcat: Rehost distfile and patch file
Branches
Unknown
Tags
Unknown