summaryrefslogtreecommitdiffstats
path: root/redhat/kdepim/kdepim-3.5.13.1-fix_imapparser_segv.patch
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-10-21 19:27:55 +0200
committerFrancois Andriot <francois.andriot@free.fr>2012-10-21 19:27:55 +0200
commiteebed6b614c52895321754908c05b5082f531b85 (patch)
tree56bf0c5f54512c2fd8ed02cbe16d1da83b723461 /redhat/kdepim/kdepim-3.5.13.1-fix_imapparser_segv.patch
parent59daf455b483742c6c47099652117074df37889a (diff)
downloadtde-packaging-eebed6b614c52895321754908c05b5082f531b85.tar.gz
tde-packaging-eebed6b614c52895321754908c05b5082f531b85.zip
RHEL/Fedora/MGA/MDV/Suse: update main and libraries for TDE 3.5.13.1
Diffstat (limited to 'redhat/kdepim/kdepim-3.5.13.1-fix_imapparser_segv.patch')
-rw-r--r--redhat/kdepim/kdepim-3.5.13.1-fix_imapparser_segv.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/redhat/kdepim/kdepim-3.5.13.1-fix_imapparser_segv.patch b/redhat/kdepim/kdepim-3.5.13.1-fix_imapparser_segv.patch
new file mode 100644
index 000000000..4be0cd25f
--- /dev/null
+++ b/redhat/kdepim/kdepim-3.5.13.1-fix_imapparser_segv.patch
@@ -0,0 +1,44 @@
+--- kdepim-3.5.13.1/kioslaves/imap4/imapparser.cc.segv 2012-09-08 12:06:42.000000000 +0200
++++ kdepim-3.5.13.1/kioslaves/imap4/imapparser.cc 2012-09-26 12:05:13.897737893 +0200
+@@ -345,6 +345,7 @@
+ parseOneWordC(result); // *
+ TQByteArray what = parseLiteral (result); // see whats coming next
+
++ if(!what.isEmpty ()) {
+ switch (what[0])
+ {
+ //the status responses
+@@ -482,6 +483,7 @@
+ if (valid)
+ {
+ what = parseLiteral (result);
++ if(!what.isEmpty ()) {
+ switch (what[0])
+ {
+ case 'E':
+@@ -520,10 +522,12 @@
+ default:
+ break;
+ }
++ }
+ }
+ }
+ break;
+ } //switch
++ }
+ } //func
+
+
+@@ -1915,9 +1919,10 @@
+ if (!inWords.isEmpty() && inWords[0] == '{')
+ {
+ TQCString retVal;
+- ulong runLen = inWords.find ('}', 1);
+- if (runLen > 0)
++ long srunLen = inWords.find ('}', 1); // Can return -1, so use a signed long
++ if (srunLen > 0)
+ {
++ ulong runLen = (ulong)srunLen;
+ bool proper;
+ ulong runLenSave = runLen + 1;
+ TQCString tmpstr(runLen);