News for hackers. Stuff that matters.
Re:Expert Was Needed to Disable Malaysia Airlines Jet Systems by akiselev on Saturday March 15, 2014 @01:39AM (#7403706)
MISRA discourages use of malloc (because you can deviate with clear documentation as to why) but it's not at all unheard of. That said, many embedded systems don't come with a usable implementation of malloc so the safe default is to write your own memory manager (safer but not always possible: use a well tested one) that uses static memory pools to allocate dynamic memory.
Re:Expert Was Needed to Disable Malaysia Airlines Jet Systems by userbinator on Saturday March 15, 2014 @04:29AM (#7404037)
Any time you're using malloc() you run the risk of running out of memory, which is a very very bad thing for a safety-critical embedded system. Statically allocated, fixed-size things are good, as are algorithms that are designed not to require O(n) space to perform their processing.