rikyoz / bit7z

A C++ static library offering a clean and simple interface to the 7-zip shared libraries.
https://rikyoz.github.io/bit7z
Mozilla Public License 2.0
602 stars 110 forks source link

[Bug]: #208

Closed xhqsession closed 2 months ago

xhqsession commented 2 months ago

bit7z version

3.2.x

Compilation options

BIT7Z_7ZIP_VERSION

7-zip version

v23.01

7-zip shared library used

7z.dll / 7z.so

Compilers

MSVC

Compiler versions

MSVC 2019

Architecture

x86_64

Operating system

Windows

Operating system versions

Windows 10

Bug description

I use a 4.5G file compression to get a compressed package, then use bit7z to extract it, and pass in a stringstream to get the file contents, but doing so causes the program to crash, why? This is fine if you use small files.

Steps to reproduce

No response

Expected behavior

No response

Relevant compilation output

No response

Code of Conduct

rikyoz commented 2 months ago

Hi! It seems to be a bug in MSVC's implementation of the STL: https://github.com/microsoft/STL/issues/388. Unfortunately, nothing can be done on bit7z side.

xhqsession commented 2 months ago

Hi! It seems to be a bug in MSVC's implementation of the STL: microsoft/STL#388. Unfortunately, nothing can be done on bit7z side.

Thank you. That helps me a lot, too

rikyoz commented 1 month ago

You're welcome!