aboutsummaryrefslogtreecommitdiff
path: root/util-linux/rev.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2015-01-27 21:59:40 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2015-01-27 21:59:40 +0100
commit936c401077cc68d9e3dd7f1b0b293ee03ce02bf5 (patch)
tree5315bc6e3d1e77602dc4b5f198697e9c49370470 /util-linux/rev.c
parent64b744997ef399809dc4c78ec45ddfbebde3e597 (diff)
downloadbusybox-936c401077cc68d9e3dd7f1b0b293ee03ce02bf5.tar.gz
dhcpd: fix an improper widening conversion
We wanted to detect when tv_sec = unsigned1 - unsigned2 underflows by looking at tv_sec's sign. But if tv_sec is long and it is wider than unsigned, we get unsigned -> long conversion which is in this case never negative. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/rev.c')
0 files changed, 0 insertions, 0 deletions