Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Cristy
committed
Jul 21, 2017
1 parent
1fdc09d
commit 0b13c96
Showing
3 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0b13c96
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not cosmetic change but security one due to free memory. Could you detail these changes
0b13c96
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only security issue would be a potential memory leak if memory could not be allocated for one of histogram or stretch_map. If both cannot be allocated, there is no memory leak. If only one is allocated and the other fails, there is a memory leak of the one that could not be allocated. There is very little chance the allocations would fail, so its low risk.
The other patch was to revert code for creating monochrome images. We found the source of the problem elsewhere so we restored our original code.
The last patch is cosmetic.
Yes, we should have submitted separate commit-- likely fatigue. We've been swamped with issues lately.
And in case we have overlooked it-- thanks for pushing these patches to the Linux mainstream releases of older versions of ImageMagick. Given our small development team and given we're trying to maintain about 600,000 lines of code, we could not possibly keep those releases up to date with patches without your assistance.