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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Code Generation Tools
    • CODEGEN-11072
    • 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
    • Hide
      C6000_8.3.0
      PRU_2.3.0
      Show
      C6000_8.3.0 PRU_2.3.0
    • Hide
      C6000_8.3.13
      PRU_2.3.4*
      Show
      C6000_8.3.13 PRU_2.3.4*
    • 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:
            Resolved: