From Mike Morrin:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 25 Jan 2010 20:14:34 +0000 (20:14 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 25 Jan 2010 20:14:34 +0000 (20:14 +0000)
Empty GPRS LLC S frames cause truncated data exception.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4417

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31667 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-gprs-llc.c

index a70d49e41952499f39be067b65ee9caaa14d150e..36208dff5199bb050d40085c39fe30574d944571 100644 (file)
@@ -1014,7 +1014,7 @@ dissect_llcgprs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                                                }
                                        }
                                }
-                               else
+                               else if (llc_data_length>offset)
                                {
                                        /* otherwise - call a subdissector */
                                        if (!dissector_try_port(llcgprs_subdissector_table, sapi, next_tvb, pinfo, tree))