September 18, 2018
View 7b563ca

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.

Micah Snyder authored on 2018/09/18 22:29:01
September 17, 2018
View 4010925

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.

Micah Snyder authored on 2018/09/17 08:24:40
July 31, 2018
View d39cb65

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.

Micah Snyder authored on 2018/07/31 09:19:28
July 21, 2018
View d7979d4

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.

Micah Snyder authored on 2018/07/21 11:28:48
March 6, 2018
View 6289eda

Eliminating AUTHORS file, and moving acknowledgements for various source code contributions to the file comment blocks for the individual files, as appropriate.

Micah Snyder authored on 2018/03/06 06:34:35
December 20, 2017
View 927b2ba

bb11992: cleaning up some variable initialization.

Micah Snyder authored on 2017/12/20 22:27:21
October 19, 2017
View 8dbf92a

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.

Micah Snyder authored on 2017/10/19 04:52:19
October 10, 2017
View 0cf59ddd

eliminating warning for redefinition, correcting end of dbg buffer newline line.

Micah Snyder authored on 2017/10/10 20:59:31
View 520b0fd

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.

Micah Snyder authored on 2017/10/10 00:32:14
View c21235e

Ensuring mspack file handle is zeroed out after allocation and only closed if it exists

Mickey Sola authored on 2017/10/10 00:50:50
October 5, 2017
View d731a93

fixed uninitized variable that valgrind picked up in centos 6.8

Micah Snyder authored on 2017/10/05 00:30:25
September 29, 2017
View 7cc40cb

initializing error code to zero, fixing mspack_fmap_message so it has a new line character and will print fmt strings correctly

Micah Snyder authored on 2017/09/29 05:24:24
View 87c800a

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.

Micah Snyder authored on 2017/09/29 03:04:47
August 17, 2017
View e09d884

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.

Micah Snyder authored on 2017/08/17 06:31:45
June 8, 2017
View dd0df81

mspack - continue analysis on bad formatting

Mickey Sola authored on 2017/06/08 05:28:24