- Two checks to avoid potentially dangerous memory allocations caused by
  corrupted or maliciously prepared module data.