]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/journal-file.c
journal-file: avoid risky subtraction when validity checking object
authorLennart Poettering <lennart@poettering.net>
Thu, 23 Apr 2020 08:45:31 +0000 (10:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 23 Apr 2020 10:12:17 +0000 (12:12 +0200)
commit20ee282bb7386fcc6980027b1956c07fc89fb8ad
treea1419f65590273cb0f9fac64738d1ffc08603efa
parented50f18c4de7ebff81bff4d0a69fe535d7b1d78b
journal-file: avoid risky subtraction when validity checking object

The value might change beneath what we do, and hence let's avoid any
chance of underflow.
src/journal/journal-file.c