diff options
author | Jeffrey Walton <noloader@gmail.com> | 2020-05-10 18:44:24 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2020-05-10 18:44:24 -0400 |
commit | a647cbb00fa56943dcc94bdb034bc5a6b45dc178 (patch) | |
tree | 276fcead5945fb5507a9a41f0eca5b632841c2bb /misc.h | |
parent | 72cb91718fbcf8843d5181e792fbdf95c4aab128 (diff) | |
download | cryptopp-git-a647cbb00fa56943dcc94bdb034bc5a6b45dc178.tar.gz |
Clean GCC 10 Analyzer warnings
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -568,7 +568,8 @@ inline void memmove_s(void *dest, size_t sizeInBytes, const void *src, size_t co # pragma warning(disable: 6386)
# endif
#endif
- memmove(dest, src, count);
+ if (src && dest)
+ memmove(dest, src, count);
#if CRYPTOPP_MSC_VERSION
# pragma warning(pop)
#endif
|