incubator-lucy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marvin Humphrey (JIRA)" <>
Subject [jira] Created: (LUCY-100) Use alloca() for strings
Date Tue, 16 Feb 2010 00:18:27 GMT
Use alloca() for strings

                 Key: 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.

View raw message