Skip to content

feat: support single file > 4GB#14

Open
yzwall wants to merge 1 commit intodevsapp:mainfrom
yzwall:feature_fix_4gb
Open

feat: support single file > 4GB#14
yzwall wants to merge 1 commit intodevsapp:mainfrom
yzwall:feature_fix_4gb

Conversation

@yzwall
Copy link

@yzwall yzwall commented Oct 23, 2024

Description: In the StreamZipFile class, when writing zipInfo into a zip, if a single zipInfo corresponds to a file size >4GB, an error occurs while updating the zip file header.
struct.error: 'L' format requires 0 <= number <= 4294967295
Action: This is because <LLLL indicates little-endian format, corresponding to the C data type 'unsigned long', which has a data range of 0 to 2^32-1=4294967295 on a 32-bit system. Changing it to <QQQQ can resolve the issue.

Signed-off-by: yuanjie(qinhua) <yuanjie.jyj@alibaba-inc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant