Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-11499

memory allocation functions do not robustly handle case of --heap_size=0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Prioritized Not Prioritized
    • Code Generation Tools
    • CODEGEN-11070
    • Show
      https://e2e.ti.com/support/development_tools/compiler/f/343/t/579449 https://e2e.ti.com/support/development_tools/compiler/f/343/t/579454 https://e2e.ti.com/support/development_tools/compiler/f/343/t/579456
    • C6000_8.3.0
    • default
    • Hide
      It is possible to set the size of the allocation heap to a total size (such as zero) that is too small to handle any allocations. The C library's dynamic memory allocation routines (e.g. malloc) did not gracefully handle allocations in this case. These functions might crash, or might scribble on unrelated program memory, or might return successfully with a bogus pointer, in which case the caller would likely proceed to write through the bogus pointer and scribble on arbitrary memory.
      Show
      It is possible to set the size of the allocation heap to a total size (such as zero) that is too small to handle any allocations. The C library's dynamic memory allocation routines (e.g. malloc) did not gracefully handle allocations in this case. These functions might crash, or might scribble on unrelated program memory, or might return successfully with a bogus pointer, in which case the caller would likely proceed to write through the bogus pointer and scribble on arbitrary memory.

          syncuser TI User
          syncuser TI User
          Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

            Created:
            Updated: