convert big size heic image will panic
Houserqu opened this issue · 0 comments
Houserqu commented
This is a picture that can cause panic. image file
panic: runtime error: slice bounds out of range [12583936:12582912]
goroutine 1 [running]:
github.com/adrium/goheif.Decode({0x1009abe58?, 0x140000aa070?})
/Users/houser/go/pkg/mod/github.com/adrium/goheif@v0.0.0-20230113233934-ca402e77a786/goheif.go:167 +0xaf8
main.convertHeicToJpg({0x1009664ef?, 0x0?}, {0x100964422, 0x27})
/Users/houser/projects/yangzhe/scripts/heic/main.go:46 +0xa4
main.main()
/Users/houser/projects/yangzhe/scripts/heic/main.go:20 +0x38
exit status 2