commit | 5a10b58d452b427511512000ea57640aff982dc9 | [log] [tgz] |
---|---|---|
author | Andre Eisenbach <eisenbach@google.com> | Mon Jan 11 12:24:14 2016 -0800 |
committer | Andre Eisenbach <eisenbach@google.com> | Mon Jan 11 22:21:37 2016 +0000 |
tree | 7736c74fafbb99ae0a499873986581d7d87b661b | |
parent | a467e5c9af24c997ca78ab7b18047f107c78022c [diff] |
Assert on memory allocation failure This CL is a pre-cursor to cleaning up repeated memory allocation code full of null-pointer checks. In the vast majority of cases in the Bluetooth stack, a failed allocation is not recoverable and results in undefined behaviour. By asserting, we can ensure we have a shot at catching and fixing any issues not caused by OOM conditions. Bug: 26494317 Change-Id: I53dff98c596068211934a1808f90de2d4484f952