Do not terminate the process with ASan on allocator returning 0 13/208613/1 accepted/tizen/base/20190629.012834 submit/tizen_base/20190627.021435
authorMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Wed, 26 Jun 2019 10:41:55 +0000 (13:41 +0300)
committerMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Wed, 26 Jun 2019 10:41:55 +0000 (13:41 +0300)
commit220096a0ac7c0dd994ec63e68b5a0d70cd1ca5e6
tree949146db3b15506c614225a10034f4cea60ca7db
parentfcb8cc380044bfef256e094a876a6a32e9b18fe6
Do not terminate the process with ASan on allocator returning 0

ASan allocator will not crash and return 0 in case of out-of-memory.

Currently *null* will be returned for the following cases inside internal
allocator:

- Requested size is more than 3 << 30 for 32bits and 1 << 40 for 64bits.
- Requested size overflow.
- RSS limit excided
- mmap syscall returns 0

Change-Id: Iddb84e52153449965bc6de2fd33807478db50cd3
packaging/gcc-contrib.spec