Add buffer size checks to eliminate security vulnerability.

Bug:140054506
Test: This will need to be tested by bferris@ as I don't have the
facilities to test this.

Change-Id: I5977e216bcaecd4ed10c0a991bed2860e6d627d9
Merged-In: I5977e216bcaecd4ed10c0a991bed2860e6d627d9
1 file changed
tree: 010fd5704df43b73287aee7b20d889978fbaeb2a
  1. src/
  2. Android.bp
  3. CleanSpec.mk