Skip to content

Commit

Permalink
Addressing feedback from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ragusaa committed Jul 18, 2024
1 parent 8375187 commit f9b0b1a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clamscan/manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -1558,7 +1558,7 @@ int scanmanager(const struct optstruct *opts)
}

if (optget(opts, "json-store-html-urls")->enabled) {
options.general |= CL_SCAN_STORE_HTML_URLS;
options.general |= CL_SCAN_GENERAL_STORE_HTML_URLS;
}

/* TODO: Remove deprecated option in a future feature release */
Expand Down
2 changes: 1 addition & 1 deletion libclamav/clamav.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ struct cl_scan_options {
#define CL_SCAN_GENERAL_HEURISTICS 0x4 /* option to enable heuristic alerts */
#define CL_SCAN_GENERAL_HEURISTIC_PRECEDENCE 0x8 /* allow heuristic match to take precedence. */
#define CL_SCAN_GENERAL_UNPRIVILEGED 0x10 /* scanner will not have read access to files. */
#define CL_SCAN_GENERAL_STORE_HTML_URLS 0x4000 /* Store urls found in html <a and <form tags*/

/* parsing capabilities options */
#define CL_SCAN_PARSE_ARCHIVE 0x1
Expand Down Expand Up @@ -198,7 +199,6 @@ struct cl_scan_options {
#define CL_SCAN_HEURISTIC_STRUCTURED_SSN_STRIPPED 0x800 /* alert when detecting stripped social security numbers */
#define CL_SCAN_HEURISTIC_STRUCTURED_CC 0x1000 /* alert when detecting credit card numbers */
#define CL_SCAN_HEURISTIC_BROKEN_MEDIA 0x2000 /* alert if a file does not match the identified file format, works with JPEG, TIFF, GIF, PNG */
#define CL_SCAN_STORE_HTML_URLS 0x4000 /* Store urls found in html <a and <form tags*/

/* mail scanning options */
#define CL_SCAN_MAIL_PARTIAL_MESSAGE 0x1
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_GENERAL_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

0 comments on commit f9b0b1a

Please sign in to comment.