View Issue Details

IDProjectCategoryView StatusLast Update
0002744SOGoWeb Calendarpublic2014-04-29 18:28
Reporterdab1818 Assigned Tofrancis  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformx86_64OSgentoo linuxOS Version2.2
Product Version2.2.3 
Fixed in Version2.2.4 
Summary0002744: sogod crashed on create Event or Task in Calendar
Description

integer overflow on 64bit system in UI/Scheduler/UIxComponentEditor.m
patch attached

Steps To Reproduce

open Calendar
click New Event
browser display 503 "Service temporarily unavailable"

Additional Information

EXCEPTION: <NSException: 0x7ff35d2c10f8> NAME:NSRangeException REASON:Index -1 is out of range 16 (in 'objectAtIndex:') INFO:{Array = ("5_MINUTES_BEFORE", "10_MINUTES_BEFORE", "15_MINUTES_BEFORE", "30_MINUTES_BEFORE", "45_MINUTES_BEFORE", "-", "1_HOUR_BEFORE", "2_HOURS_BEFORE", "5_HOURS_BEFORE", "15_HOURS_BEFORE", "-", "1_DAY_BEFORE", "2_DAYS_BEFORE", "1_WEEK_BEFORE", "-", CUSTOM); Count = 16; Index = 4294967295; }
Apr 29 12:41:02 sogod [31236]: <0x0x7ff35cdac2c8[WOWatchDogChild]> child 28914exited
Apr 29 12:41:02 sogod [31236]: <0x0x7ff35cdac2c8[WOWatchDogChild]> (terminated due to signal 6)

TagsNo tags attached.

Activities

dab1818

dab1818

2014-04-29 18:01

reporter  

UIxComponentEditor.m.patch (406 bytes)   
--- ./UI/Scheduler/UIxComponentEditor.m.orig	2014-04-03 18:12:17.000000000 +0400
+++ ./UI/Scheduler/UIxComponentEditor.m	2014-04-29 17:57:22.000000000 +0400
@@ -1162,7 +1162,7 @@
   if ([[self clientObject] isNew])
     {
       NSString *value;
-      int index;
+      NSUInteger index;
       
       value = [userDefaults calendarDefaultReminder];
       index = [reminderValues indexOfObject: value];
UIxComponentEditor.m.patch (406 bytes)   
francis

francis

2014-04-29 18:28

administrator   ~0006977

Fixed. Thanks!

https://github.com/inverse-inc/sogo/commit/8c563c2922a1f6acc996c4260ba0509282c50a20

Issue History

Date Modified Username Field Change
2014-04-29 18:01 dab1818 New Issue
2014-04-29 18:01 dab1818 File Added: UIxComponentEditor.m.patch
2014-04-29 18:28 francis Note Added: 0006977
2014-04-29 18:28 francis Status new => resolved
2014-04-29 18:28 francis Fixed in Version => 2.2.4
2014-04-29 18:28 francis Resolution open => fixed
2014-04-29 18:28 francis Assigned To => francis