Magellan Linux

Annotation of /trunk/prelink/patches/prelink-20060712-cache-segfault.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153 - (hide annotations) (download)
Tue May 8 20:52:56 2007 UTC (17 years, 1 month ago) by niro
File size: 629 byte(s)
-import

1 niro 153 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