Skip to content

Node's zlib.ungzip does not support concatenated files #4306

Description

@yahao87

why did incorrect operate zlib.ungzip?

It is operates in C#.net
but don't operate in nodejs.(windows7, node ver. 5.2.0)
Most of the well, but a problem appears in some of the files.

in C# (with ICSharpCode)

usingICSharpCode.SharpZipLib.Core;
usingICSharpCode.SharpZipLib.GZip;
using (GZipInputStreamgzipStream=newGZipInputStream(fs))
{
// operate very well
}

in NodeJs

varfs=require('fs');varzlib=require("zlib");varfile=fs.readFileSync(sFileFullPath);varextractBin=zlib.gunzipSync(file);console.log("Compressed buffer size"+file.length);// 134079console.log("Uncompressed buffer size"+extractBin.length);// 14

Why it did reduce the size?
Here's the file in question.

http://static.kafra.kr/file/patch.rgz

I'm sorry bad English.

Metadata

Metadata

Assignees

No one assigned

    Labels

    zlibIssues and PRs related to the zlib subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions