diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-03-27 12:28:03 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-03-27 12:28:03 +0000 |
commit | 44fd3c8a633d95aa14e0c2f364b47a8efe0ba1ab (patch) | |
tree | 35300cb44aebcaeaa240a6b97dd8814dddc8e008 /epan/dissectors/packet-sna.c | |
parent | 1fb5f97e6d1b2e8f2a494f492f8568ad86573fa9 (diff) |
buildbot bugfix: add another tvb_ensure_bytes_exist()
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13933 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-sna.c')
-rw-r--r-- | epan/dissectors/packet-sna.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/dissectors/packet-sna.c b/epan/dissectors/packet-sna.c index 70e8ef4337..7d589e2a08 100644 --- a/epan/dissectors/packet-sna.c +++ b/epan/dissectors/packet-sna.c @@ -2384,9 +2384,12 @@ dissect_control_05hpr(tvbuff_t *tvb, proto_tree *tree, int hpr, if (len) { dissect_control(tvb, offset, len, tree, hpr, parse); pad = (len+3) & 0xfffc; - if (pad > len) + if (pad > len) { + /* XXX - fix this, ensure tvb is large enough for pad */ + tvb_ensure_bytes_exist(tvb, offset+len, pad-len); proto_tree_add_text(tree, tvb, offset+len, pad-len, "Padding"); + } offset += pad; } else { return; |