]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: improving robustness in reading kernel messages
authorKarel Zak <kzak@redhat.com>
Wed, 19 Jun 2024 09:19:49 +0000 (11:19 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 19 Jun 2024 09:23:18 +0000 (11:23 +0200)
commit0389a9eae9281405d177d0eb9ad979d7bd47a7c6
treef56370690d722083b9e9785884fee0147f7acfd2
parent24e3ede3dab15fcbf18d16ac09ae57ba4827c4b5
libmount: improving robustness in reading kernel messages

* Ensure data termination from read() function
* Allocate space for terminator using "sizeof(buf)-1"

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/hook_mount.c