* mallocx.c (GC_memalign): Do not handle case of
offset >= VALID_OFFSET_SZ; add assertion for offset; add static
assertion for VALID_OFFSET_SZ value.
if (offset != 0) {
offset = align - offset;
if (!GC_all_interior_pointers) {
- if (offset >= VALID_OFFSET_SZ) return GC_malloc(HBLKSIZE);
+ GC_STATIC_ASSERT(VALID_OFFSET_SZ <= HBLKSIZE);
+ GC_ASSERT(offset < VALID_OFFSET_SZ);
GC_register_displacement(offset);
}
}