-
-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Description
Good day!
I got repeatable panic on grayscale images:
./main -in 511be36c3d8721964318518f9a2bb691.jpeg -out out.jpeg -radius 10
panic: runtime error: index out of range [786432] with length 786432
goroutine 1 [running]:
github.com/esimov/stackblur-go.toNRGBA({0x100526f60, 0x140000c2140})
/Users/danil/blur/stackblur-go/stackblur.go:420 +0x3d0
github.com/esimov/stackblur-go.Process({0x100526f60, 0x140000c2140}, 0xa)
/Users/danil/blur/stackblur-go/stackblur.go:83 +0xa4
main.main()
/Users/danil/blur/stackblur-go/cmd/main.go:71 +0x1f8
Changing
Line 426 in d3c03d1
si += 2 |
si++
fixes the issue.Please take a look.
dmitshur
Metadata
Metadata
Assignees
Labels
No labels