You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucy.apache.org by "Nick Wellnhofer (JIRA)" <ji...@apache.org> on 2015/04/24 12:43:38 UTC
[lucy-issues] [jira] [Created] (CLOWNFISH-38) Safe helpers to allocate arrays
Nick Wellnhofer created CLOWNFISH-38:
----------------------------------------
Summary: 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
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)