diff options
author | Josh Gao <jmgao@google.com> | 2018-02-02 14:38:04 -0800 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2018-02-06 12:59:06 -0800 |
commit | 5caaebdc3d3424959b176182b2ecde556a16f554 (patch) | |
tree | 7eb06e57f4d5353a6b1fbc5c6a7b4a6599002cf4 /init/action_parser.cpp | |
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
Diffstat (limited to 'init/action_parser.cpp')
0 files changed, 0 insertions, 0 deletions