Commit Graph

84 Commits (c637de532b790aede5f338ab41e1055a7cdc84ac)

Author SHA1 Message Date
Micah Snyder 07a66adc75 Fix bug added in previous patch, fixup unit tests to use newly added sanitized_basename parameter. 5 years ago
Micah Snyder 860764eb16 Heuristic macro detection for imp VBA extraction 5 years ago
Micah Snyder (micasnyd) 407407c98c clamd clients: Mitigate move/remove symlink attack 5 years ago
Micah Snyder 053ce64c6f Reduce likelihood of tmp file name collisions 5 years ago
Micah Snyder c110392780 Change permission for new tmp files from RWX to RW 5 years ago
Micah Snyder 005cbf5a37 Record names of extracted files 5 years ago
Micah Snyder 9f2de39e04 New tmp sub-dir per scan; JSON meta improvements 5 years ago
Micah Snyder 206dbaefe8 Update copyright dates for 2020 5 years ago
Micah Snyder 03a5c6819d bb12391: Fixes error handling of cli_readn() in cli_filecopy(), preventing possible infinite loop. 6 years ago
arlecchino e0d29ffb58 Bug 12385 - MAX_PATH and PATH_MAX mismatch 6 years ago
Micah Snyder bcb4505e60 bb12370 - cli_strndup and other str* replacements must be built and exported for every OS to be used outside of libclamav on systems that don't have the original functions (e.g. strndup). This commit renames the macros to be uppercase, renames the replacement functions to be preceeded with two understores (e.g. __cli_strndup), and removes the ifdef's so that they are built regardless, because there are no ifdefs in libclamav.map. 6 years ago
Micah Snyder db8c65fc55 Correction to temp name generator when prefix is used to remove possible leak of malloced string where length is 0. 6 years ago
Micah Snyder 4524c398f3 Argument and return types for fmap_readn(), cli_writen(), cli_readn() converted to use size_t instead of int. 6 years ago
Micah Snyder 5f4f69102d Correcting types from int to cl_error_t where appropriate. Eliminating unused variables and referencing unused parameters to remove warnings. 6 years ago
Micah Snyder (micasnyd) 1c996e8872 bb12238 - Removing support for deprecated readdir_r() function. The readdir() function is thread safe so long as you don't share a dir object between threads. If you do, it requires a mutex. 6 years ago
Micah Snyder 155eaaad8b bb12284 - Fix to prevent path traversal when using cli_genfname() to generate filenames that may retain path and filename information. Changed scanrar so that it will no longer retain path information for extracted files. 6 years ago
Micah Snyder 479a9a235a Fixes for issues identified by coverity. 6 years ago
Micah Snyder 52cddcbcfd Updating and cleaning up copyright notices. 6 years ago
Micah Snyder (micasnyd) 2b5c743d1e bb12232: Message should have been printed at the debug level instead of error level. 6 years ago
Micah Snyder b3e82e5e61 Replacing libclamav/cltypes.h with clamav-types.h.in, which generates a header clamav-types.h that we install alongside clamav.h. 6 years ago
Micah Snyder 72fd33c8b2 clang-format'd using new .clang-format rules. 6 years ago
Micah Snyder 9ad37622ae Fixing variable name in #else condition that broke the build on freebsd, other non-linux, non-mac, non-windows os's. 7 years ago
Micah Snyder (micasnyd) fef94048c8 bb12220: Converting strnlen() calls to cli_strnlen() for systems such as Solaris 10 where strnlen() is not available. Adding #else clause to cli_get_filepath_from_filedesc() for platforms where we have not implemented a mechanism to determine the filename from the file descriptor. 7 years ago
Micah Snyder 9739293e54 Removing unRAR SFX Check from scanners.c. Flawed feature was skipping scans of files in RAR archives that had the same CRC in the RAR file entry header as a previously scanned entry. Archives CRC's cannot be trusted. Removing the SFX Check eliminated false negatives in regression testing. 7 years ago
Micah Snyder d39cb6581f Updating libclamunrar from legacy C implementation to modern unrar 5.6.5. API changes and supporting changes included to pass the filepath of the scanned file into libclamav through the cli_ctx structure, required by the unrar library to open archives. The filename argument may be optional for the scandesc scanning variant, but libclamav will make a best effort to identify the filename from the file descriptor if it was not provided. In addition, included the ability to prefix temp file and directory names with file basenames. 7 years ago
Micah Snyder 964a1e7321 Converting http urls to https urls. Primary focus was on clamav.net urls. I updated a couple others and fixes a few broken links as well. There are many (non-clamav.net) urls I didn't address, especially in 3rd party or contrib code. 7 years ago
Mickey Sola 47a544dc07 m4 - rework of strndup and strnlen function absence handling 8 years ago
Mickey Sola cd7c9a4fb7 solaris - adding strnlen and strndup implementations to ensure compatability with versions <= 10 8 years ago
Kevin Lin 67f8441d5e implement cli_strndup and cli_mpool_strndup 9 years ago
Mickey Sola 46a35abe56 mass update of copyright headers 10 years ago
Shawn Webb cd94be7a52 Silence a bunch of compiler warnings in libclamav 11 years ago
Shawn Webb 60d8d2c352 Move all the crypto API to clamav.h 11 years ago
Shawn Webb b2e7c931d0 Use OpenSSL for hashing. 11 years ago
David Raynor d01f5c8dc5 libclamav: tweak to cli_gentempfd() 12 years ago
David Raynor 0c3e220311 bb #9537: small tweak to cli_strerror 12 years ago
Steve Morgan b89ebf3cfb bb8209 moves perror()'s 12 years ago
Shawn Webb 3ca11170c7 bb#8847 - ClamAV 0.97.x - 0.98 fail to match mdb signatures 12 years ago
Shawn Webb d9b6b8c757 bb#8993 - Rename the STAT macro to CLAMSTAT to avoid name conflicts on AIX 12 years ago
David Raynor 7afc0a61cf cli_ftw: properly handle continue from callback, cid #10331 12 years ago
Shawn Webb 81b740ad08 Fix debug output of authenticode certs 13 years ago
Shawn webb 36916f79ad bb#5724 - temporary files get detected by AVG heuristics 13 years ago
Shawn webb a2a004df25 BB#3737 - Value too large for specified data type 13 years ago
Shawn webb b2c04b6c28 BB#5449 13 years ago
Török Edvin 47aae0e47b Fix broken return value check on Win32. 14 years ago
Török Edvin 601d635c4b fix win32 build 14 years ago
Török Edvin f53a115ee5 libclamav: make sure TLS key is initializer (bb #2588) 14 years ago
Török Edvin a42f48819a fix --disable-pthreads build. 15 years ago
Török Edvin 0d79b7dc17 Set TLS key to NULL after scan is done (bb #2353). 15 years ago
Török Edvin 769f37a6f6 Default off, you can turn on via 'DevLiblog'. 15 years ago
Török Edvin 772144a9fa Return -1 if cli_filecopy fails on win32. 15 years ago