Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Exploitable DoS Condition in Golang Hashmap #41674
What version of Go are you using (
Killing the application on a racy access to a map is intentional. It's not to avoid TOCTOU issues. That's up to the application. It's because concurrent access can lead to a corrupted internal state; see #13062 for an example. We'd rather have the application crash with a sensible error like "concurrent map read and map write" instead of something nonsensical like "runtime: unexpected fault address" somewhere deep in the map implementation.