[bijiben] memo-provider: Crash opening memo
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] memo-provider: Crash opening memo
- Date: Sun, 11 Jun 2017 19:00:19 +0000 (UTC)
commit 1649d3a3d3bae9972ea89f08f78aea5b93cb96d6
Author: Milan Crha <mcrha redhat com>
Date: Sun Jun 11 15:46:20 2017 -0300
memo-provider: Crash opening memo
Application is crashing when trying to open a memo from the memo list.
Code is not checking for null when processing start, last modified and
created dates.
This patch fixes that.
https://bugzilla.gnome.org/show_bug.cgi?id=782998
src/libbiji/provider/biji-memo-provider.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libbiji/provider/biji-memo-provider.c b/src/libbiji/provider/biji-memo-provider.c
index fa0540f..975cd11 100644
--- a/src/libbiji/provider/biji-memo-provider.c
+++ b/src/libbiji/provider/biji-memo-provider.c
@@ -75,6 +75,9 @@ time_val_from_icaltime (icaltimetype *itt, glong *result)
GTimeVal t;
gchar *iso;
+ if (!itt)
+ return FALSE;
+
t.tv_sec = 0;
t.tv_usec = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]