From 34fe1205ac7535fc17683ac79d5eef8459832bfe Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 7 Jul 2013 18:57:09 -0700 Subject: [PATCH] Mark clang false positives --- .../crypto_stream/aes128ctr/portable/afternm_aes128ctr.c | 2 +- .../crypto_stream/aes128ctr/portable/xor_afternm_aes128ctr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsodium/crypto_stream/aes128ctr/portable/afternm_aes128ctr.c b/src/libsodium/crypto_stream/aes128ctr/portable/afternm_aes128ctr.c index 4a3785eb..699146c9 100644 --- a/src/libsodium/crypto_stream/aes128ctr/portable/afternm_aes128ctr.c +++ b/src/libsodium/crypto_stream/aes128ctr/portable/afternm_aes128ctr.c @@ -128,7 +128,7 @@ int crypto_stream_afternm(unsigned char *outp, unsigned long long len, const uns if(lensav == 0) goto end; - b = blp[0]; + b = blp[0]; /* clang false positive */ *(unsigned char *)(outp + 0) = b; blp += 1; diff --git a/src/libsodium/crypto_stream/aes128ctr/portable/xor_afternm_aes128ctr.c b/src/libsodium/crypto_stream/aes128ctr/portable/xor_afternm_aes128ctr.c index 6734fb93..09f6c809 100644 --- a/src/libsodium/crypto_stream/aes128ctr/portable/xor_afternm_aes128ctr.c +++ b/src/libsodium/crypto_stream/aes128ctr/portable/xor_afternm_aes128ctr.c @@ -139,7 +139,7 @@ int crypto_stream_xor_afternm(unsigned char *outp, const unsigned char *inp, uns if(lensav == 0) goto end; - b = blp[0]; + b = blp[0]; /* clang false positive */ b ^= *(unsigned char *)(inp + 0); *(unsigned char *)(outp + 0) = b;