Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1
kdepimlibs4
r893956.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File r893956.diff of Package kdepimlibs4
Subject: kcal: crash fixes From: wstephenson@suse.de Bug: Patch-upstream: 893956 --- kcal/versit/vobject.c (revision 893955) +++ kcal/versit/vobject.c (revision 893956) @@ -1405,6 +1405,9 @@ wchar_t* fakeUnicode(const char *ps, int unsigned int uStrLen(const wchar_t *u) { int i = 0; + if(u == NULL) + return 0; + while (*u != (wchar_t)0) { u++; i++; } return i; } @@ -1412,7 +1415,12 @@ unsigned int uStrLen(const wchar_t *u) char* fakeCString(const wchar_t *u) { char *s, *t; - unsigned int len = uStrLen(u) + 1; + unsigned int len; + + if(u == NULL) + return NULL; + + len = uStrLen(u) + 1; t = s = (char*)malloc(len+1); while (*u) { if (*u == (wchar_t)0x2028) Index: kcal/versit/vobject.c ===================================================================
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor