summaryrefslogtreecommitdiff
path: root/nfsfh.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-09-25 14:17:00 -0700
committerFrancois-Xavier Le Bail <fx.lebail@yahoo.com>2017-01-18 09:16:39 +0100
commitea6ddc5e71988347f86c8783934fb6562e9fdb5c (patch)
tree16485e091dfb2fe02821b4698ab011f1e6192198 /nfsfh.h
parented0237af69d345cd907413dcb15393717676b294 (diff)
downloadtcpdump-ea6ddc5e71988347f86c8783934fb6562e9fdb5c.tar.gz
Don't overflow the Opaque_Handle buffer.
The file handle length can be arbitrarily large; don't assume its hex dump will fit in the buffer, just truncate it if it doesn't.
Diffstat (limited to 'nfsfh.h')
-rw-r--r--nfsfh.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nfsfh.h b/nfsfh.h
index cfd073bd..5cf8fc44 100644
--- a/nfsfh.h
+++ b/nfsfh.h
@@ -63,4 +63,4 @@ typedef struct {
#define fsid_eq(a,b) ((a.fsid_code == b.fsid_code) &&\
dev_eq(a.Fsid_dev, b.Fsid_dev))
-extern void Parse_fh(const unsigned char *, int, my_fsid *, uint32_t *, const char **, const char **, int);
+extern void Parse_fh(const unsigned char *, u_int, my_fsid *, uint32_t *, const char **, const char **, int);