diff --git a/src/modules/module_00400.c b/src/modules/module_00400.c index 23dc5c4c4..3b7bbe137 100644 --- a/src/modules/module_00400.c +++ b/src/modules/module_00400.c @@ -198,7 +198,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE if (rc_tokenizer != PARSER_OK) return (rc_tokenizer); - memcpy ((u8 *) salt->salt_sign, line_buf, 4); + memcpy ((u8 *) salt->salt_sign, line_buf, sizeof(salt->salt_sign)); const u8 *iter_pos = token.buf[1]; diff --git a/src/modules/module_06211.c b/src/modules/module_06211.c index aae64c1af..96bba5ade 100644 --- a/src/modules/module_06211.c +++ b/src/modules/module_06211.c @@ -236,7 +236,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_06212.c b/src/modules/module_06212.c index 3d7712130..71fc24de9 100644 --- a/src/modules/module_06212.c +++ b/src/modules/module_06212.c @@ -236,7 +236,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_06213.c b/src/modules/module_06213.c index 52e4c6e2d..c6d1eb0ac 100644 --- a/src/modules/module_06213.c +++ b/src/modules/module_06213.c @@ -218,7 +218,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // salt - memcpy (salt->salt_buf, line_buf, TC_SALT_LEN); + memcpy (salt->salt_buf, line_buf, sizeof(salt->salt_buf)); salt->salt_len = TC_SALT_LEN; @@ -236,7 +236,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_06221.c b/src/modules/module_06221.c index 5165af4ea..3620b1e78 100644 --- a/src/modules/module_06221.c +++ b/src/modules/module_06221.c @@ -248,7 +248,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_06222.c b/src/modules/module_06222.c index 8ca545ec5..f771ebc7b 100644 --- a/src/modules/module_06222.c +++ b/src/modules/module_06222.c @@ -248,7 +248,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_06223.c b/src/modules/module_06223.c index 7c96d4e46..5f274e1ca 100644 --- a/src/modules/module_06223.c +++ b/src/modules/module_06223.c @@ -248,7 +248,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_06231.c b/src/modules/module_06231.c index 0860c0771..16dba5882 100644 --- a/src/modules/module_06231.c +++ b/src/modules/module_06231.c @@ -246,7 +246,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_06232.c b/src/modules/module_06232.c index 6005483ef..70cf859eb 100644 --- a/src/modules/module_06232.c +++ b/src/modules/module_06232.c @@ -246,7 +246,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_06233.c b/src/modules/module_06233.c index df7ff9cb6..dcfd109a1 100644 --- a/src/modules/module_06233.c +++ b/src/modules/module_06233.c @@ -246,7 +246,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_06241.c b/src/modules/module_06241.c index bf41db0a2..7e3867df1 100644 --- a/src/modules/module_06241.c +++ b/src/modules/module_06241.c @@ -251,7 +251,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_06242.c b/src/modules/module_06242.c index 1079060fb..88f094401 100644 --- a/src/modules/module_06242.c +++ b/src/modules/module_06242.c @@ -251,7 +251,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_06243.c b/src/modules/module_06243.c index f2101dc69..a89b17807 100644 --- a/src/modules/module_06243.c +++ b/src/modules/module_06243.c @@ -251,7 +251,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13711.c b/src/modules/module_13711.c index 05ab89ecc..0ed788f21 100644 --- a/src/modules/module_13711.c +++ b/src/modules/module_13711.c @@ -283,7 +283,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13712.c b/src/modules/module_13712.c index 6f62b2b33..cfb116594 100644 --- a/src/modules/module_13712.c +++ b/src/modules/module_13712.c @@ -283,7 +283,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13713.c b/src/modules/module_13713.c index ba414a5a0..8f2c4d919 100644 --- a/src/modules/module_13713.c +++ b/src/modules/module_13713.c @@ -283,7 +283,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13721.c b/src/modules/module_13721.c index f6f335eb6..4af7ae077 100644 --- a/src/modules/module_13721.c +++ b/src/modules/module_13721.c @@ -296,7 +296,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13722.c b/src/modules/module_13722.c index 6ce7258e3..e65115597 100644 --- a/src/modules/module_13722.c +++ b/src/modules/module_13722.c @@ -296,7 +296,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13723.c b/src/modules/module_13723.c index ca2a70316..9171787b5 100644 --- a/src/modules/module_13723.c +++ b/src/modules/module_13723.c @@ -296,7 +296,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13731.c b/src/modules/module_13731.c index 428c33ffa..1d4a47f13 100644 --- a/src/modules/module_13731.c +++ b/src/modules/module_13731.c @@ -302,7 +302,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13733.c b/src/modules/module_13733.c index 1e9007315..f92549d06 100644 --- a/src/modules/module_13733.c +++ b/src/modules/module_13733.c @@ -278,7 +278,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // salt - memcpy (salt->salt_buf, line_buf, VC_SALT_LEN); + memcpy (salt->salt_buf, line_buf, sizeof(salt->salt_buf)); salt->salt_len = VC_SALT_LEN; @@ -302,7 +302,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13741.c b/src/modules/module_13741.c index e4811633c..680863461 100644 --- a/src/modules/module_13741.c +++ b/src/modules/module_13741.c @@ -285,7 +285,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13742.c b/src/modules/module_13742.c index 45f9cfc51..03d3c3f44 100644 --- a/src/modules/module_13742.c +++ b/src/modules/module_13742.c @@ -285,7 +285,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13743.c b/src/modules/module_13743.c index 2824e93f9..ab25d0451 100644 --- a/src/modules/module_13743.c +++ b/src/modules/module_13743.c @@ -285,7 +285,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13751.c b/src/modules/module_13751.c index 5530305f0..be861f9b5 100644 --- a/src/modules/module_13751.c +++ b/src/modules/module_13751.c @@ -302,7 +302,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13752.c b/src/modules/module_13752.c index d5485047f..1b92d8412 100644 --- a/src/modules/module_13752.c +++ b/src/modules/module_13752.c @@ -302,7 +302,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13753.c b/src/modules/module_13753.c index 5b6d7297d..c209d1779 100644 --- a/src/modules/module_13753.c +++ b/src/modules/module_13753.c @@ -302,7 +302,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13761.c b/src/modules/module_13761.c index 7212b8f96..b3d286346 100644 --- a/src/modules/module_13761.c +++ b/src/modules/module_13761.c @@ -304,7 +304,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13762.c b/src/modules/module_13762.c index 113e71460..6c73c62fc 100644 --- a/src/modules/module_13762.c +++ b/src/modules/module_13762.c @@ -304,7 +304,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13763.c b/src/modules/module_13763.c index 89f900e62..b2a41f7e7 100644 --- a/src/modules/module_13763.c +++ b/src/modules/module_13763.c @@ -304,7 +304,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13771.c b/src/modules/module_13771.c index e6283a499..355fd742d 100644 --- a/src/modules/module_13771.c +++ b/src/modules/module_13771.c @@ -288,7 +288,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13772.c b/src/modules/module_13772.c index 7ae4bed75..30354eb20 100644 --- a/src/modules/module_13772.c +++ b/src/modules/module_13772.c @@ -288,7 +288,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13773.c b/src/modules/module_13773.c index df1e35ba0..8d43e20ec 100644 --- a/src/modules/module_13773.c +++ b/src/modules/module_13773.c @@ -288,7 +288,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13781.c b/src/modules/module_13781.c index 191a64c80..c955780a4 100644 --- a/src/modules/module_13781.c +++ b/src/modules/module_13781.c @@ -290,7 +290,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13782.c b/src/modules/module_13782.c index 16c5cc9b6..36d578990 100644 --- a/src/modules/module_13782.c +++ b/src/modules/module_13782.c @@ -290,7 +290,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_13783.c b/src/modules/module_13783.c index ad4a2e4cc..16bdf953e 100644 --- a/src/modules/module_13783.c +++ b/src/modules/module_13783.c @@ -290,7 +290,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_22100.c b/src/modules/module_22100.c index f5b21082a..dd703581f 100644 --- a/src/modules/module_22100.c +++ b/src/modules/module_22100.c @@ -343,7 +343,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest: - memcpy (digest, bitlocker->data, 16); + memcpy (digest, bitlocker->data, sizeof(bitlocker->data)); return (PARSER_OK); } diff --git a/src/modules/module_29311.c b/src/modules/module_29311.c index 0f976ee8d..2f29d3db9 100644 --- a/src/modules/module_29311.c +++ b/src/modules/module_29311.c @@ -178,7 +178,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29312.c b/src/modules/module_29312.c index 31e5dba33..231342dda 100644 --- a/src/modules/module_29312.c +++ b/src/modules/module_29312.c @@ -178,7 +178,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29313.c b/src/modules/module_29313.c index eadca3d08..eca742c4b 100644 --- a/src/modules/module_29313.c +++ b/src/modules/module_29313.c @@ -178,7 +178,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29321.c b/src/modules/module_29321.c index ac5e1bf4f..31612277b 100644 --- a/src/modules/module_29321.c +++ b/src/modules/module_29321.c @@ -179,7 +179,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29322.c b/src/modules/module_29322.c index 4322666c9..ed6620598 100644 --- a/src/modules/module_29322.c +++ b/src/modules/module_29322.c @@ -179,7 +179,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29323.c b/src/modules/module_29323.c index 63c016358..96fcd16f1 100644 --- a/src/modules/module_29323.c +++ b/src/modules/module_29323.c @@ -179,7 +179,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29331.c b/src/modules/module_29331.c index 52eefad8f..137f96573 100644 --- a/src/modules/module_29331.c +++ b/src/modules/module_29331.c @@ -164,7 +164,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29332.c b/src/modules/module_29332.c index 2bb2c57ae..aca3d3007 100644 --- a/src/modules/module_29332.c +++ b/src/modules/module_29332.c @@ -164,7 +164,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29333.c b/src/modules/module_29333.c index 427dda7c4..f6a7db65e 100644 --- a/src/modules/module_29333.c +++ b/src/modules/module_29333.c @@ -164,7 +164,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29341.c b/src/modules/module_29341.c index 9b2a472ef..21641118e 100644 --- a/src/modules/module_29341.c +++ b/src/modules/module_29341.c @@ -191,7 +191,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29342.c b/src/modules/module_29342.c index 56ec1bc84..28f002258 100644 --- a/src/modules/module_29342.c +++ b/src/modules/module_29342.c @@ -191,7 +191,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29343.c b/src/modules/module_29343.c index 5bd5f6823..4bb45faaf 100644 --- a/src/modules/module_29343.c +++ b/src/modules/module_29343.c @@ -191,7 +191,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, tc->data_buf, TC_DATA_LEN / 4); + memcpy (digest, tc->data_buf, sizeof(tc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29411.c b/src/modules/module_29411.c index 434ebd06d..d872b68ec 100644 --- a/src/modules/module_29411.c +++ b/src/modules/module_29411.c @@ -220,7 +220,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29412.c b/src/modules/module_29412.c index ecb9e4706..1541d8238 100644 --- a/src/modules/module_29412.c +++ b/src/modules/module_29412.c @@ -220,7 +220,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29413.c b/src/modules/module_29413.c index 295807e18..271c3beff 100644 --- a/src/modules/module_29413.c +++ b/src/modules/module_29413.c @@ -220,7 +220,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29421.c b/src/modules/module_29421.c index c75184e77..c419799be 100644 --- a/src/modules/module_29421.c +++ b/src/modules/module_29421.c @@ -231,7 +231,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29422.c b/src/modules/module_29422.c index 1e307a2fd..2ad5d2cbc 100644 --- a/src/modules/module_29422.c +++ b/src/modules/module_29422.c @@ -231,7 +231,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29423.c b/src/modules/module_29423.c index fce68cc36..e73b07996 100644 --- a/src/modules/module_29423.c +++ b/src/modules/module_29423.c @@ -231,7 +231,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29431.c b/src/modules/module_29431.c index d98fce4dd..f9b751da6 100644 --- a/src/modules/module_29431.c +++ b/src/modules/module_29431.c @@ -207,7 +207,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29432.c b/src/modules/module_29432.c index 8bdb26a99..c854a2562 100644 --- a/src/modules/module_29432.c +++ b/src/modules/module_29432.c @@ -207,7 +207,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29433.c b/src/modules/module_29433.c index 16d39fa1c..2677f83bf 100644 --- a/src/modules/module_29433.c +++ b/src/modules/module_29433.c @@ -221,7 +221,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29441.c b/src/modules/module_29441.c index 44db4ff81..462f15f1f 100644 --- a/src/modules/module_29441.c +++ b/src/modules/module_29441.c @@ -222,7 +222,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29442.c b/src/modules/module_29442.c index d47c16b3f..7fca2caf2 100644 --- a/src/modules/module_29442.c +++ b/src/modules/module_29442.c @@ -222,7 +222,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29443.c b/src/modules/module_29443.c index bc09e12f0..045cd69e9 100644 --- a/src/modules/module_29443.c +++ b/src/modules/module_29443.c @@ -222,7 +222,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29451.c b/src/modules/module_29451.c index 01a955fa4..77edae796 100644 --- a/src/modules/module_29451.c +++ b/src/modules/module_29451.c @@ -239,7 +239,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29452.c b/src/modules/module_29452.c index b77ff6145..1a5f0a57a 100644 --- a/src/modules/module_29452.c +++ b/src/modules/module_29452.c @@ -239,7 +239,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29453.c b/src/modules/module_29453.c index 171c61373..85c196783 100644 --- a/src/modules/module_29453.c +++ b/src/modules/module_29453.c @@ -239,7 +239,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29461.c b/src/modules/module_29461.c index 301d2dada..be68d14af 100644 --- a/src/modules/module_29461.c +++ b/src/modules/module_29461.c @@ -241,7 +241,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29462.c b/src/modules/module_29462.c index 409384d8e..8bcfccbe4 100644 --- a/src/modules/module_29462.c +++ b/src/modules/module_29462.c @@ -241,7 +241,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29463.c b/src/modules/module_29463.c index d1dcd3d80..57b5a9595 100644 --- a/src/modules/module_29463.c +++ b/src/modules/module_29463.c @@ -241,7 +241,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29471.c b/src/modules/module_29471.c index 4b1852559..f5c3d0dbb 100644 --- a/src/modules/module_29471.c +++ b/src/modules/module_29471.c @@ -230,7 +230,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29472.c b/src/modules/module_29472.c index 8a7a20d15..802e2fe6b 100644 --- a/src/modules/module_29472.c +++ b/src/modules/module_29472.c @@ -230,7 +230,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29473.c b/src/modules/module_29473.c index 4e2345011..f73d6eaeb 100644 --- a/src/modules/module_29473.c +++ b/src/modules/module_29473.c @@ -236,7 +236,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29481.c b/src/modules/module_29481.c index 55d0b84c6..b34680b41 100644 --- a/src/modules/module_29481.c +++ b/src/modules/module_29481.c @@ -232,7 +232,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29482.c b/src/modules/module_29482.c index 6e784d9a6..563e2b5ca 100644 --- a/src/modules/module_29482.c +++ b/src/modules/module_29482.c @@ -232,7 +232,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); } diff --git a/src/modules/module_29483.c b/src/modules/module_29483.c index c6162d306..aae79913b 100644 --- a/src/modules/module_29483.c +++ b/src/modules/module_29483.c @@ -232,7 +232,7 @@ int module_hash_decode (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSE // fake digest - memcpy (digest, vc->data_buf, 112); + memcpy (digest, vc->data_buf, sizeof(vc->data_buf)); return (PARSER_OK); }