dlib

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.deepztream.com/dlib
Log | Files | Refs

commit 226c3a9adbbc047f7820b91412bdbb6cf546e8fe
parent 17ea5a41be7a78531e1919b84399d09fe36bdfcf
Author: William Djupström <william@deepztream.com>
Date:   Sun, 27 Sep 2026 00:28:05 +0200

Fixed a buffer overrun when adding c-strings

Diffstat:
Mdlib.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlib.h b/dlib.h @@ -214,7 +214,7 @@ sb_append_cstr(Sb *sb, const char *cstr) { ssize_t len = strlen(cstr); da_reserve(sb, sb->count + len); - strcpy(sb->items + sb->count, cstr); + memcpy(sb->items + sb->count, cstr, len); sb->count += len; }