Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert big size heic image will panic #6

Open
Houserqu opened this issue Feb 19, 2023 · 0 comments
Open

convert big size heic image will panic #6

Houserqu opened this issue Feb 19, 2023 · 0 comments

Comments

@Houserqu
Copy link

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/[email protected]/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant