Loading...
--- libmalloc/libmalloc-646.0.13/src/magazine_tiny.c
+++ libmalloc/libmalloc-521.100.59/src/magazine_tiny.c
@@ -277,7 +277,7 @@
 		if (!clear) {
 			break;
 		}
-		MALLOC_FALLTHROUGH;
+		// fall through
 	case MALLOC_ZERO_ON_ALLOC:
 		memset(ptr, '\0', TINY_BYTES_FOR_MSIZE(msize));
 		break;
@@ -2250,12 +2250,6 @@
 				BITMAPV_CLR(tiny_mag_ptr->mag_bitmap, slot);
 			}
 			this_msize = get_tiny_free_size(ptr);
-			if (os_unlikely(this_msize < msize)) {
-				malloc_zone_error(MALLOC_ABORT_ON_CORRUPTION, true,
-						"Corruption of tiny freelist %p: size too small (%u/%u)\n",
-						ptr, this_msize, msize);
-
-			}
 			tiny_update_region_free_list_for_remove(slot, ptr, next);
 			tiny_check_and_zero_inline_meta_from_freelist(rack, ptr, this_msize);
 			goto add_leftover_and_proceed;
@@ -2272,11 +2266,6 @@
 	ptr = limit->p;
 	if (ptr) {
 		this_msize = get_tiny_free_size(ptr);
-        if (os_unlikely(this_msize < msize)) {
-            malloc_zone_error(MALLOC_ABORT_ON_CORRUPTION, true,
-                    "Corruption of tiny freelist %p: size too small (%u/%u)\n",
-                    ptr, this_msize, msize);
-        }
 		next = free_list_unchecksum_ptr(rack, &ptr->next);
 		if (this_msize - msize > NUM_TINY_SLOTS) {
 			// the leftover will go back to the free list, so we optimize by