diff options
| author | Volker Lendecke <vl@samba.org> | 2015-03-05 11:11:59 +0100 |
|---|---|---|
| committer | Ira Cooper <ira@samba.org> | 2015-03-05 15:59:12 +0100 |
| commit | 819d4b4bcd71ea82930365df33cc4b76a4835130 (patch) | |
| tree | 7c6e5a09412362f549654f88755aad394392a1f9 /source3 | |
| parent | bd3b2c3d9b09f385a74ee80b1d87b1a71428c162 (diff) | |
| download | samba-819d4b4bcd71ea82930365df33cc4b76a4835130.tar.gz samba-819d4b4bcd71ea82930365df33cc4b76a4835130.tar.xz samba-819d4b4bcd71ea82930365df33cc4b76a4835130.zip | |
perfcount: Fix CID 1035493 Out-of-bounds read
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
Diffstat (limited to 'source3')
| -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 c4f7c2e335..86d44ef845 100644 --- a/source3/modules/perfcount_test.c +++ b/source3/modules/perfcount_test.c @@ -132,7 +132,7 @@ static const char *smb_subop_name(int op, int subop) { /* trans */ if (op == 0x25) { - if (subop > sizeof(trans_subop_table) / + if (subop >= sizeof(trans_subop_table) / sizeof(trans_subop_table[0])) { return "unknown"; } |
