mirror of
https://github.com/VirusTotal/yara.git
synced 2026-10-12 02:10:00 +00:00
Finally fix #1874.
This commit is contained in:
@@ -874,14 +874,7 @@ const char *hash2(
|
||||
tmp.checksum[k] = swap_byte(impl->lsh_bin.checksum[k]);
|
||||
}
|
||||
tmp.lvalue = swap_byte(impl->lsh_bin.lvalue);
|
||||
|
||||
#if defined(WORDS_BIGENDIAN)
|
||||
// In big endian architectures swapping the bytes is not necessary, as they
|
||||
// are already swapped. See: https://github.com/VirusTotal/yara/issues/1874
|
||||
tmp.Q.qb = impl->lsh_bin.Q.qb;
|
||||
#else
|
||||
tmp.Q.qb = swap_byte(impl->lsh_bin.Q.qb);
|
||||
#endif
|
||||
|
||||
for (int i = 0; i < CODE_SIZE; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user