mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
[BZ #3924]
* sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix a few more little bugs in creating the stack frame when pltexit has to be called.
This commit is contained in:
@@ -378,8 +378,9 @@ verify_persistent_db (void *mem, struct database_pers_head *readhead, int dbnr)
|
||||
nscd_ssize_t he_cnt = 0;
|
||||
for (nscd_ssize_t cnt = 0; cnt < head->module; ++cnt)
|
||||
{
|
||||
ref_t first = head->array[cnt];
|
||||
ref_t work = first;
|
||||
ref_t trail = head->array[cnt];
|
||||
ref_t work = trail;
|
||||
int tick = 0;
|
||||
|
||||
while (work != ENDREF)
|
||||
{
|
||||
@@ -439,9 +440,12 @@ verify_persistent_db (void *mem, struct database_pers_head *readhead, int dbnr)
|
||||
|
||||
work = here->next;
|
||||
|
||||
if (work == first)
|
||||
if (work == trail)
|
||||
/* A circular list, this must not happen. */
|
||||
goto fail;
|
||||
if (tick)
|
||||
trail = ((struct hashentry *) (data + trail))->next;
|
||||
tick = 1 - tick;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user