summaryrefslogtreecommitdiff
path: root/source3/modules/perfcount_test.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-03-05 11:10:35 +0100
committerIra Cooper <ira@samba.org>2015-03-05 15:59:11 +0100
commitbd3b2c3d9b09f385a74ee80b1d87b1a71428c162 (patch)
tree0ad94244b6bf2b1d5b74cca3a92b6bbb0944924d /source3/modules/perfcount_test.c
parent5968310060ddc298835a8ee720ae7fe68aece1b9 (diff)
downloadsamba-bd3b2c3d9b09f385a74ee80b1d87b1a71428c162.tar.gz
perfcount: Fix CID 1035492 Out-of-bounds read
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
Diffstat (limited to 'source3/modules/perfcount_test.c')
-rw-r--r--source3/modules/perfcount_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/perfcount_test.c b/source3/modules/perfcount_test.c
index 9ff2d36adcc..c4f7c2e3351 100644
--- a/source3/modules/perfcount_test.c
+++ b/source3/modules/perfcount_test.c
@@ -69,7 +69,7 @@ static void perfcount_test_add_counters(struct perfcount_test_context *ctxt)
found = false;
- if (ptc->op > MAX_OP)
+ if (ptc->op >= MAX_OP)
continue;
for (head = g_list[ptc->op]; head != NULL; head = head->next) {