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

request: checksum check for zrif string #1

Closed
tomazzz369 opened this issue Nov 23, 2018 · 1 comment
Closed

request: checksum check for zrif string #1

tomazzz369 opened this issue Nov 23, 2018 · 1 comment

Comments

@tomazzz369
Copy link

would be useful in case someone will post invalid zrif string. same as in pkg2zip

https://github.com/mmozeiko/pkg2zip/blob/master/pkg2zip_zrif.c

if (mz_adler32(MZ_ADLER32_INIT, out, dlen) != get32be(in + slen))
{
sys_error("ERROR: zRIF is corrupted, wrong checksum\n");
}

regards

@VitaSmith
Copy link
Owner

Well, we're picking the zRIFs from NPS and if you go through an import/export of zRIFs you'll filter out the invalid ones anyway.

If someone sends a pull request, I'll apply it, but otherwise...

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

2 participants