coverity#706008 Unintended sign extension

Change-Id: I60f3404ae87aa0d1088110715d0ba1dd32fab09d
coverity#706005 Unintended sign extension

Change-Id: I5670617f03deaac0d8923a38f765c9870eacfc97
coverity#706004 Unintended sign extension

Change-Id: Ia8c12fbb9e546343eccf34b6f8e842983c287b2d
coverity#706003 Unintended sign extension

Change-Id: I888b5610a00a152551776e5d8f82fc5353bc880d
coverity#705838 Dereference before null check

Change-Id: I00037e6be04d7839e8387cb8771ef0a963eec371
coverity#705861 Dereference before null check

Change-Id: Ia027a5990769413dff323ff0e0b6fd66633b9339
coverity#705870 Dereference before null check

Change-Id: Ie4588f8cb0f11b831d091b0f478b78d0472af160
coverity#705871 Dereference before null check

Change-Id: I5e52347ce5cee26dffb4d47fc8d320567a0fea31
coverity#704728 Unchecked dynamic_cast

Change-Id: I2db2d6ffdca1775f21969b523ede56b3fb3fd682