Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 367704 Details for
Bug 497878
net-irc/irssi-xmpp-0.52 - segmentation faults in func_sort_resource()
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch with NULL checks for func_sort_resource
irssi-xmpp-func_sort_resource-segfault.patch (text/plain), 772 bytes, created by
Edward "Hades"
on 2014-01-12 09:48:36 UTC
(
hide
)
Description:
patch with NULL checks for func_sort_resource
Filename:
MIME Type:
Creator:
Edward "Hades"
Created:
2014-01-12 09:48:36 UTC
Size:
772 bytes
patch
obsolete
>diff -ru irssi-xmpp-0.52.o/src/core/rosters.c irssi-xmpp-0.52/src/core/rosters.c >--- irssi-xmpp-0.52.o/src/core/rosters.c 2014-01-12 10:32:05.074196313 +0100 >+++ irssi-xmpp-0.52/src/core/rosters.c 2014-01-12 10:34:08.271699086 +0100 >@@ -86,8 +86,15 @@ > resource1 = (XMPP_ROSTER_RESOURCE_REC *)resource1_ptr; > resource2 = (XMPP_ROSTER_RESOURCE_REC *)resource2_ptr; > if ((cmp = resource2->priority - resource1->priority) == 0 >- && (cmp = resource2->show - resource1->show) == 0) >+ && (cmp = resource2->show - resource1->show) == 0) { >+ if (resource1->name == resource2->name) >+ return 0; >+ if (resource1->name == NULL) >+ return -1; >+ if (resource2->name == NULL) >+ return 1; > return strcmp(resource1->name, resource2->name); >+ } > return cmp; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 497878
: 367704