Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
May 31, 2022

Conversation

ragusaa
Copy link
Contributor

@ragusaa ragusaa commented Apr 6, 2022

@micahsnyder
Copy link
Contributor

Rebased to see it go through testing.

@micahsnyder micahsnyder self-requested a review May 27, 2022 23:54
@micahsnyder micahsnyder 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
@micahsnyder micahsnyder 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
libclamav/readdb.c Outdated Show resolved Hide resolved
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.

libclamav/readdb.c Outdated Show resolved Hide resolved
libclamav/readdb.c Outdated Show resolved Hide resolved
@micahsnyder
Copy link
Contributor

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

@micahsnyder micahsnyder 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