commit | 79e3be8a84cf70a87f48c4299fc7051d3d618c5f | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon Feb 11 14:37:21 2019 -0800 |
committer | Josh Gao <jmgao@google.com> | Mon Feb 25 23:21:23 2019 -0800 |
tree | 249519c6441e21728f74b0e232a3acc2b050ad57 | |
parent | e24b30b7d4b8851592c59446939fe032aef439a0 [diff] |
Switch LocalSocket to android::base::{Send,Receive}FileDescriptorVector. The previous implementation allocated an array of size CMSG_SPACE(count) to store CMSG_LEN(count * sizeof(int)) elements, which leads to bad things happening for values of count greater than 1 on 32-bit, and 2 on 64-bit. Test: atest android.net.LocalSocketTest Test: atest android.net.cts.LocalSocketTest Change-Id: I0a9502c3358d8fa92d2d20e344c6270d6baedc07