HomeFreeBSD

archivers/pbzip2: fix more issues after libc++ 19 patches

Description

archivers/pbzip2: fix more issues after libc++ 19 patches

  • Ensure the _bz2Header and _bz2HeaderZero members of BZ2StreamScanner do not contain an additional NUL byte.
  • When comparing the magic header, compare from pHdr->begin() + hsp to pHdr->end(), making the code equivalent to what it was doing using std::basic_string::compare().

Submitted by: paparodeo@proton.me
PR: 283655
MFH: 2025Q1

(cherry picked from commit 974d3ff054965d2bd2ab884a0579ed06c5a08b07)

Details

Provenance
dimAuthored on Sat, Jan 18, 8:26 PM
Parents
R11:fa5284b65111: emulators/virtualbox-ose{,-nox11}-legacy: Add SLAVE_PORT definition
Branches
Unknown
Tags
Unknown