From 49df726ceef132e4149336e3c5963d7de4ee0b2a Mon Sep 17 00:00:00 2001 From: Greg Eisenhauer Date: Fri, 27 Oct 2023 17:05:45 -0400 Subject: [PATCH] Fix data length calculation for hash --- thirdparty/ffs/ffs/fm/fm_formats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdparty/ffs/ffs/fm/fm_formats.c b/thirdparty/ffs/ffs/fm/fm_formats.c index ca3f3dee83..b6e0697b6d 100755 --- a/thirdparty/ffs/ffs/fm/fm_formats.c +++ b/thirdparty/ffs/ffs/fm/fm_formats.c @@ -1987,7 +1987,7 @@ generate_format3_server_ID(server_ID_type *server_ID, INT4 hash1 = 0, hash2 = 0; UINT4 server_format_rep_length = ntohs(server_format_rep->format_rep_length); if (server_format_rep->server_rep_version > 0) { - server_format_rep_length += (ntohs(server_format_rep->top_bytes_format_rep_length) >> 16); + server_format_rep_length += (ntohs(server_format_rep->top_bytes_format_rep_length) << 16); } if (server_format_rep_length > (1 << 26)) fprintf(stderr, "Format rep too long in generate_format_server_ID\n"); server_ID->length = 12;