commit | 571d24c7df9c81e39ae481d09979760ef93b54d7 | [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 | 7859012eb0a15922a55fc15933acb1cd59df6bfa [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