diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-01-10 12:23:32 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-01-10 12:45:58 +0100 |
| commit | e6e077c8469f857ac58d804c788e887ce86e2303 (patch) | |
| tree | 5d2a54577bb177e62f43c37ffeffb904a5063467 /lexers/makefile.lua | |
| parent | 713f90fd5dacb768731fa48b93a873bd37e085ad (diff) | |
| download | vis-e6e077c8469f857ac58d804c788e887ce86e2303.tar.gz vis-e6e077c8469f857ac58d804c788e887ce86e2303.tar.xz | |
text: introduce text_bytes_alloc0 utility function
Heap allocates a zero terminated string of the given range.
Freeing is the caller's responsibility.
Checks for unsigned integer overflow i.e. passing SIZE_MAX
as len will always fail because there is no room for the
terminating NUL byte. This is important as EPOS is defined
to be SIZE_MAX.
Diffstat (limited to 'lexers/makefile.lua')
0 files changed, 0 insertions, 0 deletions
