Fix a crash in KDE 3 PIM, patch found in my archives.
"can go in" espie@
This commit is contained in:
parent
c900c0873e
commit
97d4af3e1a
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.74 2012/11/24 09:08:09 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.75 2013/01/11 15:07:18 zhuk Exp $
|
||||
|
||||
COMMENT = KDE personal information applications
|
||||
COMMENT-kpilot = KDE interface to sync with Palm Pilot
|
||||
@ -61,7 +61,7 @@ MODULES = x11/kde devel/gettext
|
||||
|
||||
LIB_DEPENDS += x11/kde/libs3
|
||||
|
||||
REVISION = 12
|
||||
REVISION = 13
|
||||
REVISION-kpilot = 3
|
||||
|
||||
WANTLIB += DCOP GL GLU ICE SM X11 Xcursor Xdamage Xext Xfixes
|
||||
|
13
x11/kde/pim3/patches/patch-libkmime_kmime_util_cpp
Normal file
13
x11/kde/pim3/patches/patch-libkmime_kmime_util_cpp
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-libkmime_kmime_util_cpp,v 1.1 2013/01/11 15:07:18 zhuk Exp $
|
||||
--- libkmime/kmime_util.cpp.orig Tue Dec 14 19:15:26 2010
|
||||
+++ libkmime/kmime_util.cpp Wed Dec 15 01:19:55 2010
|
||||
@@ -154,7 +154,8 @@ QString decodeRFC2047String(const QCString &src, const
|
||||
declaredCS+=(*pos);
|
||||
pos++;
|
||||
}
|
||||
- if (*pos!='?' || i<4 || i>=maxLen) valid = FALSE;
|
||||
+ if (*pos!='?' || i<4 || i>=maxLen || pos[1]=='\0' || pos[2]=='\0')
|
||||
+ valid = FALSE;
|
||||
else
|
||||
{
|
||||
// get encoding and check delimiting question marks
|
Loading…
Reference in New Issue
Block a user