NULL-Terminated Strings #4

Open
opened 2023-10-10 12:30:32 +00: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 19:34:59 +00: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 17:35:02 +00: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 participant
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.