diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-10-29 15:49:34 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-10-29 15:53:03 -0400 |
commit | 49371bb50e0fe6e9e90309a20006bcfd9e2fa8f4 (patch) | |
tree | c1d9225bb22ce0b683273147381d9e84d01a6980 /src/shared/strbuf.c | |
parent | 6827101ab4df4730a22062f4b3a8f8c2bae5be28 (diff) |
util: avoid divide by zero FPE
In early userspace, if kernel initialization happens extremely quickly,
a call to systemd-timestamp can potentially result in division by zero.
Ensure that the check in timespec_load, which only makes sense if tv_sec
is greater than zero, is guarded by this condition.
Diffstat (limited to 'src/shared/strbuf.c')
0 files changed, 0 insertions, 0 deletions