coverity#1242656 Untrusted loop bound

Change-Id: I1b06497065fa52b928f99c2955391af68f4ff1b7
coverity#1242656 Untrusted loop bound

Change-Id: I229701ad12d33f2fe73b2db5fce217abbb6ea155
coverity#1242653 Untrusted loop bound

Change-Id: I911685ea84e0b2dbee1f18aaba425f5d18677687
coverity#1242531 Untrusted loop bound

Change-Id: I94308a517028a62ecf7018f6d7a4e9d37c0f56a6
coverity#1000600 Division or modulo by zero

Change-Id: I38fb8a7072eb7905f5dccc8697b3176d8b34c6c2
coverity#703988 silence Unchecked return value

its not really like the other checked patterns

Change-Id: Ied788b5bad93581bf687d7b3d230971095959bb1
coverity#704001 silence Unchecked return value

that's definitely ok, it returns if its an
advanced query, and we don't care as we're going
to force it to be anyway

Change-Id: I5c5fec3f0978bc7f66db0b746dd69b60dc4c9026
coverity#704052 Unchecked return value

that's ok I think

Change-Id: I8ad2f3eab55d5a5907c431532768c9080fccfcf5
coverity#704066 Unchecked return value

that's ok I think

Change-Id: Ie8dd3b938a058d771791471833fde4ef4ceef252
coverity#704067 Unchecked return value

and

coverity#704068 Unchecked return value

those are ok I think

Change-Id: I7869c3f4200792d4bafafdff49735e8563d2e822
coverity#704072 Unchecked return value

Change-Id: I3bd198fc21bb414a0b80e8234e22782e24e0477e
coverity#704085 Unchecked return value

other patterns aren't really the same as this one

Change-Id: Ie26fd5c01d156004f755017a859679e904a29520
coverity#704086 Unchecked return value

following check is sufficient

Change-Id: Ibcf53293c8e862ab823ed422d1a7a59dcc0977cf
coverity#704089 Unchecked return value

rework code a little to help coverity out

Change-Id: I4aa253a579153ad389d4667a9676fff04aa00a34
coverity#704090 Unchecked return value

going to assume that this is correct

Change-Id: I47072dc668f200eacf0f6a6d7ccdad0c9d6bfa68
coverity#735305 Unchecked return value

Change-Id: I0f03b67a5df3427e78f70f2b86aba26024ea575f
coverity#735309 Unchecked return value

Change-Id: I15cbfb15054962998a058da1381a84bb667944ef
coverity#1078448 Unchecked return value

Change-Id: Icbdd0b6b19a91a3339c8635c112729b46232069e
coverity#1078486 Unchecked return value

Change-Id: I762796b848aa8d8dd35b401e03bf40af18fb8e72
coverity#1157745 Unchecked return value

Change-Id: I06e8e946063dc54335f3b672105d5cd0b3ff71a4