Commit Graph

750 Commits (fedd08f15c66bbb303b3c8af5df5c79c6c534bff)

Author SHA1 Message Date
Jeffrey Walton ee71d0041f Cleared virtual destructor warnings under GCC with -Wall 2015-07-19 09:41:46 -04:00
Jeffrey Walton c8fb6567da Cleared virtual destructor warnings under GCC with -Wall 2015-07-19 09:29:02 -04:00
Jeffrey Walton 5bd61dcc92 Added inline assembly for left and right rotate under GCC on x86/x86_64 2015-07-19 08:31:58 -04:00
Jeffrey Walton d19790bbca Cleared UBsan errors 2015-07-19 07:58:55 -04:00
Jeffrey Walton b54e637896 Whitespace checkin 2015-07-19 07:21:42 -04:00
Jeffrey Walton 1026b51922 Changed TestOS_RNG to use a MeterFilter rather than an ArraySink with a NULL array. The NULL array meant ArraySink::Put2 returned early, and it did *not* update m_total. Even if Put2 did not exit early, it still could not update m_total because the bytes were *not* processed. This change was required in preparation for clearing UBsan errors in filters.cpp 2015-07-19 07:15:06 -04:00
Jeffrey Walton 8c259ee6b4 Added recipe to create dependencies. The dependencies are only generated if multiarch is not in effect. MULTIARCH_SUPPORT was also changed to an overrideable makefile variable 2015-07-18 23:41:41 -04:00
Jeffrey Walton bf9df8f970 Added additional crypto++ artifcats used during testing. Added *.o because Fedora 22 does not exclude them by default 2015-07-18 22:16:47 -04:00
Jeffrey Walton e4ab1cd70c Cleared UBsan error on non-null pointer use 2015-07-17 22:53:36 -04:00
Jeffrey Walton 8cef820ac8 Cleared UBsan error based on undefined shift. Tightened behaviors based on offline conversation with Wei and Denis. One shift error remains due to use of rotVariable by Cast. The UB will be cleared shortly, when specializations using GCC assembler is checked in 2015-07-17 22:21:01 -04:00
Jeffrey Walton cac038a855 Cleared UBsan error using non-null pointer 2015-07-17 21:50:47 -04:00
Jeffrey Walton 20962b51a0 Changed guard on memcpy use to make it less intrusive. More closely resembles original code 2015-07-17 21:44:53 -04:00
Jeffrey Walton 434c56fcd2 Cleared UBsan error using non-null pointer 2015-07-17 21:36:13 -04:00
Jeffrey Walton 5f299d76a0 Cleared UBsan error on non-null pointers being used with memcpy and memmove from library functions memcpy_s and memmove_s 2015-07-17 21:09:42 -04:00
Jeffrey Walton 134ba3e16b Added -fsanitize-undefined-trap-on-error to help with a call stack on violations. Disabled by default 2015-07-17 11:02:37 -04:00
Jeffrey Walton 0578334f7a Cleared warning under Visual Studio 2015-07-17 10:40:22 -04:00
Jeffrey Walton 3faaf986a4 Cleared warning under Visual Studio 2015-07-17 10:39:45 -04:00
Jeffrey Walton ca6a93bbc5 Cleared virtual destructor warning by explicitly adding them 2015-07-17 10:38:44 -04:00
Jeffrey Walton b435ce07c8 Cleared Visual Studio warning on type mismatch in std::bind 2015-07-17 10:37:30 -04:00
Jeffrey Walton 398bda4051 Removed cross-pollination during testing 2015-07-17 10:05:56 -04:00
Jeffrey Walton 172cce3974 Added source code documentation on the rotFixed, rotVariable and rotMod functions 2015-07-17 07:40:16 -04:00
Jeffrey Walton e7eee759bb Cleared UBsan errors under GCC 5.1. Cleared signed/unsigned warnings under Visual Studio 2015-07-17 07:16:01 -04:00
Jeffrey Walton 427e1cf028 Cleared UBsan warnings under GCC 5.1 2015-07-17 07:13:23 -04:00
Jeffrey Walton 3a08e02f71 Cleared Issue #5. Thanks to Jonathan Wakely for the patch 2015-07-16 17:11:01 -04:00
Jeffrey Walton 06ea2d2952 Cleared Cygwin i386 crash at -O3 due to unaligned data access and vectorization 2015-07-16 00:50:13 -04:00
Jeffrey Walton 04429b291d Added targets for UBsan and Asan 2015-07-16 00:47:09 -04:00
Jeffrey Walton c3c9f2f114 Cleared Issue #6. Thanks to Jonathan Wakely for reporting 2015-07-16 00:43:38 -04:00
Jeffrey Walton 00cc470f04 Folded OPTIMIZE and SYMBOLS back into CXXFLAGS (we can use 'subst' to modify CXXFLAGS). Moved Cygwin work arounds into block guarded by IS_X86 (Cygwin only runs on Windows) 2015-07-15 19:03:49 -04:00
Jeffrey Walton 857d7c84d1 Cleared UBsan error of "load of value 127, which is not a valid value for type 'bool'" by initializing negateNext 2015-07-15 17:48:43 -04:00
Jeffrey Walton 866fbeb8e4 Cleared compile error masked behind ASSERT 2015-07-14 01:25:59 -04:00
Jeffrey Walton 828c550389 Cleared C4242 warning uder Visual Studio 2015-07-13 23:59:01 -04:00
Jeffrey Walton 01caf892e0 Whitespcae check-in 2015-07-13 23:20:36 -04:00
Jeffrey Walton 9bf0eed0f6 Cleared crash with GCC 4.8 and above and -O3. In a nutshell, it was due to vectorization and alignment violations agains the vmovdqa instruction 2015-07-13 22:53:16 -04:00
Jeffrey Walton e78b8fe1df Cleared warnings on WindowSlider struct 2015-07-13 21:40:42 -04:00
Jeffrey Walton b5ed163c87 Cleared UBSan warnings reported by Jonathan Wakely. Cleared many issues reported in GitHub Issue 4 (its a rollup of -fsanitize=undefined) 2015-07-13 20:37:34 -04:00
Jeffrey Walton c6abf130eb Moved GCC_DIAGNOSTIC_AWARE and GCC_OPTIMIZE_AWARE into misc.h 2015-07-13 00:39:13 -04:00
Jeffrey Walton 12931b3301 Cleared signed/unsigned warning on IncrementCounterByOne 2015-07-12 18:32:10 -04:00
Jeffrey Walton 02dff96e97 Cleared signed/unsigned warning using GCC __builtin_XXX 2015-07-12 18:19:46 -04:00
Jeffrey Walton 981b4c9d04 Added test for 'v<0' in GetAsUIntValue 2015-07-09 05:24:10 -04:00
Jeffrey Walton 8ed9bc7f1f Fixed multiarch detection on OS X 2015-07-09 02:19:15 -04:00
Jeffrey Walton 6556d68543 Added test suites for HKDF 2015-07-09 01:38:05 -04:00
Jeffrey Walton 69e1017ac5 Added Crypto++ artifacts to .gitignore 2015-07-09 01:36:37 -04:00
Jeffrey Walton 94f28091e8 GNUmakefile improvements. Changed default optimization level to -O3, except on Cygwin. Added IS_DARWIN for consistency 2015-07-08 15:34:23 -04:00
Jeffrey Walton 6cfee97b27 Merge branch 'master' of https://github.com/weidai11/cryptopp 2015-07-08 15:31:44 -04:00
Jeffrey Walton 217cb1f983 GNUmakefile improvements. Changed default optimization level to -O3, except on Cygwin. Added IS_DARWIN for consistency 2015-07-08 15:31:33 -04:00
Jeffrey Walton d091b803c6 Added GetAsUIntValue{WithDefault} to help manage signed/unsigned warnings. The value is still written as an signed int; but its retrieved, range checked and then returned as an unsigned int 2015-07-07 19:46:09 -04:00
Jeffrey Walton 8393eeb409 Static and constness to arrays 2015-07-05 19:23:18 -04:00
Jeffrey Walton 8386b3f139 Guarded COUNTOF macro. Thanks to Graham Bull for the suggestion 2015-07-05 17:53:42 -04:00
Jeffrey Walton aa8bb8c5cd Added cryptopp.mac.done to ignores after tests full Visual Studio solution 2015-07-03 18:59:37 -04:00
Jeffrey Walton 21527f8f73 Cut-over to COUNTOF in source files 2015-07-03 17:16:05 -04:00