Skip to content

Commit

Permalink
Added complete list of URIs
Browse files Browse the repository at this point in the history
  • Loading branch information
ragusaa committed Jun 25, 2024
1 parent 73a2786 commit 06bb01e
Show file tree
Hide file tree
Showing 3 changed files with 419 additions and 31 deletions.
3 changes: 0 additions & 3 deletions libclamav/htmlnorm.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@ static inline void html_tag_contents_append(struct tag_contents *cont, const uns
uint32_t mbchar = 0;
if (!begin || !end)
return;

for (i = cont->pos; i < MAX_TAG_CONTENTS_LENGTH && (begin < end); i++) {
uint8_t c = *begin++;
if (mbchar && (c < 0x80 || mbchar >= 0x10000)) {
Expand Down Expand Up @@ -688,7 +687,6 @@ static bool cli_html_normalise(cli_ctx *ctx, int fd, m_area_t *m_area, const cha
uint32_t mbchar = 0;
uint32_t mbchar2 = 0;


/*
* Initialize stack buffers.
*/
Expand Down Expand Up @@ -1931,7 +1929,6 @@ static bool cli_html_normalise(cli_ctx *ctx, int fd, m_area_t *m_area, const cha
cli_js_destroy(js_state);
js_state = NULL;
}

html_tag_arg_free(&tag_args);
if (!m_area) {
fclose(stream_in);
Expand Down
2 changes: 1 addition & 1 deletion libclamav/others.h
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ extern LIBCLAMAV_EXPORT int have_rar;
#define SCAN_HEURISTICS (ctx->options->general & CL_SCAN_GENERAL_HEURISTICS)
#define SCAN_HEURISTIC_PRECEDENCE (ctx->options->general & CL_SCAN_GENERAL_HEURISTIC_PRECEDENCE)
#define SCAN_UNPRIVILEGED (ctx->options->general & CL_SCAN_GENERAL_UNPRIVILEGED)
#define STORE_HTML_URLS (ctx->options->general & CL_SCAN_STORE_HTML_URLS)
#define STORE_HTML_URLS (ctx->options->general & CL_SCAN_STORE_HTML_URLS)

#define SCAN_PARSE_ARCHIVE (ctx->options->parse & CL_SCAN_PARSE_ARCHIVE)
#define SCAN_PARSE_ELF (ctx->options->parse & CL_SCAN_PARSE_ELF)
Expand Down
Loading

0 comments on commit 06bb01e

Please sign in to comment.