summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-mobilephone/smstools/files/2.2.12-buffer-overflow.patch')
-rw-r--r--app-mobilephone/smstools/files/2.2.12-buffer-overflow.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/app-mobilephone/smstools/files/2.2.12-buffer-overflow.patch b/app-mobilephone/smstools/files/2.2.12-buffer-overflow.patch
new file mode 100644
index 000000000000..4f8ac2673345
--- /dev/null
+++ b/app-mobilephone/smstools/files/2.2.12-buffer-overflow.patch
@@ -0,0 +1,12 @@
+diff -Nru smstools.orig/src/cfgfile.c smstools/src/cfgfile.c
+--- smstools.orig/src/cfgfile.c 2006-11-04 13:52:06.000000000 +0200
++++ smstools/src/cfgfile.c 2006-12-02 16:41:21.674892919 +0200
+@@ -144,7 +144,7 @@
+ if (splitline(line,name,size_name,value,size_value)==0)
+ {
+ strncpy(value,line,size_value);
+- value[size_value]=0;
++ value[size_value-1]=0;
+ return -1;
+ }
+ else