]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm: lib.c fix coverity issues
authorNigel Croxon <ncroxon@redhat.com>
Tue, 16 Jul 2024 11:20:10 +0000 (07:20 -0400)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Tue, 16 Jul 2024 14:20:16 +0000 (16:20 +0200)
commitda7aecdf25371e1476da4ec56e9ec5ddf13af5da
tree89998a3af10416624801002f80b027d7609e2a8f
parentbcc3ab1728da61e5519e1f01597c8da0c5bc769b
mdadm: lib.c fix coverity issues

Fixing the following coding errors the coverity tools found:

* Event fixed_size_dest: You might overrun the 32-character fixed-size
string "devnm" by copying "cp + 1" without checking the length.

* Event fixed_size_dest: You might overrun the 32-character fixed-size
string "devnm" by copying "cp" without checking the length.

Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
lib.c