Skip to content

Conversation

val-ms
Copy link
Contributor

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

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