Hacker News new | ask | show | jobs
by asdfasgasdgasdg 1666 days ago
Is it idiomatic go to memcpy into a struct? I would think that this whole paradigm would be impossible in safe golang code.
1 comments

That's what I'm trying to understand.

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).

I am skeptical that you could do it without either using the assembler or the unsafe package, but we will see what Julian says.