Fix handling of encoded ints

Fix encoding of ints to handle ints with high bit set. Modify Parser to
detect when it is decoding a run-on badly encoded int (ie, >5 bytes).

Bug:14817987
Change-Id: I4a21b126d03e2e244b0fd4c4fb4821d165897ad6
9 files changed