Commit Graph

27 Commits (2e55c901b1b0571a340602ee2681255876f63f1a)

Author SHA1 Message Date
micasnyd d70adcb8b0 Fix ability to disable filesize limit with libclamav C API 4 years ago
Micah Snyder db013a2bfd libclamav: Fix scan recursion tracking 4 years ago
Micah Snyder 9b9999d778 Rename core scanning functions 6 years ago
Micah Snyder 005cbf5a37 Record names of extracted files 6 years ago
Micah Snyder ae3aede6ff Fix for bad format string, identified by coverity. 6 years ago
Micah Snyder 72fd33c8b2 clang-format'd using new .clang-format rules. 6 years ago
Micah Snyder 7b563ca798 Enabling configure option --with-system-libmspack that will allow use of libmspack installations in /usr or /usr/local in favor of the version provided by ClamAV. 7 years ago
Micah Snyder 4010925608 Re-applying libmspack adjustments to extract and scan files from archives that are non-standard and may appear to be corrupted or may in fact be corrupted. Differences from previous implementation: Fewer debug log messages. No normalization of filenames found in CAB archives. Implemented new param that enabled the best-effort attempt to extract possibly malformed archives. Used set_param() to enabled the FIXMSZIP option where it was previously hardcoded. Opted to provide the -Wno-unused-parameter CFLAG to the compiler in place of explicitely indicating unused parameters in each function. Omitted changes to mszipd.c and also omitted quantum decompression (qtmd.c) infinite loop protection because it appears to have been fixed in the newer libmspack. 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 d7979d4ff7 Restructured scan options flags from a single bitflag field to a structure containing multiple bitflag fields. This also required adding a new function to the bytecode API to get scan options a la carte, and modifying the existing function to hand back scan options in the old/deprecated uint32_t bitflag format. Re-generated bytecode iface header files. 7 years ago
Micah Snyder 6289eda8e0 Eliminating AUTHORS file, and moving acknowledgements for various source code contributions to the file comment blocks for the individual files, as appropriate. 8 years ago
Micah Snyder 927b2bab17 bb11992: cleaning up some variable initialization. 8 years ago
Micah Snyder 8dbf92a40f Adding some debug strings for cab parsing that existed in 0.99.2. Adding code that sterilizes garbage data that is read in as a string so it is not output to stderr when --debug is enabled. 8 years ago
Micah Snyder 0cf59dddb3 eliminating warning for redefinition, correcting end of dbg buffer newline line. 8 years ago
Micah Snyder 520b0fd317 updating max cab size t 64k as was in old implementation, even though it's technically higher than the spec. adding back size checks. adding fix to mspack_fmap_alloc to zero the mem. 8 years ago
Mickey Sola c21235eb56 Ensuring mspack file handle is zeroed out after allocation and only closed if it exists 8 years ago
Micah Snyder d731a939ba fixed uninitized variable that valgrind picked up in centos 6.8 8 years ago
Micah Snyder 7cc40cba8b initializing error code to zero, fixing mspack_fmap_message so it has a new line character and will print fmt strings correctly 8 years ago
Micah Snyder 87c800a746 initializing file->folder to NULL to prevent accidental segfaults and valgrind complaints. adding correction to mspack_fmap_message() so it will correctly print format strings. 8 years ago
Micah Snyder e09d884341 eliminated a large number of warnings, many of which had to do with mixing types. i switched some types to size_t and a couple to ptrdiff_t to make things more consistent, but there is a huge amount of work to be done to make types consistent. int, unsigned int, unsigned, off_t, and other types are ill-suited to storing buffer lengths or memory addresses. 8 years ago
Mickey Sola dd0df814c2 mspack - continue analysis on bad formatting 9 years ago
Mickey Sola 7baf7901a1 fixing compilation of LFS for 32-bit systems 9 years ago
Mickey Sola a83773682e fixing potential OOB window write when unpacking chm files 9 years ago
Mickey Sola 42d04d2c81 bb11062 - removing unnecessary include of mspack's system.h 9 years ago
Mickey Sola 3a639e63cd bb11062 - convert use of fseeko and ftello functions to meet vs2015 compatibility 9 years ago
Mickey Sola 11dbd4361d bb11062 - modifying libmspack.c macros and casts for VS 2015 compatibility 9 years ago
Mickey Sola d3699d5723 bb11062 - adding support for external libmspack 9 years ago