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

Fix dereferencing of potential null pointers #5111

Merged
merged 4 commits into from
Dec 27, 2020
Merged

Fix dereferencing of potential null pointers #5111

merged 4 commits into from
Dec 27, 2020

Conversation

cgohlke
Copy link
Contributor

@cgohlke cgohlke commented Dec 19, 2020

No description provided.

src/libImaging/Histo.c Outdated Show resolved Hide resolved
src/libImaging/Histo.c Outdated Show resolved Hide resolved
src/libImaging/Histo.c Outdated Show resolved Hide resolved
src/libImaging/Histo.c Outdated Show resolved Hide resolved
if (h->histogram) {
free(h->histogram);
}
free(h);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose this change is just to help in theory - but I'll still point out that in practice, with the other changes from this PR, ImagingHistogramDelete never receives a NULL argument.

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.

2 participants