Commit 4b7b1477 authored by Emilian Peev's avatar Emilian Peev
Browse files

libexif: Avoid accessing invalid data

Exif tags Make and Model can be undefined or
lack string terminators. Check the EXIF size
before trying to compare their values to constant
strings.

Bug: 147140917
Test: run sts-engbuild-no-spl-lock -m StsHostTestCases --test
android.security.sts.Poc20_03#testPocBug_147140917

Change-Id: I255f1937bec99bff7e72482d525f252290d1ddaf
parent 1a6756b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment