Uploaded image for project: 'Corinthia'
  1. Corinthia
  2. COR-47

Add malloc and free wrapper.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.5
    • None
    • None

    Description

      Added malloc wrapper function that affects the entire build. See
      http://www.cs.cmu.edu/afs/cs/academic/class/15213-s03/src/interposition/mymalloc.c
      for some alternatives and the 'cooking recipe'.

      • CMakeLists.txt:

      (): Add Major and Minor Version numbers, set to 0.5 to match JIRA
      entry.

      (Linux): Add new CMAKE_EXE_LINKER_FLAGS for Linker flags. Currently
      only affects the Linux build.

      • DocFormats/platform/src/Linux.c:

      (): #include stdlib.h.

      (__wrap_malloc): New function. Ensure that a malloc failure exits
      with error message.

      (__wrap_free): New function. Ensure that ptr passed in is set to
      NULL after free is applied.

      Attachments

        1. logmsg.txt
          0.7 kB
          Gabriela Gibson
        2. malloc.patch
          2 kB
          Gabriela Gibson

        Activity

          People

            gbg Gabriela Gibson
            gbg Gabriela Gibson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: