b6c67e051d
as reported by Coverity with CIDs 72147-72149,72187,72188,731274,731275,741356, 1269889,1269893,1271535 and 1269872