Source-Changes-HG archive

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

[src/netbsd-1-6]: src/dist/tcpdump Pull up revision 1.4 (requested by itojun ...



details:   https://anonhg.NetBSD.org/src/rev/5c5bac9cfa1b
branches:  netbsd-1-6
changeset: 527699:5c5bac9cfa1b
user:      tv <tv%NetBSD.org@localhost>
date:      Sun Jun 02 15:47:32 2002 +0000

description:
Pull up revision 1.4 (requested by itojun in ticket #121):
corrects NFS decoder overrun problem outlined in:
http://192.139.46.44/lists/workers/2002/05/msg00198.html

diffstat:

 dist/tcpdump/parsenfsfh.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (53 lines):

diff -r 8de3f50b0531 -r 5c5bac9cfa1b dist/tcpdump/parsenfsfh.c
--- a/dist/tcpdump/parsenfsfh.c Sun Jun 02 15:47:24 2002 +0000
+++ b/dist/tcpdump/parsenfsfh.c Sun Jun 02 15:47:32 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parsenfsfh.c,v 1.3 2002/02/18 09:37:05 itojun Exp $    */
+/*     $NetBSD: parsenfsfh.c,v 1.3.2.1 2002/06/02 15:47:32 tv Exp $    */
 
 /*
  * Copyright (c) 1993, 1994 Jeffrey C. Mogul, Digital Equipment Corporation,
@@ -46,9 +46,9 @@
 #ifndef lint
 #if 0
 static const char rcsid[] =
-    "@(#) Header: /tcpdump/master/tcpdump/parsenfsfh.c,v 1.23 2001/09/17 21:57:53 fenner Exp (LBL)";
+    "@(#) Header: /tcpdump/master/tcpdump/parsenfsfh.c,v 1.24 2002/04/24 06:27:06 guy Exp (LBL)";
 #else
-__RCSID("$NetBSD: parsenfsfh.c,v 1.3 2002/02/18 09:37:05 itojun Exp $");
+__RCSID("$NetBSD: parsenfsfh.c,v 1.3.2.1 2002/06/02 15:47:32 tv Exp $");
 #endif
 #endif
 
@@ -115,11 +115,11 @@
        ((lsb) + ((e)<<8) + ((d)<<16) + ((c)<<24))
 #endif
 
-static int is_UCX(unsigned char *);
+static int is_UCX(const unsigned char *);
 
 void
 Parse_fh(fh, len, fsidp, inop, osnamep, fsnamep, ourself)
-register caddr_t *fh;
+register const unsigned char *fh;
 int len;
 my_fsid *fsidp;
 ino_t *inop;
@@ -127,7 +127,7 @@
 const char **fsnamep;          /* if non-NULL, return server fs name here (for VMS) */
 int ourself;           /* true if file handle was generated on this host */
 {
-       register unsigned char *fhp = (unsigned char *)fh;
+       register const unsigned char *fhp = fh;
        u_int32_t temp;
        int fhtype = FHT_UNKNOWN;
        int i;
@@ -443,7 +443,7 @@
  */
 static int
 is_UCX(fhp)
-unsigned char *fhp;
+const unsigned char *fhp;
 {
        register int i;
        int seen_null = 0;



Home | Main Index | Thread Index | Old Index