lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 25.11-pre 30 lines 1.2 kB view raw
1From 93acbc13cf271faf6025e96991eb3ab65062f90f Mon Sep 17 00:00:00 2001 2From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io> 3Date: Sat, 9 Mar 2024 09:35:24 +0100 4Subject: [PATCH] fix compilation with clang 5MIME-Version: 1.0 6Content-Type: text/plain; charset=UTF-8 7Content-Transfer-Encoding: 8bit 8 9Signed-off-by: Jörg Thalheim <joerg@thalheim.io> 10--- 11 librz/analysis/p/analysis_xtensa.c | 3 ++- 12 1 file changed, 2 insertions(+), 1 deletion(-) 13 14diff --git a/librz/analysis/p/analysis_xtensa.c b/librz/analysis/p/analysis_xtensa.c 15index 4a32d2037c..f7331ae376 100644 16--- a/librz/analysis/p/analysis_xtensa.c 17+++ b/librz/analysis/p/analysis_xtensa.c 18@@ -21,7 +21,8 @@ typedef struct { 19 static bool xtensa_init(void **user) { 20 XtensaContext *ctx = RZ_NEW0(XtensaContext); 21 rz_return_val_if_fail(ctx, false); 22- memcpy(ctx->length_table, (int[16]){ 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 8, 8 }, sizeof(ctx->length_table)); 23+ int temp_length_table[16] = { 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 8, 8 }; 24+ memcpy(ctx->length_table, temp_length_table, sizeof(ctx->length_table)); 25 ctx->insn_buffer = NULL; 26 ctx->slot_buffer = NULL; 27 *user = ctx; 28-- 292.43.1 30