News for hackers. Stuff that matters.
Re:27000 errors in the Tizen operating system by chris_wot on Wednesday July 12, 2017 @11:51AM (#14753535)
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.
Re:27000 errors in the Tizen operating system by syncsynchalt on Wednesday July 12, 2017 @06:38PM (#14757275)
The 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.

Re:27000 errors in the Tizen operating system by chris_wot on Wednesday July 12, 2017 @07:08PM (#14757459)
Yeah, but you also don't want to allocate too many of these and smash the stack.