FreeBSD Bugzilla – Attachment 256779 Details for
Bug 283655
archivers/pbzip2: broken decompress mode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
no null byte and compare to end of header
file_283655.txt (text/plain), 988 bytes, created by
paparodeo
on 2025-01-18 19:23:54 UTC
(
hide
)
Description:
no null byte and compare to end of header
Filename:
MIME Type:
Creator:
paparodeo
Created:
2025-01-18 19:23:54 UTC
Size:
988 bytes
patch
obsolete
>diff --git a/patch-BZ2StreamScanner.cpp b/patch-BZ2StreamScanner.cpp >index 070f227..66f2289 100644 >--- a/patch-BZ2StreamScanner.cpp >+++ b/patch-BZ2StreamScanner.cpp >@@ -6,8 +6,8 @@ > _eof = false; > - _bz2Header = bz2header; > - _bz2HeaderZero = bz2ZeroHeader; >-+ _bz2Header.assign(begin(bz2header), end(bz2header)); >-+ _bz2HeaderZero.assign(begin(bz2ZeroHeader), end(bz2ZeroHeader)); >++ _bz2Header.assign(begin(bz2header), end(bz2header) - 1); >++ _bz2HeaderZero.assign(begin(bz2ZeroHeader), end(bz2ZeroHeader) - 1); > _bz2HeaderFound = false; > _inBuffCapacity = 0; > _errState = 0; >@@ -35,7 +35,7 @@ > // compare the remaining part of magic header > - int cmpres = pHdr->compare( hsp, pHdr->size() - hsp, > - getInBuffSearchPtr() + hsp, pHdr->size() - hsp ); >-+ bool cmpres = equal( pHdr->begin() + hsp, pHdr->begin() + pHdr->size() - hsp, >++ bool cmpres = equal( pHdr->begin() + hsp, pHdr->end(), > + getInBuffSearchPtr() + hsp ); > > + >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 283655
: 256779
Working