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

alloc memory by caller #13

Open
GoogleCodeExporter opened this issue Mar 9, 2015 · 2 comments
Open

alloc memory by caller #13

GoogleCodeExporter opened this issue Mar 9, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

I'm trying to make use of zopfli library in advanceCOMP, and I found that I 
can't alloc memory by caller. If I do so, zopfli segfaults in 
ZOPFLI_APPEND_DATA(0, out, outsize)

I wonder if you can change it to make use the memory allocated by caller 
directly?

Original issue reported on code.google.com by roy...@gmail.com on 18 Mar 2013 at 8:37

@GoogleCodeExporter
Copy link
Author

I patched zopfli into advancecomp at https://github.com/dajhorn/advancecomp and 
submitted it upstream for review.

Use it like this:

# advzip --zopfli=100 --recompress example.zip

Original comment by dajhorn@vanadac.com on 22 Mar 2013 at 3:15

@GoogleCodeExporter
Copy link
Author

> I patched zopfli into advancecomp at https://github.com/dajhorn/advancecomp 
and submitted it upstream for review.

I did my own here.
http://encode.ru/threads/1691-AdvanceCOMP-with-new-7-zip?p=32685&viewfull=1#post
32685

the problem is that, if out_size passed to ZopfliCompress is not zero, it will 
segfault.

Original comment by roy...@gmail.com on 22 Mar 2013 at 3:26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant