[Xfce4-commits] [apps/orage] 01/01: 4.11.2.17 Coverity fix 31715 copy into fixed size without count
noreply at xfce.org
noreply at xfce.org
Wed Mar 11 11:57:07 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 4315450f35ca04109ca2f25887f6027c269073b7
Author: Juha Kautto <juha at xfce.org>
Date: Wed Mar 11 12:55:28 2015 +0200
4.11.2.17 Coverity fix 31715 copy into fixed size without count
added limiting count to strcpy to prevent potential overflow.
---
configure.in.in | 2 +-
src/appointment.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/configure.in.in b/configure.in.in
index b2ec0fc..f26948b 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.16-git])
+m4_define([orage_version], [4.11.2.17-git])
m4_define([gtk_minimum_version], [2.14.0])
m4_define([xfce_minimum_version], [4.8.0])
diff --git a/src/appointment.c b/src/appointment.c
index 7fb4862..5261f58 100644
--- a/src/appointment.c
+++ b/src/appointment.c
@@ -1460,7 +1460,8 @@ static xfical_exception *new_exception(char *text)
text[i-2] = '\0';
if (text[i-1] == '+') {
strcpy(recur_exception->type, "RDATE");
- strcpy(recur_exception->time, orage_i18_time_to_icaltime(text));
+ strncpy(recur_exception->time, orage_i18_time_to_icaltime(text), 16);
+ recur_exception->time[16] = '\0';
}
else {
strcpy(recur_exception->type, "EXDATE");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list