Use alloca() for strings
------------------------

                 Key: LUCY-100
                 URL: https://issues.apache.org/jira/browse/LUCY-100
             Project: Lucy
          Issue Type: Improvement
          Components: Core
            Reporter: Marvin Humphrey
            Assignee: Marvin Humphrey
            Priority: Minor


For security and reliability, Lucy eschews C-style NULL-terminated strings
except when absolutely necessary, favoring CharBuf objects instead.  However,
we would prefer to keep structs opaque and to use stack memory instead of heap
memory for small string values.  Furthermore, we would like to use object
pointers consistently rather than object structs.

These ends can be achieved by deploying the the non-standard but widely
available stack memory allocator alloca().


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to