Y
Hacker News
new
|
ask
|
show
|
jobs
by
nyanpasu64
1322 days ago
Sadly C and C++ have aliasing rules, so casting a pointer to another type is often UB instead of having the underlying memory take the form of the new type.
1 comments
HPsquared
1322 days ago
Hence it can flow, or it can crash!
link
yakubin
1322 days ago
Or it can just give someone root.
link