[Xfce4-commits] [apps/orage] 01/01: 4.11.2.4 Coverity fix 31722 strcpy without length check

noreply at xfce.org noreply at xfce.org
Thu Mar 5 09:58:56 CET 2015


This is an automated email from the git hooks/post-receive script.

juha pushed a commit to branch master
in repository apps/orage.

commit d71aebfce7d2ec4b86017606631808f73bb2cfd6
Author: Juha Kautto <juha at xfce.org>
Date:   Thu Mar 5 10:57:32 2015 +0200

    4.11.2.4 Coverity fix 31722 strcpy without length check
    
    Added check for length to prevent overrun
---
 configure.in.in  |    2 +-
 src/event-list.c |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/configure.in.in b/configure.in.in
index d2a0c3b..3240bac 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -9,7 +9,7 @@ dnl Written for Xfce by Juha Kautto <juha at xfce.org>
 dnl
 
 dnl Version information
-m4_define([orage_version], [4.11.2.3-git])
+m4_define([orage_version], [4.11.2.4-git])
 
 m4_define([gtk_minimum_version], [2.14.0])
 m4_define([xfce_minimum_version], [4.8.0])
diff --git a/src/event-list.c b/src/event-list.c
index c995d07..5dcb486 100644
--- a/src/event-list.c
+++ b/src/event-list.c
@@ -916,10 +916,11 @@ static void on_Go_next_activate_cb(GtkMenuItem *mi, gpointer user_data)
 
 static void create_new_appointment(el_win *el)
 {
-    char *title, a_day[10];
+    char *title, a_day[9];
 
     title = (char *)gtk_window_get_title(GTK_WINDOW(el->Window));
-    strcpy(a_day, orage_i18_date_to_icaldate(title));
+    strncpy(a_day, orage_i18_date_to_icaldate(title));
+    a_day[8] = '\0';
     do_appt_win("NEW", a_day, el);
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list