summaryrefslogtreecommitdiffstats
path: root/jni/feature_mos/src/mosaic/Blend.cpp
diff options
context:
space:
mode:
authorEmilian Peev <epeevs@codeaurora.org>2016-01-07 20:14:45 +0100
committerDaniel Hillenbrand <codeworkx@cyanogenmod.org>2016-01-07 11:40:00 -0800
commit707bdfd17f5e056fbea8fd3e0f4f15cd8fb39960 (patch)
tree3b2403c1a2f555611605d6dba328de83eec3b041 /jni/feature_mos/src/mosaic/Blend.cpp
parent735ba518afd8b8e7d2f76dcc9e5ec6415c708472 (diff)
downloadandroid_packages_apps_Snap-707bdfd17f5e056fbea8fd3e0f4f15cd8fb39960.tar.gz
android_packages_apps_Snap-707bdfd17f5e056fbea8fd3e0f4f15cd8fb39960.tar.bz2
android_packages_apps_Snap-707bdfd17f5e056fbea8fd3e0f4f15cd8fb39960.zip
SnapdragonCamera: Correct AutoHDR callback data size check
Currently the AutoHDR functionality which handles metadata callbacks always assumes that the length of the callback data buffer will be equal to 12 bytes. It will always try to read and convert 3 32-bit integers. The check before this processing is incorrect as it allows buffers which are less than 12 bytes to be processed as well. This can lead to array out of bounds exceptions, which are also possible during FD snapshot metadata callbacks that don't contain any faces. In this particular scenario the metadata callback buffer size will be 8 bytes. Change-Id: I4094aaa56aa4135d2d806861353d49c8d7f9985c CRs-Fixed: 799110
Diffstat (limited to 'jni/feature_mos/src/mosaic/Blend.cpp')
0 files changed, 0 insertions, 0 deletions