diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-09-25 14:17:00 -0700 |
---|---|---|
committer | Francois-Xavier Le Bail <fx.lebail@yahoo.com> | 2017-01-18 09:16:39 +0100 |
commit | ea6ddc5e71988347f86c8783934fb6562e9fdb5c (patch) | |
tree | 16485e091dfb2fe02821b4698ab011f1e6192198 /nfsfh.h | |
parent | ed0237af69d345cd907413dcb15393717676b294 (diff) | |
download | tcpdump-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |