summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorJoshua J. Drake <android-open-source@qoop.org>2015-04-08 23:31:25 -0500
committerPaul Kocialkowski <contact@paulk.fr>2015-08-31 00:22:01 +0200
commit16ffb57cee83d15382286570fe96c375a5dbb30e (patch)
treebb86e609749ec510b57a9617a03651a05e8268db /cmds
parent006d9021fc6c7ed492eda25d5e9ac1fb0b11a17b (diff)
downloadframeworks_av-16ffb57cee83d15382286570fe96c375a5dbb30e.zip
frameworks_av-16ffb57cee83d15382286570fe96c375a5dbb30e.tar.gz
frameworks_av-16ffb57cee83d15382286570fe96c375a5dbb30e.tar.bz2
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: Id70546c9a9d7a1af58ccbf732b000246bc6bb22e Signed-off-by: Joshua J. Drake <android-open-source@qoop.org> Tested-by: Moritz Bandemer <replicant@posteo.mx>
Diffstat (limited to 'cmds')
0 files changed, 0 insertions, 0 deletions