as reported by Coverity with CIDs 72127, 72145, 72146, 72177, 72179, 72186, 731276, 731278, 1269888, 1269890