commit | 9a3cbe46866927feb070c11cb7b36f097db37a13 | [log] [tgz] |
---|---|---|
author | Joshua J. Drake <android-open-source@qoop.org> | Wed Apr 08 23:31:25 2015 -0500 |
committer | Jon Larimer <jlarimer@google.com> | Fri Jul 31 15:19:05 2015 -0400 |
tree | 1ad61ce9ef39beeb01097af4cbf06b6962b981b8 | |
parent | 0b572f5d7bc0aff37d6b39841249defaadc569d5 [diff] |
Detect allocation failures and bail gracefully During the processing of several sample table related MP4 atoms, allocation sizes could be large enough cause a std::bad_alloc exception to be raised. This typically causes a crash (denial of service condition). Use std::nothrow to catch allocation failures and return gracefully. Bug: 20139950 Change-Id: I03d3f01b24e5fe3fa38985914bcfa694ea3dc09e