artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
988c003
)
Use long labs(3) for pointer arithmetic.
author
bluhm
<bluhm@openbsd.org>
Thu, 28 Jul 2016 13:05:52 +0000
(13:05 +0000)
committer
bluhm
<bluhm@openbsd.org>
Thu, 28 Jul 2016 13:05:52 +0000
(13:05 +0000)
Found by David Hill with clang.
usr.sbin/tcpdump/print-icmp6.c
patch
|
blob
|
history
diff --git
a/usr.sbin/tcpdump/print-icmp6.c
b/usr.sbin/tcpdump/print-icmp6.c
index
4e8caed
..
5823fd4
100644
(file)
--- a/
usr.sbin/tcpdump/print-icmp6.c
+++ b/
usr.sbin/tcpdump/print-icmp6.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: print-icmp6.c,v 1.2
0 2016/05/07 19:36:45 jca Exp $
*/
+/* $OpenBSD: print-icmp6.c,v 1.2
1 2016/07/28 13:05:52 bluhm Exp $
*/
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994
@@
-452,7
+452,7
@@
icmp6_print(const u_char *bp, u_int length, const u_char *bp2)
mode = FQDN;
}
}
- if (mode == UNKNOWN && 2 < abs(buf[12] - (ep - buf - 13)))
+ if (mode == UNKNOWN && 2 <
l
abs(buf[12] - (ep - buf - 13)))
mode = WRU;
if (mode == UNKNOWN)
mode = FQDN;