From 9f71dbfc61880d6d3a36ea8bf10b6c9275ee942f Mon Sep 17 00:00:00 2001 From: RainRat Date: Fri, 17 Nov 2023 14:37:22 -0800 Subject: [PATCH] Update regex_suffix.c cli_regex2suffix incorrect memset use --- libclamav/regex_suffix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libclamav/regex_suffix.c b/libclamav/regex_suffix.c index 6161413467..a089df47c9 100644 --- a/libclamav/regex_suffix.c +++ b/libclamav/regex_suffix.c @@ -511,7 +511,7 @@ cl_error_t cli_regex2suffix(const char *pattern, regex_t *preg, suffix_callback goto done; } memset(&buf, 0, sizeof(buf)); - memset(&root_node, 0, sizeof(buf)); + memset(&root_node, 0, sizeof(root_node)); n->parent = &root_node; rc = build_suffixtree_descend(n, &buf, cb, cbdata, ®ex);