mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
elf: Fix incorrect comparison in sort_priorities_by_name
Reported-By: Stefan Liebler <stli@linux.ibm.com>
This commit is contained in:
@@ -153,7 +153,7 @@ sort_priorities_by_name (void)
|
|||||||
else
|
else
|
||||||
to_compare = previous->name_length;
|
to_compare = previous->name_length;
|
||||||
int cmp = memcmp (current->name, previous->name, to_compare);
|
int cmp = memcmp (current->name, previous->name, to_compare);
|
||||||
if (cmp >= 0
|
if (cmp > 0
|
||||||
|| (cmp == 0 && current->name_length >= previous->name_length))
|
|| (cmp == 0 && current->name_length >= previous->name_length))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user