dovecot-2.2-pigeonhole: testsuite: Fixed out-of-bounds read in (...
pigeonhole at rename-it.nl
pigeonhole at rename-it.nl
Tue Jun 17 20:45:36 UTC 2014
details: http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/961137231f07
changeset: 1872:961137231f07
user: Stephan Bosch <stephan at rename-it.nl>
date: Tue Jun 17 22:38:12 2014 +0200
description:
testsuite: Fixed out-of-bounds read in (currently unused) string substitution implementation.
Reported by Coverity.
diffstat:
src/testsuite/testsuite-substitutions.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 827a317cfdc3 -r 961137231f07 src/testsuite/testsuite-substitutions.c
--- a/src/testsuite/testsuite-substitutions.c Tue Jun 17 22:28:06 2014 +0200
+++ b/src/testsuite/testsuite-substitutions.c Tue Jun 17 22:38:12 2014 +0200
@@ -44,7 +44,7 @@
testsuite_substitution_get
(unsigned int code)
{
- if ( code > substitutions_count )
+ if ( code >= substitutions_count )
return NULL;
return substitutions[code];
More information about the dovecot-cvs
mailing list