mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
(get_cached_stack): Don't crash if we first found a stack with a larger size then needed.
This commit is contained in:
@ -114,7 +114,8 @@ get_cached_stack (size_t *sizep, void **memp)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result->stackblock_size > curr->stackblock_size)
|
if (result == NULL
|
||||||
|
|| result->stackblock_size > curr->stackblock_size)
|
||||||
result = curr;
|
result = curr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user