]> git.neil.brown.name Git - mdadm.git/commit
Fix potential overlap dest buffer
authorNigel Croxon <ncroxon@redhat.com>
Tue, 17 Aug 2021 13:14:48 +0000 (09:14 -0400)
committerJes Sorensen <jsorensen@fb.com>
Fri, 8 Oct 2021 15:49:54 +0000 (11:49 -0400)
commit5f6dedfb86d616a7f340e2627f4bbc1e58b63e15
tree1b715bbfcdd1a3e1d8df70225b9907868bb264ee
parenta042210648ed83a34d987871911a776b5b09cdc5
Fix potential overlap dest buffer

To meet requirements of Common Criteria certification vulnerablility
assessment. Static code analysis has been run and found the following
error.  Overlapping_buffer: The source buffer potentially overlaps
with the destination buffer, which results in undefined
behavior for "memcpy".

The change is to use memmove instead of memcpy.

Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
sha1.c