From: Steve Brokenshire Date: Sun, 17 Jan 2016 11:25:11 +0000 (+0000) Subject: Added check if END:VCALENDAR appears before BEGIN:VCALENDAR in CalendarObject X-Git-Tag: release-0.02~768 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=047cf7350cd7ae8e6f53263f68226af4a2c3681d;p=xestiacalendar%2F.git Added check if END:VCALENDAR appears before BEGIN:VCALENDAR in CalendarObject --- diff --git a/source/objects/calendarobject/CalendarObject.cpp b/source/objects/calendarobject/CalendarObject.cpp index 6ed8acd..6210b49 100644 --- a/source/objects/calendarobject/CalendarObject.cpp +++ b/source/objects/calendarobject/CalendarObject.cpp @@ -182,7 +182,15 @@ CalendarObjectValidResult CalendarObject::ValidBaseObject(){ } } - + + if (ObjectName[SeekCount] == "END" && + ObjectData[SeekCount] == "VCALENDAR" && + ValidBegin == false){ + + return CALENDAROBJECTVALID_INVALIDFORMAT; + + } + SeekCount++; }