Skip to content

libclamav: Fix issue scanning with no signatures loaded - #1560

Merged
val-ms merged 1 commit into
Cisco-Talos:mainfrom
val-ms:CLAM-2856-oss-fuzz-targets-broken
Aug 28, 2025
Merged

val-ms merged 1 commit into
Cisco-Talos:mainfrom
val-ms:CLAM-2856-oss-fuzz-targets-broken

Conversation

@val-ms

@val-ms val-ms commented Aug 26, 2025

Copy link
Copy Markdown
Contributor

If the application never calls cl_load(), then the clean-cache is never initialized. That is a legitimate mode to run in when perhaps we just want to extract stuff, record metadata, or for fuzzing.

This commit adds a check if the ctx->engine->cache is NULL. If it is, then we treat it as though caching is disabled.

CLAM-2856

If the application never calls `cl_load()`, then the clean-cache is
never initialized. That is a legitimate mode to run in when perhaps we
just want to extract stuff, record metadata, or for fuzzing.

This commit adds a check if the ctx->engine->cache is NULL. If it is,
then we treat it as though caching is disabled.

CLAM-2856
@val-ms
val-ms requested a review from jhumlick August 26, 2025 23:05
@val-ms
val-ms merged commit c11ac06 into Cisco-Talos:main Aug 28, 2025
22 of 24 checks passed
@val-ms
val-ms deleted the CLAM-2856-oss-fuzz-targets-broken branch August 28, 2025 14:31
jhumlick pushed a commit to jhumlick/clamav that referenced this pull request Nov 4, 2025
…1560)

If the application never calls `cl_load()`, then the clean-cache is
never initialized. That is a legitimate mode to run in when perhaps we
just want to extract stuff, record metadata, or for fuzzing.

This commit adds a check if the ctx->engine->cache is NULL. If it is,
then we treat it as though caching is disabled.

CLAM-2856
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