Commit Graph

639 Commits (20962b51a04ca04fa6a3209c2262afb795249871)

Author SHA1 Message Date
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
Jeffrey Walton f2379159f8 Added COUNTOF to misc.h to count elements in an array (fails on pointers). Moved CRYPTOPP_UNUSED to misc.h 2015-07-03 15:40:44 -04:00
Jeffrey Walton 63dd0f5f54 Added diff and patch files to the ignore list 2015-07-03 10:33:45 -04:00
Jeffrey Walton 18070eb093 Cleared "Access declarations are deprecated..." warning under MinGW 2015-07-03 10:27:17 -04:00
Jeffrey Walton 1f0c35e669 Cleared initialization warning related to use of brackets 2015-07-02 21:25:39 -04:00
Jeffrey Walton b2820c28d3 Fixed spelling error in attribution 2015-07-02 17:48:45 -04:00
Jeffrey Walton 260810ce63 Implmented Bernstein\'s Tweaked Roots for Rabin-Williams signatures. Thanks to Evgeny Sidorov for suggesting it 2015-07-02 17:41:19 -04:00
Jeffrey Walton 70bddb83ef Cleared unused function warnings 2015-07-01 21:35:19 -04:00
Jeffrey Walton ea75b3ae5f Added Base64URLEncoder and decoder for web safe alphabet from RFC 4648, Section 5. Discussion at https://groups.google.com/d/msg/cryptopp-users/OF5RPXW-cHw/EDrOuA4-rRYJ 2015-07-01 21:06:29 -04:00
Jeffrey Walton 99ed4c86db Added PHONY targets for clean, install and remove 2015-06-30 22:41:47 -04:00
Jeffrey Walton 91b0730c33 Fixed compile on Cygwin x86_64. Thanks to Alex Afanasyev 2015-06-30 22:25:15 -04:00
Jeffrey Walton 1d8934e5b7 Removed -fPIC for Cygwin x86_64 compiles 2015-06-30 22:06:59 -04:00