commit | 5edc4eaef4e3950cf1e2642b9b1bd9209b78adc1 | [log] [tgz] |
---|---|---|
author | Phil Burk <philburk@google.com> | Fri Apr 17 08:15:42 2020 -0700 |
committer | Phil Burk <philburk@google.com> | Mon Apr 20 13:43:54 2020 -0700 |
tree | fd017115b7fc03a9c6e1614a0710a70856a77714 | |
parent | 2a52ad31f4880e46056566c99246749238dc5e5f [diff] |
aaudio: free endpoint to prevent crashes Free the AudioEndpoint and check for nullptr to prevent accessing shared memory that had been freed. This is to protect against calls to the stream after AAudioStream_release() has been called. Bug: 154274446 Bug: 154274027 Test: libaaudio/tests/test_various.cpp Change-Id: I194d502fd48c4d31602ffce76aca6b28753ad7d2