Menu

#489 memory leak in WritePALMImage

v1.0_(example)
closed-fixed
None
5
2017-09-30
2017-09-25
bestshow
No

Here it the critical code : (in WritePALMImage)

  if (palm_image->compression == FaxCompression)
    lastrow = MagickAllocateMemory(unsigned char *,bytes_per_row); //1857
  one_row = MagickAllocateMemory(unsigned char *,bytes_per_row);
  if (one_row == (unsigned char *) NULL)
    ThrowWriterException(ResourceLimitError,MemoryAllocationFailed,image);
If “one_row" is NULL and “lastrow" is not NULL,the “lastrow” may cause memory leak.

Credit : ADLab of Venustech

Discussion

  • Bob Friesenhahn

    Bob Friesenhahn - 2017-09-30
    • status: open --> closed-fixed
    • assigned_to: Bob Friesenhahn
     
  • Bob Friesenhahn

    Bob Friesenhahn - 2017-09-30

    This problem is fixed by Mercurial changeset 15195:3140397ebc5e. Thanks for the report!

     

Log in to post a comment.

MongoDB Logo MongoDB