Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic memory allocation - rule 20.4
#5
For MC:2004 the headline rule is unambiguous - dynamic allocation shall not be used.

This applies to the standard library functions [malloc(), free(), etc] but also to any user-defined equivalent functions.

Should you choose to Deviate then it is up to you to justify that decision.
Posted by and on behalf of the MISRA C Working Group
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)