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
2c83276ca5
adding utf-8 BOM detection to ascii check
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
Craig Davison
0cf813f835
Better fix for bug 11946
...
Signed-off-by: Steven Morgan <stevmorg@cisco.com>
8 years ago
Steven Morgan
c8f8f9f715
Merge branch 'master' of git.vrt.sourcefire.com:clamav/clamav-devel
8 years ago
Steven Morgan
0604618374
bb11944 - fix possible message.c OOB read.
8 years ago
Micah Snyder
40451e2eea
Reverting change that supported empty string filenames for cab files.
8 years ago
Mickey Sola
c8ba4ae2e4
11942 - fixing heap overflow in handle_pdfname. Patch submitted by Suleman Ali.
8 years ago
Mickey Sola
f75c04b0c4
bb11941 - fixing UAF in mbox exportBounceMessage. Original patch submitted by Suleman Ali
8 years ago
Micah Snyder
7cf2a70104
b11939: adding fix as recommended by bug reporter along with a couple extra lines to ensure freed pointers are set to NULL.
8 years ago
Mickey Sola
d1100be31a
bb11940 - fixing heap overflow in rfc2037. Patch submitted by Suleman Ali
8 years ago
Mickey Sola
39c89d14a6
bb11945 - fixing null dereference of blob pointer
8 years ago
Steven Morgan
38da4800bf
bb11943 - add check to mew.c for out of bounds read. Patch supplied by Suleman Ali.
8 years ago
Steven Morgan
292d6878fa
bb11946 - check that tar checksum is within bounds. Patch supplied by Suleman Ali.
8 years ago
Micah Snyder
77326673e2
Adding missing -1 that enables trimming of trailing spaces in mbox parsing code.
8 years ago
Micah Snyder
ad905e5391
forgot to remove a few stats submission related option checking in clamd
8 years ago
Micah Snyder
22880de038
eliminating additional option references to stat collection and submission until such time as a new stats website and associated clamav code is ready.
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
Steven Morgan
dc30ba752d
bb11910 - remove DetectionStatsHostID.
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
Steven Morgan
b2f59861ee
bb11915 - Fix for whitelisting bytecode signatures. Patch by Georgy Salnikov.
8 years ago
Micah Snyder
7dbfe2412e
Updating win32 readme
8 years ago
Micah Snyder
5812c75fa3
updating git commits, sln to fix build, and most importantly adding macro definitions to cltypes in support of Windows.
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
0cf59dddb3
eliminating warning for redefinition, correcting end of dbg buffer newline line.
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
653b471b5b
eliminating format-string related warnings that appear on ubuntu 16.04 x64.
8 years ago
Steven Morgan
ee6fb5fbf0
add some null argument checks before using the json api.
8 years ago
Steven Morgan
ad6b08d27b
quieter debug messages from pcre matcher.
8 years ago
Steven Morgan
f84289de35
fix for Html.Trojan.Iframe-35 false negative.
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
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
a7e14794e2
adding back changes to eliminate warnings from unrar files other than unrarppm.
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
de2d9dc4fc
Removing file references from Makefile that were removed as a part of Windows visual studio project file cleanup effort.
8 years ago
Micah Snyder
52205b828c
moving mspack visual studio project into win32 directory.
8 years ago
Micah Snyder
28d48ab288
adding openssl visual studio project to provide the openssl DLLs to the Setup installer projects. there may be an even cleaner solution but this works.
8 years ago