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

Hence it can flow, or it can crash!
Or it can just give someone root.