From 047cf7350cd7ae8e6f53263f68226af4a2c3681d Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 17 Jan 2016 11:25:11 +0000 Subject: [PATCH] Added check if END:VCALENDAR appears before BEGIN:VCALENDAR in CalendarObject --- source/objects/calendarobject/CalendarObject.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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++; } -- 2.39.5