aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/gui/e-cal-component-memo-preview.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index eb3ed1a71a..e7502367a2 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,11 @@
2007-03-29 Matthew Barnes <mbarnes@redhat.com>
+ * gui/e-cal-component-memo-preview.c (write_html):
+ Use a format string ("%s") when passing uncontrolled data to a
+ printf-style function (CVE-2007-1002).
+
+2007-03-29 Matthew Barnes <mbarnes@redhat.com>
+
* gui/e-day-view.c:
* gui/e-week-view.c:
* gui/tasks-control.c:
diff --git a/calendar/gui/e-cal-component-memo-preview.c b/calendar/gui/e-cal-component-memo-preview.c
index 192ad70ee1..07b2f79964 100644
--- a/calendar/gui/e-cal-component-memo-preview.c
+++ b/calendar/gui/e-cal-component-memo-preview.c
@@ -185,7 +185,7 @@ write_html (GtkHTMLStream *stream, ECal *ecal, ECalComponent *comp, icaltimezone
}
}
- gtk_html_stream_printf(stream, string->str);
+ gtk_html_stream_printf(stream, "%s", string->str);
g_string_free (string, TRUE);