commit | bd26a64425a3ee93058ec8f26ecd92fb636943ca | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <pcc@google.com> | Fri Oct 23 04:46:15 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Oct 23 04:46:15 2020 +0000 |
tree | 0cbbb48fc8e77ac87b29049daeefac565a507235 | |
parent | 6ebba3ae3bcc148c1ad566efa6ab0c36d688e6e9 [diff] | |
parent | 36e2bce0d3e9ae0415003bd750554cab942b9981 [diff] |
Merge "Fix an out-of-bounds read in assoc_next." am: 4a86774d36 am: 64d8ff4eef am: 36e2bce0d3 Original change: https://android-review.googlesource.com/c/device/linaro/dragonboard/+/1468267 Change-Id: I37b0784c883064b5f493d031c75b44eef2339e3c
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)