diff options
| author | Felix Fietkau | 2025-07-22 18:07:24 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2025-07-22 18:07:24 +0000 |
| commit | d4a4c788c416ef864bb88fcafd04b4f094dba6b7 (patch) | |
| tree | 41f4e7d0f1d41a9e8438363b2b50f68bbf2a46c5 | |
| parent | a7ecd483ed386cc478280d53cb1b948b4ed1b7ef (diff) | |
| download | udebug-d4a4c788c416ef864bb88fcafd04b4f094dba6b7.tar.gz | |
ucode: fix allocation size of local ring meta
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rw-r--r-- | lib-ucode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib-ucode.c b/lib-ucode.c index ec8c68a..7648348 100644 --- a/lib-ucode.c +++ b/lib-ucode.c @@ -526,7 +526,7 @@ uc_udebug_create_ring(uc_vm_t *vm, size_t nargs) buf = calloc_a(sizeof(*buf), &name_buf, strlen(ucv_string_get(name)) + 1, - &meta, sizeof(meta), + &meta, sizeof(*meta), &flags, flags_len * sizeof(*flags), &flag_name_buf, flag_str_len); meta->name = strcpy(name_buf, ucv_string_get(name)); |