Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet array boundary overflow on the use of IPv4 mappe...



details:   https://anonhg.NetBSD.org/src/rev/9190a64545b7
branches:  trunk
changeset: 516919:9190a64545b7
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Nov 02 02:37:50 2001 +0000

description:
array boundary overflow on the use of IPv4 mapped address.  from simonb

diffstat:

 sys/netinet/udp_usrreq.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a2d9a1e05675 -r 9190a64545b7 sys/netinet/udp_usrreq.c
--- a/sys/netinet/udp_usrreq.c  Fri Nov 02 02:36:57 2001 +0000
+++ b/sys/netinet/udp_usrreq.c  Fri Nov 02 02:37:50 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: udp_usrreq.c,v 1.87 2001/10/29 07:02:34 simonb Exp $   */
+/*     $NetBSD: udp_usrreq.c,v 1.88 2001/11/02 02:37:50 itojun Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -738,7 +738,7 @@
        sport = src->sin6_port;
        in6_embedscope(&dst6, dst, NULL, NULL);
        dport = dst->sin6_port;
-       dst4 = (struct in_addr *)&dst->sin6_addr.s6_addr32[12];
+       dst4 = (struct in_addr *)&dst->sin6_addr.s6_addr[12];
 
        if (IN6_IS_ADDR_MULTICAST(&dst6) ||
            (af == AF_INET && IN_MULTICAST(dst4->s_addr))) {



Home | Main Index | Thread Index | Old Index