ucode: fix entries/size confusion
authorFelix Fietkau <[email protected]>
Wed, 23 Jul 2025 09:51:39 +0000 (11:51 +0200)
committerFelix Fietkau <[email protected]>
Wed, 23 Jul 2025 09:51:39 +0000 (11:51 +0200)
Signed-off-by: Felix Fietkau <[email protected]>
lib-ucode.c

index 49e60fafab3a2361a5d83430892934e79b5fa3d5..d282197af0dd2fad41276bf9275c4748bdda318a 100644 (file)
@@ -570,7 +570,7 @@ uc_udebug_create_ring(uc_vm_t *vm, size_t nargs)
                meta->n_flags++;
        }
 
-       if (udebug_buf_init(buf, ucv_int64_get(size), ucv_int64_get(entries))) {
+       if (udebug_buf_init(buf, ucv_int64_get(entries), ucv_int64_get(size))) {
                free(buf);
                return NULL;
        }