jokkebk / junzip Goto Github PK
View Code? Open in Web Editor NEWMinimalistic unzip library released into public domain.
License: The Unlicense
Minimalistic unzip library released into public domain.
License: The Unlicense
I compiled this library and ran the demo and I get a bunch of these errors.
It looks like it can't handle folders inside zips?
Hi, this library was tested at big-endian systems (powerpc, arm* i.e.) ?
Thanks for this tiny little library.
I'd really like to use it, but unfortunately, it doesn't seem to work on my zip file.
The file is created using Java on OSX (java.util.zip.ZipOutputStream).
I built the tools using HAVE_LIBS=1
.
Here's what the tools say:
work/external/JUnzip $ ./junzip_demo ~/work/projects/users/mawe/test_bundles/defold.resourcepack_x86_64-darwin_1991398657492922735.zip
972871ffae57ab50d9de02a4f1feb2abb5449bf2, 0 / 0 bytes at offset 00000000
Couldn't read file data!7956da274644c976bbbcddc6297a69393036abce, 0 / 0 bytes at offset 00000000
Couldn't read file data!9e1e445ecb6ab1af9ca2c36af28c02348973c0dd, 0 / 0 bytes at offset 00000000
Couldn't read file data!6ca35f8e1835e32bfebaf64bc1b4a3825e04a6e7, 0 / 0 bytes at offset 00000000
Couldn't read file data!liveupdate.game.dmanifest, 0 / 0 bytes at offset 00000000
Couldn't read file data!a6204fe4626d2c87721c4876713306224ade2ca1, 0 / 0 bytes at offset 00000000
Couldn't read file data!%
work/external/JUnzip $ ./junzip_dump ~/work/projects/users/mawe/test_bundles/defold.resourcepack_x86_64-darwin_1991398657492922735.zip
Reading files...
[E168E168] File "972871ffae57ab50d9de02a4f1feb2abb5449bf2" found, 0 bytes (0 compressed), skipping data...
signature: 0x04034B50
versionNeededToExtract: 20
generalPurposeBitFlag: 2056
compressionMethod: 8
lastModFileTime: 0x5EE8 (11:55:16)
lastModFileDate: 0x512A (2020/09/10)
crc32: 0x00000000
compressedSize: 0
uncompressedSize: 0
fileNameLength: 40
extraFieldLength: 0
Read of local file header failed, assuming file data ended.
Invalid file header signature 0![00000046] %
Here is the zip file:
defold.resourcepack_x86_64-darwin_1991398657492922735.zip
https://github.com/jokkebk/JUnzip/blob/master/junzip.c#L68
I don't see it being used anywhere. It is assigned a value here: https://github.com/jokkebk/JUnzip/blob/master/junzip.c#L111
but after that it isn't used as far as I can tell.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.