Micah Snyder
927b2bab17
bb11992: cleaning up some variable initialization.
7 years ago
Micah Snyder
6c59352535
autoreconf, regenerated pdfs, html docs.
7 years ago
Kevin Lin
2ca24bbc18
modify mspack linking behavior:
...
-remove mspack.h from being installed
-remove libmspack object files from libclamav
-dynamically link internal libmspack with libclamav
7 years ago
Micah Snyder
5810338a74
replacing extra params that indicate intentional variable assignment within an if statement, preventing a compile warning.
8 years ago
Micah Snyder
9ea7b0093a
eliminating potential infinite loop in libmspack quantum decompression code.
8 years ago
Micah Snyder
740b1ee572
applying a cleaner casting solution to account for isalnum issue on Windows Debug builds.
8 years ago
Micah Snyder
a1b528d29a
adding check prior to call to isalnum to avoid assert error in windows when random data that is < -1 or > 255 is fed into isalnum(). see https://stackoverflow.com/questions/28589051/using-isalnum-with-signed-character-inputs-visual-c
8 years ago
Mickey Sola
b4852b8e4a
0.99.3 - regression fix - removing first pass offset check when extracting cab files compressed with lzx, improving debug output for LZX type decompression, warning on lzx file format issue instead of exiting decompression
8 years ago
Micah Snyder
40451e2eea
Reverting change that supported empty string filenames for cab files.
8 years ago
Micah Snyder
eaa711526c
1) improved debug messages
...
2) accept files in the cab with 0-byte (just a null terminator) lengths. I don’t know that there are any real cabs that have this, but it’s conceivable.
3) only try to sanitize if we actually got the filename correctly (I forgot to put an else{} around it when I added filename sanitization).
4) reset the parsing offset to the beginning of the file entries in case the # of folder entries found did not match the # stated in the header. (This could help or hurt in a malformed cab header depending on exactly how it was malformed. Actual value gained… hard to say).
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
a33b7b655f
adding code to fail out of cab header parsing function if at the end of the function no files were added to the file list (i.e. format issue with header)
8 years ago
Micah Snyder
b470fcb998
fixing small memory leak.
8 years ago
Micah Snyder
e8e02f69df
fixing decompression hack for LZX since we increased CAB_BLOCKMAX. adding some debug messages and eliminating one that no longer makes sense.
8 years ago
Micah Snyder
ab096116b6
fmin resulted in an incorrect value. switching to just use UINT_MAX because we know that will be the minimum in the statement anyways.
8 years ago
Micah Snyder
1245231999
adding fix that limits cabmax size to UINT_MAX
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
b9cdc86464
Adding modifications to continue scanning cab files that don't conform to cab size norms.
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
4cb7530e81
adding fix to cabd.c that allows completion of parsing of cab files that describe files in the header that are invalid. This occurs when non-header data is hidden at the end of the header.
8 years ago
Micah Snyder
31064b37f7
adding back warning fixes to pdf.c that disappears in pull request changes wrt win32 changes. adding a small change to mspack cabd.c since to eliminate a warning since this series of commits also changes mspack code.
8 years ago
Micah Snyder
d0cba11ea7
adding back changes to eliminate warnings from mspack, matcher, others, and readdb.
8 years ago
Micah Snyder
169af0fc67
Revert "eliminating warnings. mostly correcting variable types. also correcting struct initialization in a couple instances (var = {0} does not zero the memory on all platforms). Also some minor formatting corrections in areas I was already working. eliminated some unused variables."
...
This reverts commit 84a7f40288
.
8 years ago
Micah Snyder
52205b828c
moving mspack visual studio project into win32 directory.
8 years ago
Adrian Wu
428faad882
basetsd not basestd
8 years ago
Prashant Pathak
edb022443d
FIX: Compile issue with VS 2015
8 years ago
Jake Fehr
078ab2f916
null an additional variable
8 years ago
Jake Fehr
9eebb0a432
Remove old build files
8 years ago
Jake Fehr
59e8d91a4b
Remove dependancy on c:\clamdeps
8 years ago
Micah Snyder
67bb55d7c7
partial pull-request from jfehr, ommiting changes to openssl lib names: Changes needed to build Cmam in VS2015.
8 years ago
Mickey Sola
8319064c17
mspack - removing ssize_t typing to ensure VS15 compilation
8 years ago
Micah Snyder
84a7f40288
eliminating warnings. mostly correcting variable types. also correcting struct initialization in a couple instances (var = {0} does not zero the memory on all platforms). Also some minor formatting corrections in areas I was already working. eliminated some unused variables.
8 years ago
Mickey Sola
ac44cbd26a
mspack - maintainability improvments for cabd OOB fix
8 years ago
Mickey Sola
c99a8752ac
11874 - fixing OOB read in cabd
8 years ago
Mickey Sola
bcc0623c95
mspack - add cli_debug_flag to internal mspack
8 years ago
Mickey Sola
5a0b148b4d
mspack - simplifying libclamav debug stamp and fixing errors when configuring the library with enable-debug
8 years ago
Mickey Sola
e5f9c2f0f7
mspack - adding custom clam debug output for internal mspack
8 years ago
Mickey Sola
a83773682e
fixing potential OOB window write when unpacking chm files
8 years ago
Mickey Sola
9ca3fc2f9b
bb11062 - changing install-sh file mode to 755
9 years ago
Mickey Sola
032eeb2906
bb11062 - finalizing libmspack generated artifact cleanup
9 years ago
Mickey Sola
d0a2ce50a4
bb11062 - updated libmspack missing script to warn only and included more prescient advice
9 years ago
Mickey Sola
5018a5e209
bb11062 - loosening libmspack automake strictness and enabling maintainer mode to mitigate timestamp mangling
9 years ago
Mickey Sola
8d0220c7de
bb11062 - pointing make to correct libmspack libtool objects
9 years ago
Mickey Sola
53216ad9d9
bb11062 - marking libmspack artifacts for cleanup
9 years ago
Mickey Sola
82e864c49a
bb11062 - add autom4te cache to repo
9 years ago
Mickey Sola
0da5ca0259
bb11062 - defaulting build to internal libmspack and creating configure option to specify use of external library
9 years ago
Mickey Sola
a9c0d02af7
bb11062 - require internal libmspack for make distcheck
9 years ago
Mickey Sola
6eb746e45f
bb11062 - remove libmspack artifacts from upstream
9 years ago