commit | ad435371a4b95e16ceb49ab28efc04da8b3680e1 | [log] [tgz] |
---|---|---|
author | Joshua J. Drake <android-open-source@qoop.org> | Wed Apr 08 23:31:25 2015 -0500 |
committer | Nick Kralevich <nnk@google.com> | Thu Apr 09 17:34:16 2015 -0700 |
tree | ad8b4ad627fcee22ab60f9a711d447dc64759bda | |
parent | e2e812e58e8d2716b00d7d82db99b08d3afb4b32 [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