From 6b8196e7384cf397c97825ca9c4af7fbda5ce26f Mon Sep 17 00:00:00 2001 From: Ariel Dabalsa Date: Fri, 5 May 2017 11:07:29 -0400 Subject: Fix infinite loop on mismatched BEGIN/END tags --- src/vobject/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/vobject/lib.rs b/src/vobject/lib.rs index bb3c91d..542e315 100644 --- a/src/vobject/lib.rs +++ b/src/vobject/lib.rs @@ -385,7 +385,6 @@ impl<'s> Parser<'s> { component.subcomponents.push(try!(self.consume_component())); } else if property.name == "END" { if property.raw_value != c_name { - self.pos = begin_pos; return Err(ParseError::new(format!( "Mismatched tags: BEGIN:{} vs END:{}", c_name, property.raw_value -- cgit v1.2.3