Skip to content

[BUG] image size overflow #12

Description

@eldeshue

Description

scene.rt 파일의 image size 필드를 음수로 주는 경우 image file이 overflow하는 문제.

To Reproduce

scene.rt의 imageSize의 width와 height를 f64에서 usize로 변환하는 과정에서 f64가 음수인 경우에 발생함.

{
  "imageSize": {
    "width": -900,
    "height": -600,
  },
...

Expected Results

정상적인 BMP이미지는 width와 height 모두 0보다 큰 값이 되어야 합니다.
따라서, usize로 변환하기 이전에 size check가 필요할 것으로 보입니다.

References(optional)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions