aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-enttec.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-01-05 17:59:50 +0000
committerGuy Harris <guy@alum.mit.edu>2011-01-05 17:59:50 +0000
commit3e5c04221ab9db0737ec04e18611e041cd1c7250 (patch)
tree024f40228344d04da50f10e2b9ff4fb5533bbeda /epan/dissectors/packet-enttec.c
parent8d358343422102e9732788c9f3e8c37111fbdf42 (diff)
Handling a too-long length should be handled better.
svn path=/trunk/; revision=35383
Diffstat (limited to 'epan/dissectors/packet-enttec.c')
-rw-r--r--epan/dissectors/packet-enttec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-enttec.c b/epan/dissectors/packet-enttec.c
index 66d3e18bee..62fa58e1dd 100644
--- a/epan/dissectors/packet-enttec.c
+++ b/epan/dissectors/packet-enttec.c
@@ -221,6 +221,9 @@ dissect_enttec_dmx_data(tvbuff_t *tvb, guint offset, proto_tree *tree)
offset, 2, FALSE);
offset += 2;
+ /*
+ * XXX - we should handle a too-long length better.
+ */
if (length > 512)
length = 512;