diff options
author | Anders Broman <anders.broman@ericsson.com> | 2010-05-03 17:58:22 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2010-05-03 17:58:22 +0000 |
commit | e1ba9e371b817fdd575a0a3c6f6005cc7bdfe2d6 (patch) | |
tree | 03a722d0b4c6b5bc93d95320a2e88dbccacf7f5a /epan/dissectors/packet-infiniband.h | |
parent | 15d860553aa44de1ab904d076cf7255d82cfc878 (diff) |
This patch is submitted on behalf of Mellanox Technologies:
This patch fixes a bug in Infiniband dissection where the offset was
incorrectly incremented in some cases leading to attempt to read past the end
of the tvb and a MALFORMED-PACKET error being issued.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4738
svn path=/trunk/; revision=32645
Diffstat (limited to 'epan/dissectors/packet-infiniband.h')
-rw-r--r-- | epan/dissectors/packet-infiniband.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-infiniband.h b/epan/dissectors/packet-infiniband.h index b03a947afd..53099d73d4 100644 --- a/epan/dissectors/packet-infiniband.h +++ b/epan/dissectors/packet-infiniband.h @@ -1320,4 +1320,6 @@ static guint32 opCode_PAYLD[] = { * RC_ACKNOWLEDGE * }; */ +#define MAD_DATA_SIZE 232 /* size of data field a MAD payload carries */ + #endif |