You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@corinthia.apache.org by "jan iversen (JIRA)" <ji...@apache.org> on 2015/03/03 22:40:05 UTC
[jira] [Commented] (COR-47) Add malloc and free wrapper.
[ https://issues.apache.org/jira/browse/COR-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14345787#comment-14345787 ]
jan iversen commented on COR-47:
--------------------------------
Is this not solved...when committing please also remember to close the issue (it looks good on the statistic, and less confusing for others)
> Add malloc and free wrapper.
> ----------------------------
>
> Key: COR-47
> URL: https://issues.apache.org/jira/browse/COR-47
> Project: Corinthia
> Issue Type: Improvement
> Components: Build, DocFormats - platform
> Affects Versions: 0.5
> Reporter: Gabriela Gibson
> Assignee: Gabriela Gibson
> Priority: Minor
> Attachments: logmsg.txt, malloc.patch
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)