partial_load_u64 will fail if buf == NULL/c_len == 0 (#331)

This commit is contained in:
Konstantinos Margaritis 2025-05-16 13:44:36 +03:00 committed by GitHub
parent 5e62255667
commit 7e0503c3b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}
if (c_len) {
data = partial_load_u64a(ci->buf, c_len);
}
data <<= h_len << 3;
data |= data_h;
}