Re:The Strict Aliasing Situation Is Pretty Bad
by mcguire on Tuesday March 15, 2016 @04:05PM
(#11292562)
Ok, what's wrong with alloca? Other than blowing the stack, that is.
[ Parent
| on HN ]
Re:The Strict Aliasing Situation Is Pretty Bad
by haberman on Tuesday March 15, 2016 @06:00PM
(#11293353)
See: https://google.github.io/styleguide/cppguide.html#Variable-L...
At least that's the rationale for why we don't use it at Google.
Re:The Strict Aliasing Situation Is Pretty Bad
by mcguire on Thursday March 17, 2016 @11:56AM
(#11305159)
"More importantly, they allocate a data-dependent amount of stack space that can trigger difficult-to-find memory overwriting bugs: "It ran fine on my machine, but dies mysteriously in production"."
Yep, blowing the stack will do that.