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

Using 2.2.0, crashing on HPDF_Free() after reading invalid png file #71

Open
dalgopower opened this issue Oct 20, 2014 · 0 comments
Open

Comments

@dalgopower
Copy link

I have a several PNG files that libharu fails to load.

One of them (crash.png) causes a crash.
After calling

...
HPDF_Image image = HPDF_LoadPngImageFromFile(pdf, filepath);

if(image == 0)
{
HPDF_Free(pdf); // crash here!!!
}

...

The other two files (fail_to_load1.png, fail_to_load2.png) do not crash when 'HPDF_Free()' is call.

p.s I have no problem opening and seeing these three files using image viewer applications, or Photoshop.

--- crash1.png---
crash

--- fail_to_load1.png---
fail_to_load1

--- fail_to_load2.png---
fail_to_load2

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

2 participants