]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/strutils: make sure mem2strcpy() buffer is zeroized
authorKarel Zak <kzak@redhat.com>
Tue, 18 Jan 2022 11:30:11 +0000 (12:30 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 18 Jan 2022 11:30:11 +0000 (12:30 +0100)
commit9c05f4b6bf62a20a64a8e5735c7f3dcf0229e895
tree5cff1e82968e69832beec2c76388fa5db914d2d1
parent38e93216e8f484b55bd141cff3e4933cc6b35873
lib/strutils: make sure mem2strcpy() buffer is zeroized

Let's make the function robust for work with strings and uninitialized
buffers.

Reported-by: Sean Anderson <seanga2@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
include/strutils.h