Menu

#1141 Heap allocation of aligned FIFO objects in chFactory

trunk
closed
None
OSLIB
Medium
Trunk
True
2021-06-18
2021-01-22
No

When allocating heap for chFactory Objects FIFO the object size should be rounded up to the alignment. Not rounding up results in under allocation of memory required for the total number of aligned objects.

Discussion

  • Giovanni Di Sirio

    A problem in the factory also caused the the memory leak discussed here. The real problem was not a leak but a memory clearing overflowing the allocated area.

    http://forum.chibios.org/viewtopic.php?f=24&t=5696

     
  • Giovanni Di Sirio

    • Status: open --> closed
    • Fixed in Repository: False --> True
     

Log in to post a comment.