diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-09-03 18:47:44 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-09-03 18:47:44 +0000 |
commit | 4a226911daad922dcdd4e5fc0cdbee626493ee28 (patch) | |
tree | fcf390bd070cfeddbee84695f6682bf1842c03a8 /epan/dissectors/packet-sip.c | |
parent | dc1477b79bab6971f37fdcf21cf8dc48766c63eb (diff) |
Protect agains infinite loop.
svn path=/trunk/; revision=51738
Diffstat (limited to 'epan/dissectors/packet-sip.c')
-rw-r--r-- | epan/dissectors/packet-sip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/dissectors/packet-sip.c b/epan/dissectors/packet-sip.c index c70d36793b..a41e293a7e 100644 --- a/epan/dissectors/packet-sip.c +++ b/epan/dissectors/packet-sip.c @@ -2173,6 +2173,10 @@ dissect_sip_common(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tr */ orig_offset = offset; linelen = tvb_find_line_end(tvb, offset, -1, &next_offset, FALSE); + if(linelen==0){ + return -2; + } + if (tvb_strnlen(tvb, offset, linelen) > -1) { /* |