mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 22:50:07 +00:00
Don't use MALLOC_FAILURE_ACTION.
This commit is contained in:
parent
49f6c7f9d6
commit
1aa4fca163
@ -3808,7 +3808,7 @@ Void_t* cALLOc(n, elem_size) size_t n; size_t elem_size;
|
||||
(((INTERNAL_SIZE_T) 1) << (8 * sizeof (INTERNAL_SIZE_T) / 2))
|
||||
if (__builtin_expect ((n | elem_size) >= HALF_INTERNAL_SIZE_T, 0)) {
|
||||
if (elem_size != 0 && bytes / elem_size != n) {
|
||||
MALLOC_FAILURE_ACTION;
|
||||
__set_errno (ENOMEM);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user