git-svn: trunk@3210
aCaB authored on 2007/09/08 21:59:57... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Sat Sep 8 14:08:54 CEST 2007 (acab) |
|
2 |
+------------------------------------ |
|
3 |
+ * libclamav/pe.c: wrap in paretheses - bb#656, part 1/2 |
|
4 |
+ |
|
1 | 5 |
Fri Sep 7 15:28:54 CEST 2007 (tk) |
2 | 6 |
---------------------------------- |
3 | 7 |
* libclamav, clamd, clamscan: move hardware acceleration code to |
... | ... |
@@ -864,7 +864,7 @@ int cli_scanpe(int desc, cli_ctx *ctx) |
864 | 864 |
const char *pt = cli_memstr(epbuff, 4040, "\x47\x65\x74\x50\x72\x6f\x63\x41\x64\x64\x72\x65\x73\x73\x00", 15); |
865 | 865 |
if(pt) { |
866 | 866 |
pt += 15; |
867 |
- if( (uint32_t)cli_readint32(pt) ^ (uint32_t)cli_readint32(pt + 4) == 0x505a4f && (uint32_t)cli_readint32(pt + 8) ^ (uint32_t)cli_readint32(pt + 12) == 0xffffb && (uint32_t)cli_readint32(pt + 16) ^ (uint32_t)cli_readint32(pt + 20) == 0xb8) { |
|
867 |
+ if((((uint32_t)cli_readint32(pt) ^ (uint32_t)cli_readint32(pt + 4)) == 0x505a4f) && (((uint32_t)cli_readint32(pt + 8) ^ (uint32_t)cli_readint32(pt + 12)) == 0xffffb) && (((uint32_t)cli_readint32(pt + 16) ^ (uint32_t)cli_readint32(pt + 20)) == 0xb8)) { |
|
868 | 868 |
*ctx->virname = "W32.Parite.B"; |
869 | 869 |
free(exe_sections); |
870 | 870 |
return CL_VIRUS; |