Skip to content

Crash when use ImageFileReader read jpeg  #2928

@Hconk

Description

@Hconk

Description

If compile with release version. When I use ImageFileReader read some broke jpeg image, it's crash in Update function. I expected throw an exception.
But success in Debug.

Steps to Reproduce

Build With Release.
https://gist.github.com/Hconk/5b1bed75ebb3c62757277a1367d61edb

Expected behavior

If image broke, expect throw an exception.

Actual behavior

Crash at update.

image

image

Reproducibility

Release Version.

Versions

c4960ee

Environment

  • CMake: 3.21.1
  • OS: Centos 7.3 / Windows 10
  • ITK Version: 5.2.1 / master branch
  • compile: gcc10.2 / gcc 4.8 / vs2017

Additional Information

Test data.
Google Drive

211869_09365_55_55

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:IOIssues affecting the IO moduletype:BugInconsistencies or issues which will cause an incorrect result under some or all circumstances

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions