From 287d8d830f3e870054ff10d4116ae4dc5b1bcc1f Mon Sep 17 00:00:00 2001 From: Micah Snyder Date: Wed, 24 Jul 2024 11:39:11 -0400 Subject: [PATCH] tests: Fix issue when path to unrar module is very long If the LD_LIBRARY_PATH for libclamunrar_iface longer than 128 chars, it may be truncated and fail to load the RAR module. --- libclamav/others.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libclamav/others.c b/libclamav/others.c index 79fd2c122a..e4b19a0955 100644 --- a/libclamav/others.c +++ b/libclamav/others.c @@ -97,7 +97,7 @@ static int is_rar_inited = 0; static void *load_module(const char *name, const char *featurename) { HMODULE rhandle = NULL; - char modulename[128]; + char modulename[512]; size_t i; /* @@ -156,7 +156,7 @@ static void *load_module(const char *name, const char *featurename) char *ld_library_path = NULL; const char *err; - char modulename[128]; + char modulename[512]; size_t i; /*