Bug 498600

Summary: Failure decoding large 7zip file
Product: [Frameworks and Libraries] frameworks-karchive Reporter: maddimax
Component: generalAssignee: KIO Bugs <kio-bugs-null>
Status: REPORTED ---    
Severity: major CC: kdelibs-bugs-null
Priority: NOR    
Version First Reported In: 6.9.0   
Target Milestone: ---   
Platform: unspecified   
OS: macOS   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description maddimax 2025-01-13 12:54:09 UTC
STEPS TO REPRODUCE
1. Open https://download.qt.io/development_releases/prebuilt/libclang/libclang-release_19.1.0-based-windows-vs2019_64.7z with `K7Zip::open()`
2. Call `(K7Zip*)archive->directory()->copyTo("/tmp");`
3. Wait for it to run into a Q_ASSERT in `KArchiveFile::copyTo`

OBSERVED RESULT

Assert(n == currentChunkSize)

EXPECTED RESULT

No errors / asserts etc.

SOFTWARE/OS VERSIONS
macOS: 15.2 
Qt Version: 6.8.1