]> git.ipfire.org Git - thirdparty/util-linux.git/commit
dmesg: Check if file is too large
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 2 Feb 2026 18:47:01 +0000 (19:47 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 2 Feb 2026 18:59:33 +0000 (19:59 +0100)
commit59592425ae90aea6cb8c2cfef270145b6cf76042
treee2c8d6b077c3a1972818e415a11ac0a5dae2e1de
parent4f6b555f6c1aa7eb529b162385e92e0bb9bebcb7
dmesg: Check if file is too large

32 bit systems might encounter a file which is larger than 2 GB. The
current code would silently truncate the input.

Exit with a proper error message instead.

Add the equal check to silence compiler warnings on 64 bit systems.

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