Skip to content

Using uninitialized variable in ImageMagick/coders/mat.c #1221

Closed
@boo0m

Description

@boo0m

Prerequisites

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

Description

The code in ImageMagick/coders/mat.c use uninitialized variable.
line 609: MagickBooleanType status;
line 637: run into while (EOFBlob(image) == MagickFalse)
there have some break condition in the loop.
if ((ldblk > 9999) || (ldblk < 0)) break;
if (HDR.Type[3] != 0) break; /* Data format */
line 828: if (status == MagickFalse) The code use uninitialized variable if break from loop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions