From: guy Date: Wed, 24 Mar 2004 00:14:09 +0000 (+0000) Subject: Add bounds checking. X-Git-Tag: tcpdump-3.8.2~22 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/02e2f5c9feb9fea196932c9cf6fde2a9154ad7d2 Add bounds checking. --- diff --git a/print-icmp6.c b/print-icmp6.c index 6f4697f9..72b686ba 100644 --- a/print-icmp6.c +++ b/print-icmp6.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-icmp6.c,v 1.72.2.3 2003-11-19 01:28:19 guy Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-icmp6.c,v 1.72.2.4 2004-03-24 00:14:09 guy Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -383,6 +383,7 @@ icmp6_print(const u_char *bp, u_int length, const u_char *bp2, int fragmented) TCHECK(RDR(dp)->nd_rd_dst); printf("icmp6: redirect %s", getname6((const u_char *)&RDR(dp)->nd_rd_dst)); + TCHECK(RDR(dp)->nd_rd_target); printf(" to %s", getname6((const u_char*)&RDR(dp)->nd_rd_target)); #define REDIRECTLEN 40