Fix some issues reported by Clang's ubsan sanitizer
I compiled Evolution under Clang`s undefined sanitizer (ubsan) and now running it under wayland/weston prints:
../src/e-util/e-canvas-background.c:104:18: runtime error: -1.79769e+308 is outside the range of representable values of type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/e-util/e-canvas-background.c:104:18 in
../src/e-util/e-canvas-background.c:104:28: runtime error: -1.79769e+308 is outside the range of representable values of type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/e-util/e-canvas-background.c:104:28 in
../src/e-util/e-canvas-background.c:104:38: runtime error: 1.79769e+308 is outside the range of representable values of type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/e-util/e-canvas-background.c:104:38 in
../src/e-util/e-canvas-background.c:104:48: runtime error: 1.79769e+308 is outside the range of representable values of type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/e-util/e-canvas-background.c:104:48 in
../src/calendar/gui/e-week-view-titles-item.c:204:17: runtime error: index 7 out of bounds for type 'gint [7]'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../src/calendar/gui/e-week-view-titles-item.c:204:17 in
F
Edited by Milan Crha