3 ms·
Those alloca issues are a real concern! Especially given the fact that there's no way of knowing with any certainty that it has failed, as if it fails then it's
by chris_wot 9y ago
Those alloca issues are a real concern! Especially given the fact that there's no way of knowing with any certainty that it has failed, as if it fails then it's not specified what behaviour will occur.
- syncsynchalt 9y agoThe first alloca (alloc in a loop) is in a test, which makes it less concerning IME. The second (free() of a stack pointer), oof. Depending on the malloc implementation, you'll get a noop, a crash, an abort, a warning to stderr, or worst of all silent munge of stack vars.
- chris_wot 9y agoYeah, but you also don't want to allocate too many of these and smash the stack.