summaryrefslogtreecommitdiff
path: root/scripts/gcc-wrapper.py
diff options
context:
space:
mode:
authorConnor O'Brien <connoro@google.com>2018-05-23 13:00:23 -0700
committerConnor O'Brien <connoro@google.com>2018-05-24 12:34:35 -0700
commit9ff3cfc1ec343023b1027b341e03b892e066340b (patch)
treefd6ce9002fc7959b039f64ab5fed45d2f141a3b1 /scripts/gcc-wrapper.py
parentc3c51ea38a927e64e9e107d6d794a6e62c3f5731 (diff)
ANDROID: proc: fix undefined behavior in proc_uid_base_readdir
When uid_base_stuff has no entries, proc_uid_base_readdir tries to compute an address before the start of the array. Revise this check to use uid_base_stuff + nents instead, which makes the code valid regardless of array size. Bug: 80158484 Test: No more compiler warning with CONFIG_CPU_FREQ_TIMES=n Change-Id: I6e55b27c3ba8210cee194f6d27bbd62c0b263796 Signed-off-by: Connor O'Brien <connoro@google.com>
Diffstat (limited to 'scripts/gcc-wrapper.py')
0 files changed, 0 insertions, 0 deletions