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

Memory leak in ReadBGRImage #1043

Closed
3 tasks done
jgj212 opened this issue Mar 24, 2018 · 1 comment
Closed
3 tasks done

Memory leak in ReadBGRImage #1043

jgj212 opened this issue Mar 24, 2018 · 1 comment
Labels

Comments

@jgj212
Copy link
Contributor

jgj212 commented Mar 24, 2018

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am using the latest version of ImageMagick
  • I have searched open and closed issues to ensure it has not already been reported

Description

Memory leak in ReadBGRImage

Steps to Reproduce

  canvas_image=CloneImage(image,image->extract_info.width,1,MagickFalse,				//line 160, allocation for canvas_image
    exception);
  if (canvas_image == (Image *) NULL)
    ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
  (void) SetImageVirtualPixelMethod(canvas_image,BlackVirtualPixelMethod,
    exception);
  quantum_info=AcquireQuantumInfo(image_info,canvas_image);								
  if (quantum_info == (QuantumInfo *) NULL)
    ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");					//line 168, memory leak as not free canvas_image

System Configuration

  • ImageMagick version: 7.0.7-28
  • Environment (Operating system, version and so on): Ubuntu14.04 x86_64
  • Additional information:

Credit: ADLab of Venustech

@dlemstra
Copy link
Member

Fixed in #1041.

@dlemstra dlemstra added the bug label Mar 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants