diff options
author | Inada Naoki <songofacandy@gmail.com> | 2021-03-30 03:25:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-30 03:25:28 (GMT) |
commit | 068ebf9729d440cef03e4c57e3db83c851146172 (patch) | |
tree | 4795d264158c9a601c2fdfdcc49b80fa077d8550 /Modules/_blake2/impl/blake2b-ref.c | |
parent | 85b6b70589c187639aeebc560d67e9cc04abb4d8 (diff) | |
download | cpython-068ebf9729d440cef03e4c57e3db83c851146172.zip cpython-068ebf9729d440cef03e4c57e3db83c851146172.tar.gz cpython-068ebf9729d440cef03e4c57e3db83c851146172.tar.bz2 |
bpo-33164: blake2: Fix Coverity scan (GH-25060)
Diffstat (limited to 'Modules/_blake2/impl/blake2b-ref.c')
-rw-r--r-- | Modules/_blake2/impl/blake2b-ref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_blake2/impl/blake2b-ref.c b/Modules/_blake2/impl/blake2b-ref.c index 699f1a1..e58c436 100644 --- a/Modules/_blake2/impl/blake2b-ref.c +++ b/Modules/_blake2/impl/blake2b-ref.c @@ -333,7 +333,7 @@ int blake2b_final( blake2b_state *S, uint8_t *out, size_t outlen ) blake2b_increment_counter( S, BLAKE2B_BLOCKBYTES ); blake2b_compress( S, S->buf ); S->buflen -= BLAKE2B_BLOCKBYTES; - memcpy( S->buf, S->buf + BLAKE2B_BLOCKBYTES, S->buflen ); + memmove( S->buf, S->buf + BLAKE2B_BLOCKBYTES, S->buflen ); } blake2b_increment_counter( S, S->buflen ); |