Blame wireshark-0014-Fix-https-bugs.wireshark.org-bugzilla-show_bug.cgi-i.patch

65d033
From: Pascal Quantin <pascal.quantin@gmail.com>
65d033
Date: Sat, 9 Nov 2013 15:44:01 +0000
65d033
Subject: [PATCH] Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9388
65d033
 : Avoid an infinite loop in SIP dissector (backport of r51738)
65d033
65d033
svn path=/trunk-1.10/; revision=53195
65d033
65d033
diff --git a/epan/dissectors/packet-sip.c b/epan/dissectors/packet-sip.c
65d033
index a3ceec2..b012837 100644
65d033
--- a/epan/dissectors/packet-sip.c
65d033
+++ b/epan/dissectors/packet-sip.c
65d033
@@ -2134,6 +2134,10 @@ dissect_sip_common(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tr
65d033
 	 */
65d033
 	orig_offset = offset;
65d033
 	linelen = tvb_find_line_end(tvb, offset, -1, &next_offset, FALSE);
65d033
+	if(linelen==0){
65d033
+		return -2;
65d033
+	}
65d033
+
65d033
 	if (tvb_strnlen(tvb, offset, linelen) > -1)
65d033
 	{
65d033
 		/*