Is it idiomatic go to memcpy into a struct? I would think that this whole paradigm would be impossible in safe golang code.
Let's ignore idiomatic code, people do crazy stuff all the time.
What's the go example that gets you from for example an overflow to exploit? That's what I'm trying to follow (not being an expert).