]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: Fix segfault when blkid.conf doesn't exist
authorKarel Zak <kzak@redhat.com>
Mon, 1 Apr 2024 10:14:50 +0000 (12:14 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Apr 2024 06:41:48 +0000 (08:41 +0200)
commit4a04b22ba57f9e176bf50fe05bae213326a98419
treedd9cfd2d19344e3337e66a74083f5f4d6a07be23
parentbf2a125606839a75e99dd64defdf6fef816fc3c5
libblkid: Fix segfault when blkid.conf doesn't exist

* Move 'line' and 'uevent' to the beginning of the LIBECONF code.
* Remove unwanted space between function name and arguments.
* Check for 'line' pointer before dereferencing.

References: https://github.com/util-linux/util-linux/pull/2883
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 7e357241b413a01c37b0b4d064bc0a47e3259361)
libblkid/src/config.c