Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MiniZip unzip.c hava some bug, it need to be make modifications #68

Open
happyhell opened this issue Apr 7, 2018 · 2 comments
Open

Comments

@happyhell
Copy link

// if (len > UINT16_MAX)
// return UNZ_PARAMERROR;

s->pfile_in_zip_read->stream.next_out = (Bytef*)buf;
s->pfile_in_zip_read->stream.avail_out = (uInt)len;

if (s->pfile_in_zip_read->raw)
{
    if (len > s->pfile_in_zip_read->rest_read_compressed + s->pfile_in_zip_read->stream.avail_in)
        s->pfile_in_zip_read->stream.avail_out = (uInt)s->pfile_in_zip_read->rest_read_compressed +
            s->pfile_in_zip_read->stream.avail_in;
}
else
{
    if (len > s->pfile_in_zip_read->rest_read_uncompressed)
        s->pfile_in_zip_read->stream.avail_out = (uInt)s->pfile_in_zip_read->rest_read_uncompressed;
}
@gianlucabertani
Copy link
Owner

@nmoinvaz Any word on this?

@nmoinvaz
Copy link

nmoinvaz commented Apr 7, 2018

I don't see the problem. I am also not developing the old branch any longer. I will accept pull requests on it though.

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

No branches or pull requests

3 participants