From 7e92f9a6d9b9b4c50ead3ca0798e090dfe2c636e Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Thu, 15 May 2025 15:00:22 +0300 Subject: [PATCH] partial_load_u64 will fail if buf == NULL/c_len == 0 --- src/rose/program_runtime.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rose/program_runtime.c b/src/rose/program_runtime.c index 1273f799..3e7752c7 100644 --- a/src/rose/program_runtime.c +++ b/src/rose/program_runtime.c @@ -688,7 +688,9 @@ int roseCheckMask(const struct core_info *ci, u64a and_mask, u64a cmp_mask, shift_l = c_len - ci->len; c_len = ci->len; } - data = partial_load_u64a(ci->buf, c_len); + if (c_len) { + data = partial_load_u64a(ci->buf, c_len); + } data <<= h_len << 3; data |= data_h; }