NULL-Terminated Strings #4

Open
opened 2023-10-10 08:30:32 -04:00 by jordan · 2 comments
Owner

NULL-terminated strings are a source of many inefficiencies and potential vulnerabilities in C code. We should add a custom Str type that stores the length separately and has its own handling functions for concatenation and the like.

NULL-terminated strings are a source of many inefficiencies and potential vulnerabilities in C code. We should add a custom `Str` type that stores the length separately and has its own handling functions for concatenation and the like.
jordan added the
enhancement
label 2023-11-04 15:34:59 -04:00
Author
Owner

This custom Str type should be Unicode aware. If that means it stores characters as uint32_t, then so be it, although that isn't very memory-efficient in most cases.

This custom `Str` type should be Unicode aware. If that means it stores characters as `uint32_t`, then so be it, although that isn't very memory-efficient in most cases.
jordan added this to the Cytoplasm v1.0.0 milestone 2024-01-13 12:35:02 -05:00
Author
Owner

If we are going to go with a custom string type, we should also implement string interning so that #33 doesn't use up so much memory.

If we are going to go with a custom string type, we should also implement string interning so that #33 doesn't use up so much memory.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Telodendria/Cytoplasm#4
No description provided.