commit | 4a86774d36f1a3c109a7e2da05aca9f9ca33b0df | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <pcc@google.com> | Thu Oct 22 23:05:11 2020 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Oct 22 23:05:11 2020 +0000 |
tree | 0cbbb48fc8e77ac87b29049daeefac565a507235 | |
parent | bae1b814cddeae589396327273550162a9d556be [diff] | |
parent | ebef015a20ca2b7a7b0ec49f94539886312c2705 [diff] |
Merge "Fix an out-of-bounds read in assoc_next."
diff --git a/qcom/pd-mapper/assoc.c b/qcom/pd-mapper/assoc.c index 692c882..460f0d0 100644 --- a/qcom/pd-mapper/assoc.c +++ b/qcom/pd-mapper/assoc.c
@@ -128,7 +128,7 @@ { unsigned long it = *iter; - while (!assoc->keys[it] && it < assoc->size) + while (it < assoc->size && !assoc->keys[it]) it++; if (it == assoc->size)