]> git.ipfire.org Git - thirdparty/util-linux.git/commit
dmesg: Only check for newline if input exists
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 2 Feb 2026 18:28:32 +0000 (19:28 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 2 Feb 2026 18:32:44 +0000 (19:32 +0100)
commit4f6b555f6c1aa7eb529b162385e92e0bb9bebcb7
treefed8cfbc5a2154cab6d5ee37c851d32d60c5a373
parent1540eb2aaab45d9785cd20168d0e3d3f0e280aae
dmesg: Only check for newline if input exists

If a memory mapped file does not end with a newline, do not check for
its existence. Accessing *end would lead to an out of boundary read.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
sys-utils/dmesg.c