... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Thu Feb 28 13:55:04 EDT 2013 (dar) |
|
2 |
+------------------------------------ |
|
3 |
+ * libclamav/pe_icons.c: introduce LOGPARSEICONDETAILS define to reduce parseicon logging in default build |
|
4 |
+ |
|
1 | 5 |
Wed Feb 20 10:05:00 EDT 2012 (multiple) |
2 | 6 |
--------------------------------- |
3 | 7 |
* Bug reported by Felix Groebert, Mateusz Jurczyk and Gynvael Coldwind of the |
... | ... |
@@ -38,6 +38,8 @@ |
38 | 38 |
#define LABDIFF(x) labdiff2(x) |
39 | 39 |
#endif |
40 | 40 |
|
41 |
+/* #define LOGPARSEICONDETAILS */ |
|
42 |
+ |
|
41 | 43 |
struct GICONS { |
42 | 44 |
unsigned int cnt; |
43 | 45 |
uint32_t lastg; |
... | ... |
@@ -1498,6 +1500,7 @@ static int parseicon(icon_groupset *set, uint32_t rva, cli_ctx *ctx, struct cli_ |
1498 | 1498 |
} else |
1499 | 1499 |
confidence = (color + (gray + bright + noedge)*2/3 + dark + edge + colors) / 6; |
1500 | 1500 |
|
1501 |
+#ifdef LOGPARSEICONDETAILS |
|
1501 | 1502 |
cli_dbgmsg("parseicon: edge confidence: %u%%\n", edge); |
1502 | 1503 |
cli_dbgmsg("parseicon: noedge confidence: %u%%\n", noedge); |
1503 | 1504 |
if(!bwmatch) { |
... | ... |
@@ -1508,6 +1511,7 @@ static int parseicon(icon_groupset *set, uint32_t rva, cli_ctx *ctx, struct cli_ |
1508 | 1508 |
cli_dbgmsg("parseicon: dark confidence: %u%%\n", dark); |
1509 | 1509 |
if(!bwmatch) |
1510 | 1510 |
cli_dbgmsg("parseicon: spread confidence: red %u%%, green %u%%, blue %u%% - colors %u%%\n", reds, greens, blues, ccount); |
1511 |
+#endif |
|
1511 | 1512 |
|
1512 | 1513 |
if(confidence >= positivematch) { |
1513 | 1514 |
cli_dbgmsg("confidence: %u\n", confidence); |