Skip to content

Conversation

@vindenesen
Copy link

If we use unsafe.Pointer for the windows.Handle hcceLocalMachine, we sometimes get a panic when resolveChains is called often in an application:

runtime: bad pointer in frame github.com/google/certtostore.(*WinCertStore).resolveChains at 0xc000041c60: 0x1
fatal error: invalid pointer found on stack

vsCode also identifies that this is a possible misuse of unsafe.Pointer

If we use unsafe.Pointer for the windows.Handle for hcceLocalMachine, we
sometimes get a panic when resolveChains is called often in an application:

```runtime: bad pointer in frame github.com/google/certtostore.(*WinCertStore).resolveChains at 0xc000041c60: 0x1
fatal error: invalid pointer found on stack```

vsCode also says that this is a possible misuse of unsafe.Pointer.
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

Successfully merging this pull request may close these issues.

1 participant