mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 10:23:17 +00:00
show infomsg for bytecode number -> bytecode name mapping in test mode.
This allows you to find out which bytecode is causing the errors.
This commit is contained in:
parent
a15fc904ed
commit
3ccff6f29c
1 changed files with 2 additions and 0 deletions
|
@ -1468,6 +1468,8 @@ static int cli_loadcbc(FILE *fs, struct cl_engine *engine, unsigned int *signo,
|
|||
return CL_SUCCESS;
|
||||
}
|
||||
bc->id = bcs->count;/* must set after _load, since load zeroes */
|
||||
if (engine->bytecode_mode == CL_BYTECODE_MODE_TEST)
|
||||
cli_infomsg(NULL, "bytecode %u -> %s\n", bc->id, dbname);
|
||||
sigs++;
|
||||
if (bc->kind == BC_LOGICAL || bc->lsig) {
|
||||
unsigned oldsigs = sigs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue