silence coverity#1027865 Out-of-bounds access

and coverity#1027864

Change-Id: Ic3d1b91ef77ab3510c7428b7135dd9f249d56b4b
fix debug=2 build

Change-Id: I9b5b2efc3b8fc3164264775b608348baa72d31b1