summaryrefslogtreecommitdiff
path: root/libasyncio/AsyncIO.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2018-02-02 14:38:04 -0800
committerJosh Gao <jmgao@google.com>2018-02-06 12:59:06 -0800
commit571d24c7df9c81e39ae481d09979760ef93b54d7 (patch)
tree7eb06e57f4d5353a6b1fbc5c6a7b4a6599002cf4 /libasyncio/AsyncIO.cpp
parent7859012eb0a15922a55fc15933acb1cd59df6bfa (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 'libasyncio/AsyncIO.cpp')
0 files changed, 0 insertions, 0 deletions