Skip to content

Fix nil append to slice and its subsequent access #356

@sonalmahajan15

Description

@sonalmahajan15
func test(s []*int) {
	s = append(s, nil)
	s[len(s)-1] = new(int)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    false positiveRequires more analysis and support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions