about summary refs log tree commit diff stats
path: root/lib/quickjs/cutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/quickjs/cutils.c')
-rw-r--r--lib/quickjs/cutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/quickjs/cutils.c b/lib/quickjs/cutils.c
index b4960f9c..c0aacef6 100644
--- a/lib/quickjs/cutils.c
+++ b/lib/quickjs/cutils.c
@@ -140,7 +140,7 @@ int dbuf_put(DynBuf *s, const uint8_t *data, size_t len)
         if (dbuf_realloc(s, s->size + len))
             return -1;
     }
-    memcpy(s->buf + s->size, data, len);
+    memcpy_no_ub(s->buf + s->size, data, len);
     s->size += len;
     return 0;
 }