... | ... |
@@ -25,11 +25,6 @@ |
25 | 25 |
#define CLI_DEFAULT_AC_MAXDEPTH 3 |
26 | 26 |
#define CLI_DEFAULT_AC_TRACKLEN 8 |
27 | 27 |
|
28 |
-#define CLI_DEFAULT_MOVETOAC_LEN 8 /* all static sigs shorter than |
|
29 |
- * this value will automatically |
|
30 |
- * go to AC instead of BM |
|
31 |
- */ |
|
32 |
- |
|
33 | 28 |
#define CLI_DEFAULT_LSIG_BUFSIZE 32768 |
34 | 29 |
#define CLI_DEFAULT_DBIO_BUFSIZE CLI_DEFAULT_LSIG_BUFSIZE + 1 |
35 | 30 |
|
... | ... |
@@ -246,7 +246,7 @@ int cli_parse_add(struct cli_matcher *root, const char *virname, const char *hex |
246 | 246 |
free(pt); |
247 | 247 |
} |
248 | 248 |
|
249 |
- } else if(root->ac_only || type || lsigid /* || (hexlen / 2 < CLI_DEFAULT_MOVETOAC_LEN) FIXME: unit tests */ || strpbrk(hexsig, "?(") || (root->bm_offmode && (!strcmp(offset, "*") || strchr(offset, ',')))) { |
|
249 |
+ } else if(root->ac_only || type || lsigid || strpbrk(hexsig, "?(") || (root->bm_offmode && (!strcmp(offset, "*") || strchr(offset, ',')))) { |
|
250 | 250 |
if((ret = cli_ac_addsig(root, virname, hexsig, 0, 0, 0, rtype, type, 0, 0, offset, lsigid, options))) { |
251 | 251 |
cli_errmsg("cli_parse_add(): Problem adding signature (3).\n"); |
252 | 252 |
return ret; |
... | ... |
@@ -322,7 +322,7 @@ static int cli_initroots(struct cl_engine *engine, unsigned int options) |
322 | 322 |
} |
323 | 323 |
} |
324 | 324 |
} |
325 |
- /* engine->root[1]->bm_offmode = 1; */ /* BM offset mode for PE files */ |
|
325 |
+ engine->root[1]->bm_offmode = 1; /* BM offset mode for PE files */ |
|
326 | 326 |
return CL_SUCCESS; |
327 | 327 |
} |
328 | 328 |
|