Upvote:2
According to the Timatic Database, the common airline industry travel document resource, no visa or transit visa is necessary provided a) the Cochin layover is less than 24 hours, b) the Malaysian passenger is heading for a destination outside India, and c) the passenger remains in the international transit area (that is, "airside") and does not leave the airport.
No visa is therefore required in these circumstances.