Skip to content

go vet errors #17

@anacrolix

Description

@anacrolix

I had similar things with some cgo code I wrote:

$ go vet ./...
# go.riyazali.net/sqlite
./func.go:143:39: possible misuse of reflect.SliceHeader
./stmt.go:409:40: possible misuse of reflect.SliceHeader
./virtual_table.go:496:44: possible misuse of reflect.SliceHeader
./virtual_table.go:533:70: possible misuse of reflect.SliceHeader
./virtual_table.go:546:67: possible misuse of reflect.SliceHeader
./virtual_table.go:574:75: possible misuse of reflect.SliceHeader
./virtual_table.go:868:38: possible misuse of reflect.SliceHeader

I think there's a risk the GC runs at the wrong time and you get segfaults.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions