diff options
author | Volker Lendecke <vl@samba.org> | 2015-03-05 11:10:35 +0100 |
---|---|---|
committer | Ira Cooper <ira@samba.org> | 2015-03-05 15:59:11 +0100 |
commit | bd3b2c3d9b09f385a74ee80b1d87b1a71428c162 (patch) | |
tree | 0ad94244b6bf2b1d5b74cca3a92b6bbb0944924d /source3/modules/perfcount_test.c | |
parent | 5968310060ddc298835a8ee720ae7fe68aece1b9 (diff) | |
download | samba-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.c | 2 |
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) { |