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
{{ message }}
Repository navigation
slice_count overflow for very large allocations #876
mi_assert_internal(slice->slice_count==slice_count); // no overflow?
The mi_segment_os_alloc is successful (possibly due to overcommit), but then the slice_count is truncated, which leads to either an assertion error (in debug builds) or floating point error due to a divide by zero.
Activity
Issue microsoft#876: Fix integer overflow on slice_count
Issue microsoft#876: Fix integer overflow on slice_count
vstinner commentedon Apr 15, 2024
I proposed a fix: #877
daanx commentedon Apr 19, 2024
Ah, that is a terrible bug but I just merged a fix. I am going to do a fresh release tag soon.
Thanks so much!