Skip to content

all: race condition in getting environment variable on windows #9753

Closed
@jaykrell

Description

@jaykrell

https://github.com/golang/sys/blob/master/windows/env_windows.go

This code exhibits a common bug.
Other threads can change the value, or unset it, while it is being retrieved.
You should loop until either
not found
or variable fits in buffer

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions