From 2ade70047f1d9224259bafe0bda597113ec3ec43 Mon Sep 17 00:00:00 2001 From: Micah Snyder Date: Wed, 24 Apr 2024 12:47:18 -0400 Subject: [PATCH] Silence confusing HTML parser warning message --- libclamav/htmlnorm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libclamav/htmlnorm.c b/libclamav/htmlnorm.c index 4c1ef93a04..edd1bc00d7 100644 --- a/libclamav/htmlnorm.c +++ b/libclamav/htmlnorm.c @@ -1194,7 +1194,7 @@ static bool cli_html_normalise(cli_ctx *ctx, int fd, m_area_t *m_area, const cha style_end = ptr - strlen(""); if (style_end < style_begin) { - cli_errmsg("cli_html_normalise: style chunk size underflow\n"); + cli_dbgmsg("cli_html_normalise: style chunk size underflow\n"); goto done; } @@ -1830,7 +1830,7 @@ static bool cli_html_normalise(cli_ctx *ctx, int fd, m_area_t *m_area, const cha if (in_tag == TAG_STYLE) { if (ptr < style_begin) { - cli_errmsg("cli_html_normalise: style chunk size underflow\n"); + cli_dbgmsg("cli_html_normalise: style chunk size underflow\n"); goto done; } @@ -1882,7 +1882,7 @@ static bool cli_html_normalise(cli_ctx *ctx, int fd, m_area_t *m_area, const cha } if (style_buff != NULL) { - // Found contents of block. + // Found contents of block. // Search it for images embedded in the CSS. cl_error_t ret = html_style_block_handler(ctx, (const char *)style_buff); if (CL_SUCCESS != ret) {