diff options
| author | 2019-08-20 10:31:18 -0700 | |
|---|---|---|
| committer | 2019-08-20 10:48:01 -0700 | |
| commit | d09003d1b3d40515845ee7171cb542fb60a0955d (patch) | |
| tree | 0d295c5dd1fb69c68b011438c4f83cc172f43adc /opengl/libagl/texture.cpp | |
| parent | 82c7531ebcdf6afca4ef08b4e7227b2cebb38cd1 (diff) | |
gpuservice: Use startsWith() instead of compare() to check for a string prefix.
This fixes the behaviour in the case where the argument is lexicographically
greater than but not a prefix of "--gpumem=", as well as an out-of-bounds
read in the case where the argument is shorter than nine characters.
Found by running the CTS under HWASAN.
Bug: 139744799
Change-Id: Ie05bb31d9f490e45945ea26e1b03b9b5df4b976d
Diffstat (limited to 'opengl/libagl/texture.cpp')
0 files changed, 0 insertions, 0 deletions