coverity#1190366 Uncaught exception

Change-Id: I18e732d8818ea9b6c0837b0df2bd58cb13066ec6
coverity#1190364 Uncaught exception

Change-Id: I647c7f7bf29c81c3ecafac4a8d18a61663e7738e
coverity#1190353 Argument cannot be negative

Change-Id: I32503188fb89087ac6db0ce634b46acaf645d3b5
coverity#1190350 Dereference after null check

Change-Id: Ia863c587b998270f68e6a6439891ce18a07ed626
coverity#1190354 Dereference null return value

Change-Id: I3f99bd8f0cfd8736fec558362819d9a814df8378
coverity#1190355 Dereference null return value

Change-Id: I6b93bed49a9d094b9988060ac3b0c9c1551ee4cb
coverity#1190349 Division or modulo by zero

Change-Id: Ia32e9197d0b5d5a02187d11f05bcf2dcae5ccb76
coverity#982472 Dereference after null check

Change-Id: Ie797775184260fe5b5024d85be4244a56aee274a
coverity#706316 help out coverity re tortured logic

Change-Id: I6d6a948fdac4442c69972316275349fe73b9e741
coverity#982487 Unchecked dynamic_cast

Change-Id: I011ab1fc6a4c69891c17c867fbe951c00811eac2
coverity#708336 Uninitialized scalar field

Change-Id: I9ccd8e1cf6fd06d7a6b7af57803f1e96e26b9963
coverity#708643 nOffsetY missing from copy ctor

its normally always 0, so shrink the code based
on that

Change-Id: Ic9a4615f0ecb0713a00e4acd73485f99fd50a859
coverity#708646 Uninitialized scalar field

Change-Id: I16d70c8e8d7da22a98ec04fca6b88f3b51577fde
coverity#708652 Uninitialized scalar field

Change-Id: Ideadc6cd30edeb993ca19fd28f97c8665c6bb4a6
coverity#708676 Uninitialized scalar field

Change-Id: Ia335de7960984f9700cb5a69f20b3c7773d1176c
coverity#708678 Uninitialized scalar field

Change-Id: I28c383f47697cce3306a2f8b4ed5d866edd32686
coverity#708679 Uninitialized scalar field

Change-Id: I198f9a163730edcd18f7359a4dd99f0d61911214
coverity#708726 Uninitialized scalar field

Change-Id: Idaa6cfffe33d4ab9451e322fcdbdbf5ad0e7629b
coverity#738679 Uninitialized scalar field

Change-Id: Idfec68c208403db08cee7b1b6930b336e532055b
coverity#738680 Uninitialized scalar field

Change-Id: I0db24150f143c3b5f6459b518d0fc9649fe8a786