commit | c60c36916666ead0ad9c599b82a86708a91eb767 | [log] [tgz] |
---|---|---|
author | François Gaffie <francois.gaffie@renault.com> | Fri Aug 09 15:41:24 2019 +0200 |
committer | Eric Laurent <elaurent@google.com> | Wed Oct 09 15:05:58 2019 -0700 |
tree | 520eb229b4f475fdc7134d594b3fb9b47f72330c | |
parent | bc5c7de7048dfe5ca33652533582328775bd4169 [diff] |
audiopolicy: engineconfigurable: fix potential segfault if no default device If no default device is available from configuration.xml, and if the engine fallbacks on it anyway, it tries to get its type without checking the pointer validity. This CL fix the potential segfault and assert with explicit error message. Test: build Change-Id: Icf8d7f5ef998dad6f4033d934b48d408030c7e17 Signed-off-by: François Gaffie <francois.gaffie@renault.com>