commit | 5caaebdc3d3424959b176182b2ecde556a16f554 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Fri Feb 02 14:38:04 2018 -0800 |
committer | Josh Gao <jmgao@google.com> | Tue Feb 06 12:59:06 2018 -0800 |
tree | 7eb06e57f4d5353a6b1fbc5c6a7b4a6599002cf4 | |
parent | 5e5076404aa57ea232079c0dc60698b37719ac85 [diff] |
adb: restore packet data length checks. These checks were moved to after the read of the payload, which is too late. Add a check before each read to avoid a heap buffer overflow. Test: python test_device.py with x86_64 emulator, walleye Change-Id: I86bcfaaa9004951cc52ad89af74680cf748e717d