libutils: Fix integer overflows in VectorImpl.
Use external/safe-iop to check for overflows on arithmetic
Also remove an unnecessary copy of Vector/SharedBuffer from
codeflinger and use the copy from libutils instead.
Note that some of the unit tests are somewhat useless due to
test-runner limitations : gtest's ability to filter on abort message
doesn't work when combined with messages formatted by android's logging
(cherry picked from commit c609c31fb56ae434caa2d0153cd0a2f74a715071)
17 files changed