projects
/
project
/
udebug.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7ecd48
)
ucode: fix allocation size of local ring meta
author
Felix Fietkau
<
[email protected]
>
Tue, 22 Jul 2025 18:07:24 +0000
(20:07 +0200)
committer
Felix Fietkau
<
[email protected]
>
Tue, 22 Jul 2025 18:07:24 +0000
(20:07 +0200)
Signed-off-by: Felix Fietkau <
[email protected]
>
lib-ucode.c
patch
|
blob
|
history
diff --git
a/lib-ucode.c
b/lib-ucode.c
index ec8c68a4668e0f367aeada071678c5a66507e999..76483486b6659df16532607adcd5620e25c99705 100644
(file)
--- 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));