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

gdImageGd2Ptr memory leak #713

Merged
merged 3 commits into from
Aug 24, 2021
Merged

gdImageGd2Ptr memory leak #713

merged 3 commits into from
Aug 24, 2021

Conversation

meweez
Copy link
Contributor

@meweez meweez commented Jul 19, 2021

We discussed it in issue #700.

There are some conditions in _gdImageGd2 which lead it to fail1. So if it goes through these fail situations it means that the out isn't allocated correctly and calling the gdDPExtractData leads to double free.
so I add return value to _gdImageGd2 and checked it in gdImageGd2Ptr.

@pierrejoye
Copy link
Contributor

Thanks for the updated PR!

Could you push a change (no matter which) to see if all tests pass on all platforms? We finally have gh actions with Linux/MacOS/Windows (ARM and co coming too).

@meweez
Copy link
Contributor Author

meweez commented Aug 24, 2021

Could you push a change (no matter which) to see if all tests pass on all platforms?

sorry, I don't understand that what to do now?

@pierrejoye
Copy link
Contributor

like commit and push a white space change to trigger the github actions :)

@pierrejoye
Copy link
Contributor

Seems some weird non printable bytes made it in :)

@meweez
Copy link
Contributor Author

meweez commented Aug 24, 2021

there is an error in " Windows 2019 x64" with this message "libheif version found is too old".

is this because of some mistakes in the commit?

@pierrejoye
Copy link
Contributor

pierrejoye commented Aug 24, 2021 via email

@meweez
Copy link
Contributor Author

meweez commented Aug 24, 2021

Did you see the Linux one?

I fixed that and remove non-printable bytes. It is successful.
Now there is a problem only with windows.

@pierrejoye
Copy link
Contributor

pierrejoye commented Aug 24, 2021 via email

@meweez
Copy link
Contributor Author

meweez commented Aug 24, 2021

it should be good now

Again the same error with libheif.

@pierrejoye
Copy link
Contributor

It should be ok. That HEIF issue works now and is not related to your PR.

@meweez
Copy link
Contributor Author

meweez commented Aug 24, 2021

is not related to your PR.

Ok, so can you merge this PR?

@pierrejoye
Copy link
Contributor

pierrejoye commented Aug 24, 2021 via email

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

Successfully merging this pull request may close these issues.

None yet

2 participants