diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-08-24 10:41:23 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2022-08-24 21:41:40 +0100 |
commit | 782c6e5c9050ba2de141906732e0a7e14b0c1550 (patch) | |
tree | 4e2f2d05c3e87a4b66262e85d55e3c3c7a0ed1f5 /src/basic/devnum-util.c | |
parent | 2306b4656a822e83c2a2563131be8d676c8bfb71 (diff) | |
download | systemd-782c6e5c9050ba2de141906732e0a7e14b0c1550.tar.gz |
time-util: fix overflow condition in usec_sub_signed()
If the delta specified is INT64_MIN, and we negate that we'd end up at
INT64_MAX+1 which is outside of the int64_t type. Hence let's treat this
case specifically to avoid unintended overflows.
Diffstat (limited to 'src/basic/devnum-util.c')
0 files changed, 0 insertions, 0 deletions