What is the meaning of this malloc error? Corrupted top size?

Your loop goes up to sizePM while you allocate sizeVM entries.