You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifmi_unlikely(size>PTRDIFF_MAX) { // we don't allocate more than PTRDIFF_MAX (see <https://sourceware.org/ml/libc-announce/2019/msg00001.html>)
110
+
ifmi_unlikely(size>(MI_MAX_ALLOC_SIZE-MI_PADDING_SIZE)) { // we don't allocate more than MI_MAX_ALLOC_SIZE (see <https://sourceware.org/ml/libc-announce/2019/msg00001.html>)
104
111
#ifMI_DEBUG>0
105
112
_mi_error_message(EOVERFLOW, "aligned allocation request is too large (size %zu, alignment %zu)\n", size, alignment);
106
113
#endif
107
114
returnNULL;
108
115
}
109
116
constuintptr_talign_mask=alignment-1; // for any x, `(x & align_mask) == (x % alignment)`
110
-
constsize_tpadsize=size+MI_PADDING_SIZE; // note: cannot overflow due to earlier size > PTRDIFF_MAX check
117
+
constsize_tpadsize=size+MI_PADDING_SIZE; // note: cannot overflow due to earlier size check
111
118
112
119
// try first if there happens to be a small block available with just the right alignment
0 commit comments