diff options
author | Josh Gao <jmgao@google.com> | 2020-01-15 14:45:35 -0800 |
---|---|---|
committer | Treehugger Robot <treehugger-gerrit@google.com> | 2020-01-17 22:06:57 +0000 |
commit | 15669a69f163362047b695e76565d93af3283e6f (patch) | |
tree | 5f1de6cb473c6afc3315f5b779460173a83aafb3 /compiler/optimizing/graph_visualizer.cc | |
parent | 6442eaf8b21c85d60648f7a7498a6aeb299af861 (diff) |
jdwp: switch to libbase's ReceiveFileDescriptors.
There are some missing checks in the previous use of cmsg(3) to receive
file descriptors, which could result in an fd leak (if we received two
file descriptors, since CMSG_SPACE(4) == CMSG_SPACE(8) on 64-bit).
This isn't actually a real issue, because the other end is trusted to do
the right thing, but switch this over to avoid cargo-cult copy/paste
into places where we don't trust the other side.
Bug: http://b/122047630
Test: treehugger
Change-Id: I53347805b91e5a36c20ab42e6761412270ea6c8e
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions