Commit Graph

71 Commits (ca8b4c466e5f1deab207868740333930a51fdf7f)

Author SHA1 Message Date
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
Török Edvin 94de6a9a1a Introduce cli_infomsg (rev) 15 years ago
Török Edvin 52000eadad Fix typo (bb #2060). 15 years ago
Török Edvin f61508be76 compare both components of size. 15 years ago
Török Edvin 5475ec2a72 Don't attempt to allocate 0 bytes (bb #2042). 15 years ago
Török Edvin cbb9db1941 Fix some error path leaks (bb #1990). 15 years ago
aCaB 48ce55cf89 don't trim double trailing slashes on win32 15 years ago
Török Edvin 7e98915f9b cli_ftw: when readdir fails, call the error callback (bb #1735). 16 years ago
Tomasz Kojm 424d41d344 libclamav: replace qsort implementation and optimize its common usage (bb#1721) 16 years ago
Tomasz Kojm 28ee642d36 s/random/rand 16 years ago
Tomasz Kojm 6e089598f0 use random() in the second srand() 16 years ago
Török Edvin 727e05603d Fix error path leak (bb #1711). 16 years ago
aCaB 11195c0b1b fix several problems introduced by the win32 commits 16 years ago
aCaB a7e259b528 fix in cli_is_abspath 16 years ago