Menu

#571 Unexpected hang on a crafted Cineon image

v1.0_(example)
closed-fixed
None
5
2018-07-24
2018-07-23
Hongxu Chen
No

When using gm to convert a cineon image to other formats, it hangs there. A sample file is attached.

1 Attachments

Discussion

  • Bob Friesenhahn

    Bob Friesenhahn - 2018-07-23
    • assigned_to: Bob Friesenhahn
    • private: No --> Yes
     
  • Bob Friesenhahn

    Bob Friesenhahn - 2018-07-23

    The reason for the hang is that the file claims to have dimensions of 16768256x17279, which results in the creation of a 2.2TB temporary file to read the pixels into.

    Adding the option '-limit pixels 10mp' avoids the hang.

    It is obvious that code should be added to reject the irrational request based on input image size.

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2018-07-24
    • status: open --> closed-fixed
    • private: Yes --> No
     
  • Bob Friesenhahn

    Bob Friesenhahn - 2018-07-24

    This issue is fixed by Mercurial Changeset 15744:4a8fc48e6aed. Thank you very much for bringing this issue to our attention.

     

Log in to post a comment.

MongoDB Logo MongoDB