Fix issue recording OOXML document metadata

The ZIP single record search feature is used to find specific files when
parsing OOXML documents. I observed that the core properties for a
PowerPoint file were missing in a test as compared with the previous
release.

The error handling check for the unzip search returns CL_VIRUS when
there is a match, not CL_SUCCESS!

CLAM-2886
This commit is contained in:
Val S. 2025-10-09 21:27:18 -04:00
parent b720cfaaca
commit 00033e92b5
No known key found for this signature in database
GPG key ID: 3A7D293D8274CA1B

View file

@ -2109,7 +2109,7 @@ cl_error_t unzip_search_single(cli_ctx *ctx, const char *name, size_t nlen, uint
// Search for the zip file entry in the current layer.
status = unzip_search(ctx, &requests);
if (CL_SUCCESS == status) {
if (CL_VIRUS == status) {
*loff = requests.loff;
}