-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
bitmap version (or commit ref): v0.10.0-beta3.2
-
Go version:1.20.13
-
Gcc version: gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project)
-
Operating system and bit: Win11
-
Provide example code:
package main import ( "fmt" "github.com/vcaesar/bitmap" ) func main() { img := bitmap.Open("iDontExist.png") // nil x, y := bitmap.Find(img) fmt.Println(x, y) // -1 -1 }
Exception 0xc0000005 0x0 0xc0005151b6 0x67f792 PC=0x67f792 signal arrived during external code execution runtime.cgocall(0x683860, 0xc0000879c0) C:/Users/win/go/go1.20.13/src/runtime/cgocall.go:157 +0x4a fp=0xc000087998 sp=0xc000087960 pc=0x494a6a github.com/vcaesar/bitmap._Cfunc_find_bitmap(0x22e7ebc7f80, 0x22e7ebc2990, 0x3c23d70a) _cgo_gotypes.go:351 +0x58 fp=0xc0000879c0 sp=0xc000087998 pc=0x64b918 github.com/vcaesar/bitmap.internalFind.func1(0x781e20?, 0xc0002be000?, 0x3f847ae147ae147b) N:/GO/pkg/mod/github.com/vcaesar/bitmap@v0.10.0-beta3.2/bitmap.go:114 +0x8e fp=0xc000087a10 sp=0xc0000879c0 pc=0x64bb6e github.com/vcaesar/bitmap.internalFind(0xc000018200?, 0x29?, 0xc000087a70?) N:/GO/pkg/mod/github.com/vcaesar/bitmap@v0.10.0-beta3.2/bitmap.go:114 +0x19 fp=0xc000087a38 sp=0xc000087a10 pc=0x64ba99 github.com/vcaesar/bitmap.Find(0x7f9840?, {0xc000087c28, 0x1, 0x1?}) N:/GO/pkg/mod/github.com/vcaesar/bitmap@v0.10.0-beta3.2/bitmap.go:143 +0xa5 fp=0xc000087a80 sp=0xc000087a38 pc=0x64bc65
Description
This should be some memory out of bounds. I don't have a good solution for this problem. I would like developers to confirm it. Thank you
. Also, this is a problem that only occurs with frequent use.
Metadata
Metadata
Assignees
Labels
No labels