mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 10:23:17 +00:00
Compare commits
10 commits
e98b0075e6
...
82a321a589
Author | SHA1 | Date | |
---|---|---|---|
![]() |
82a321a589 | ||
![]() |
4395c4bac1 | ||
![]() |
1b96e96c5c | ||
![]() |
f184a1e776 | ||
![]() |
f7e9c511fc | ||
![]() |
97f89f43e7 | ||
![]() |
045a809645 | ||
![]() |
ea2ad8c879 | ||
![]() |
90949e434f | ||
![]() |
92b4a3e291 |
2 changed files with 573 additions and 429 deletions
992
Cargo.lock
generated
992
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -534,9 +534,15 @@ static cl_error_t cli_scanrar(cli_ctx *ctx)
|
|||
int tmpfd = -1;
|
||||
|
||||
#ifdef _WIN32
|
||||
if ((SCAN_UNPRIVILEGED) || (NULL == ctx->fmap->path) || (0 != _access_s(ctx->fmap->path, R_OK))) {
|
||||
if ((SCAN_UNPRIVILEGED) ||
|
||||
(NULL == ctx->fmap->path) ||
|
||||
(0 != _access_s(ctx->fmap->path, R_OK)) ||
|
||||
(ctx->fmap->nested_offset > 0) || (ctx->fmap->len < ctx->fmap->real_len)) {
|
||||
#else
|
||||
if ((SCAN_UNPRIVILEGED) || (NULL == ctx->fmap->path) || (0 != access(ctx->fmap->path, R_OK))) {
|
||||
if ((SCAN_UNPRIVILEGED) ||
|
||||
(NULL == ctx->fmap->path) ||
|
||||
(0 != access(ctx->fmap->path, R_OK)) ||
|
||||
(ctx->fmap->nested_offset > 0) || (ctx->fmap->len < ctx->fmap->real_len)) {
|
||||
#endif
|
||||
/* If map is not file-backed have to dump to file for scanrar. */
|
||||
status = fmap_dump_to_file(ctx->fmap, ctx->fmap->path, ctx->this_layer_tmpdir, &tmpname, &tmpfd, 0, SIZE_MAX);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue