Fix an array subscript error related to nibble string calculation

for IPv6 reverse lookups. This bug will not affect the majority
of users. The bug has been confirmed by Nominum, and will be
fixed in a future release.

PR:		bin/41388
Submitted by:	TOGAWA Satoshi <toga@puyo.org>
This commit is contained in:
Doug Barton 2002-11-17 09:40:45 +00:00
parent 1b6c0f8599
commit 0a22aff124
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70298
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- src/bin/dig/dig.c.Dist Mon Jun 17 19:26:49 2002
+++ src/bin/dig/dig.c Sun Nov 17 01:34:37 2002
@@ -1799,7 +1799,7 @@
in6->s6_addr[6] & 0x0f, (in6->s6_addr[6] >> 4) & 0x0f,
in6->s6_addr[5] & 0x0f, (in6->s6_addr[5] >> 4) & 0x0f,
in6->s6_addr[4] & 0x0f, (in6->s6_addr[4] >> 4) & 0x0f,
- in6->s6_addr[6] & 0x0f, (in6->s6_addr[3] >> 4) & 0x0f,
+ in6->s6_addr[3] & 0x0f, (in6->s6_addr[3] >> 4) & 0x0f,
in6->s6_addr[2] & 0x0f, (in6->s6_addr[2] >> 4) & 0x0f,
in6->s6_addr[1] & 0x0f, (in6->s6_addr[1] >> 4) & 0x0f,
in6->s6_addr[0] & 0x0f, (in6->s6_addr[0] >> 4) & 0x0f);

View File

@ -0,0 +1,11 @@
--- src/bin/dig/dig.c.Dist Mon Jun 17 19:26:49 2002
+++ src/bin/dig/dig.c Sun Nov 17 01:34:37 2002
@@ -1799,7 +1799,7 @@
in6->s6_addr[6] & 0x0f, (in6->s6_addr[6] >> 4) & 0x0f,
in6->s6_addr[5] & 0x0f, (in6->s6_addr[5] >> 4) & 0x0f,
in6->s6_addr[4] & 0x0f, (in6->s6_addr[4] >> 4) & 0x0f,
- in6->s6_addr[6] & 0x0f, (in6->s6_addr[3] >> 4) & 0x0f,
+ in6->s6_addr[3] & 0x0f, (in6->s6_addr[3] >> 4) & 0x0f,
in6->s6_addr[2] & 0x0f, (in6->s6_addr[2] >> 4) & 0x0f,
in6->s6_addr[1] & 0x0f, (in6->s6_addr[1] >> 4) & 0x0f,
in6->s6_addr[0] & 0x0f, (in6->s6_addr[0] >> 4) & 0x0f);