Contents of /trunk/prelink/patches/prelink-20060712-cache-segfault.patch
Parent Directory | Revision Log
Revision 153 -
(show annotations)
(download)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 629 byte(s)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 629 byte(s)
-import
1 | https://bugs.gentoo.org/show_bug.cgi?id=143753 |
2 | https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=197451 |
3 | |
4 | diff -urN prelink-0.0.20060712.orig/src/cache.c prelink-0.0.20060712/src/cache.c |
5 | --- prelink-0.0.20060712.orig/src/cache.c 2006-08-15 23:36:13.000000000 +0000 |
6 | +++ prelink-0.0.20060712/src/cache.c 2006-08-15 23:36:34.000000000 +0000 |
7 | @@ -336,8 +336,8 @@ |
8 | struct prelink_entry *a = * (struct prelink_entry **) A; |
9 | struct prelink_entry *b = * (struct prelink_entry **) B; |
10 | |
11 | - if (a == NULL && b != NULL) |
12 | - return 1; |
13 | + if (a == NULL) |
14 | + return (b != NULL); |
15 | if (a != NULL && b == NULL) |
16 | return -1; |
17 | |
18 | |
19 |