diff options
author | Evan Huus <eapache@gmail.com> | 2013-02-15 13:10:06 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-02-15 13:10:06 +0000 |
commit | fb530b1a72e8ef64c38b73e39d51c96d0e6ff98c (patch) | |
tree | 3c4bf0449292bbea6bc486449cbcd4147ca15b50 /epan/dissectors/packet-mount.c | |
parent | f9ecda41e4fbee60bcf79e3821bb2f71e7f086f0 (diff) |
From Alyssa Milburn via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8335
Make length field unsigned so that negative values fail the bounds check and
throw a regular exception before getting passed to glib (where they cause a
program-ending assert failure instead).
svn path=/trunk/; revision=47672
Diffstat (limited to 'epan/dissectors/packet-mount.c')
-rw-r--r-- | epan/dissectors/packet-mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mount.c b/epan/dissectors/packet-mount.c index 242be713ef..745845f1e7 100644 --- a/epan/dissectors/packet-mount.c +++ b/epan/dissectors/packet-mount.c @@ -167,7 +167,7 @@ dissect_mount_dirpath_call(tvbuff_t *tvb, int offset, packet_info *pinfo, if(civ->request && (civ->proc==1)){ const gchar *host; unsigned char *name; - int len; + guint32 len; unsigned char *ptr; host=ip_to_str(pinfo->dst.data); |