Add a size check. This code cannot be built on environments (UINT32_MAX > SIZE_MAX).