Skip to content

Conversation

@jhumlick
Copy link
Contributor

The regex parsing code converted the return code of anything that did not return CL_SUCCESS to CL_EMEM in several places, resulting in a return code indicative of a malformed database returning a memory error instead. This change passes the real return code up the chain and also prevents trying to realloc 0 bytes when we don't have anything to realloc due to a malformed database.

CLAM-2191

The regex parsing code treated anything that did not return CL_SUCCESS
as CL_EMEM in several places, resulting in a return code indicative of a
malformed database returning a memory error instead. This change passes
the real return code up the chain, and also prevents trying to realloc 0
bytes when we don't have anything to realloc due to a malformed
database.

CLAM-2191
@jhumlick jhumlick requested a review from val-ms November 21, 2025 00:08
@jhumlick jhumlick self-assigned this Nov 21, 2025
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.

1 participant