lucy-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Wellnhofer (JIRA)" <j...@apache.org>
Subject [lucy-issues] [jira] [Assigned] (CLOWNFISH-38) Safe helpers to allocate arrays
Date Fri, 24 Jul 2015 12:55:04 GMT

     [ https://issues.apache.org/jira/browse/CLOWNFISH-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nick Wellnhofer reassigned CLOWNFISH-38:
----------------------------------------

    Assignee: Nick Wellnhofer

> Safe helpers to allocate arrays
> -------------------------------
>
>                 Key: CLOWNFISH-38
>                 URL: https://issues.apache.org/jira/browse/CLOWNFISH-38
>             Project: Apache Lucy-Clownfish
>          Issue Type: Improvement
>            Reporter: Nick Wellnhofer
>            Assignee: Nick Wellnhofer
>
> Code like {{MALLOCATE(num_elems * sizeof(Type))}} in often unsafe because it fails to
check whether the multiplication overflows. We should provide helper functions to allocate
and reallocate arrays safely. See {{reallocarray}} in BSD, for example.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message