commit | d09003d1b3d40515845ee7171cb542fb60a0955d | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <pcc@google.com> | Tue Aug 20 10:31:18 2019 -0700 |
committer | Peter Collingbourne <pcc@google.com> | Tue Aug 20 10:48:01 2019 -0700 |
tree | 0d295c5dd1fb69c68b011438c4f83cc172f43adc | |
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