Jeffrey Walton
f5f63850f9
Use std namespace for memset, memcpy, memcmp ( #1204 )
2023-04-15 16:45:02 -04:00
Ilja
cdae245a13
Remove extra ;s from zinflate.cpp (PR #624 )
2018-03-31 12:58:36 -04:00
rocksonhead
b0f7170595
Fix calling multiple ZlibDecompressor in parallel causes adler32 checksum failure (GH #596 , #600 )
2018-03-24 20:27:03 -04:00
Jeffrey Walton
ba98c2bfb9
Clear signed/unsigned warning in Debug
2017-12-31 02:24:16 -05:00
Jeffrey Walton
d2ad6751d5
Clear uninitialized variable warnings under xlC
2017-09-01 20:37:23 -04:00
Jeffrey Walton
29f404ba5c
Update comments (Issue 414)
...
After more investigation it appears the issue was either Undefined Behavior or a Strict Aliasing violation in GCC; and it was in the test program and not the library. We're not sure which at the moment, but we were able to identify the problematic code. See the comments with Issue 414 (https://github.com/weidai11/cryptopp/issues/414 )
2017-08-19 09:09:21 -04:00
Jeffrey Walton
2a20d09dc6
Additional self tests for Decompressors
2017-05-10 20:32:50 -04:00
Jeffrey Walton
07dbcc3d96
Add Inflator::BadDistanceErr exception (Issue 414)
...
The improved validation and excpetion clears the Address Sanitizer and Undefined Behavior Sanitizer findings
2017-05-10 18:17:12 -04:00
Jeffrey Walton
9b383e8a07
Clear out-of-bounds read when fuzzing
...
zinflate.cpp:553:41: runtime error: index 30 out of bounds for type 'unsigned int [30]'
zinflate.cpp:553:11: runtime error: load of address 0x0000011806b8 with insufficient space for an object of type 'const unsigned int'
zinflate.cpp:32:32: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int'
2017-05-10 04:15:42 -04:00
Jeffrey Walton
5efb019d8b
Add C++ nullptr support (Issue 383)
2017-03-01 06:10:06 -05:00
Jeffrey Walton
81b1a18063
Change file preamble to include "originally written by Wei Dai"
...
We have made a fair number of changes, and we don't want WD to receive credit for issues he was not part of
2017-01-27 07:05:45 -05:00
Jeffrey Walton
399a1546de
Add CRYPTOPP_ASSERT (Issue 277, CVE-2016-7420)
...
trap.h and CRYPTOPP_ASSERT has existed for over a year in Master. We deferred on the cut-over waiting for a minor version bump (5.7). We have to use it now due to CVE-2016-7420
2016-09-16 11:27:15 -04:00
Jeffrey Walton
b99a92fe72
Whitespace checkin
2016-07-24 23:41:24 -04:00
Jeffrey Walton
8db0e7da6d
Cleared compile errors under Visual Studio .Net compilers
2016-04-29 11:25:51 -04:00
denisbider
2dde105c3f
Add size_t cast to resolve VS warning C4334
...
Resolve C4334: 'operator' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
2016-04-20 17:07:44 -06:00
Jeffrey Walton
60a68714dc
Fixed "Inflator: unexpected end of compressed block" (Issue 112)
2016-04-11 00:03:14 -04:00
Jeffrey Walton
6ac1e46a1f
Cleared issues 11,12,13 (Clang integrated assembler), 58 (RC rollup), 66 (Coverity rollup)
2015-11-18 15:32:28 -05:00
Jeffrey Walton
48809d4e85
CRYPTOPP 5.6.3 RC6 checkin
2015-11-05 01:59:46 -05:00
Jeffrey Walton
60291122ae
Cleared "no member named 'unique_ptr' in namespace 'std'" error under C++11 on OS X
2015-07-30 11:15:51 -04:00
Jeffrey Walton
69098d8cf2
Added "include <cryptlib.h>" due to Cygwin not picking up the CRYPTOPP_CXX11 define
2015-07-27 01:35:45 -04:00
Jeffrey Walton
f017391174
Cleared "auto_ptr is deprecated" warning. Switch to unique_ptr when C++11 is in effect
2015-07-27 00:28:05 -04:00
Jeffrey Walton
b7de164d62
Cut-in CRYPTOPP_ASSERT in all remaining header and source files
2015-07-26 16:03:14 -04:00
Jeffrey Walton
7b64ca489a
Added "trap.h" include for header and source files that assert
2015-07-26 15:51:16 -04:00
Jeffrey Walton
d04b813e8b
Cleared -Wmaybe-uninitialized under GCC 5.1
2015-07-19 11:05:48 -04:00
Jeffrey Walton
8f59d9af35
Cleared unused variable and function warnings
2015-07-19 10:22:16 -04:00
weidai
6aacd0a0de
merge in changes by denis bider and fix compile on gcc 3.4.4 and MSVC 6
2006-04-06 21:20:25 +00:00
weidai
922fdeb150
fix MSVC 2005 warnings
2006-03-13 13:26:41 +00:00
weidai
1db8ea5084
port to MSVC .NET 2005 beta 2
2005-07-12 04:23:32 +00:00
weidai
b3924f2108
changes done for FIPS-140 lab code drop
2005-01-20 04:19:35 +00:00
weidai
7f2eb60bca
*** empty log message ***
2004-06-19 09:13:32 +00:00
weidai
9f254b1146
*** empty log message ***
2004-06-19 09:01:35 +00:00
weidai
391a032791
speed up DEFLATE decompression
2004-04-08 01:28:03 +00:00
weidai
9c5c4769a9
fix potential threading problem with initialization of static objects
2003-07-29 01:18:33 +00:00
weidai
7b4f0c9c47
remove gcc warnings
2003-07-26 08:35:40 +00:00
weidai
55a22f2adf
allow DLL to be built with VC++ .NET
2003-07-18 21:33:18 +00:00
weidai
2f50e8eac9
copy fix over from 4.x branch
2003-05-27 07:08:11 +00:00
weidai
c9f75009a5
misc optimizations
2003-05-16 00:02:31 +00:00
weidai
a3b6ece7ab
Initial revision
2002-10-04 17:31:41 +00:00