Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d09003d1 authored by Peter Collingbourne's avatar Peter Collingbourne
Browse files

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
parent 82c7531e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment