Skip to content

Clam 1651 #3 Fix leak loading malformed CFG database#533

Merged
val-ms merged 2 commits intoCisco-Talos:mainfrom
ragusaa:CLAM-1651-cfg
May 31, 2022
Merged

Clam 1651 #3 Fix leak loading malformed CFG database#533
val-ms merged 2 commits intoCisco-Talos:mainfrom
ragusaa:CLAM-1651-cfg

Conversation

@ragusaa
Copy link
Contributor

@ragusaa ragusaa commented Apr 6, 2022

@val-ms
Copy link
Contributor

val-ms commented May 27, 2022

Rebased to see it go through testing.

@val-ms val-ms self-requested a review May 27, 2022 23:54
@val-ms val-ms changed the title Fix for clusterfuzz-testcase-minimized-clamav_dbload_CFG_fuzzer-49028… Clam 1651 #2 Fix leak loading malformed CFG and FTM databases May 28, 2022
@val-ms val-ms changed the title Clam 1651 #2 Fix leak loading malformed CFG and FTM databases Clam 1651 #3 Fix leak loading malformed CFG database May 28, 2022
if (engine->bcs.all_bcs) {
for (i = 0; i < engine->bcs.count; i++) {
cli_bytecode_destroy(&engine->bcs.all_bcs[i]);
if (engine->dconf->bytecode & BYTECODE_ENGINE_MASK) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this if-statement is needed.
Any changes here should be mirrored above where we do the tasks_to_do += stuff.

@val-ms
Copy link
Contributor

val-ms commented May 29, 2022

I pushed the suggested fixes myself, since it was hard to describe.

@val-ms val-ms merged commit ceed5e1 into Cisco-Talos:main May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants