From c6858c3fb0939e088237fbe8a0adc6c5dede0f43 Mon Sep 17 00:00:00 2001 From: Nghia Ho Date: Sat, 17 Aug 2013 20:32:13 +1000 Subject: [PATCH] Buffer is accessed out of bounds. --- modules/ocl/src/haar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ocl/src/haar.cpp b/modules/ocl/src/haar.cpp index 6283ac8d9f..934957e593 100644 --- a/modules/ocl/src/haar.cpp +++ b/modules/ocl/src/haar.cpp @@ -262,7 +262,7 @@ static GpuHidHaarClassifierCascade * gpuCreateHidHaarClassifierCascade( CvHaarCl int datasize; int total_classifiers = 0; int total_nodes = 0; - char errorstr[100]; + char errorstr[256]; GpuHidHaarStageClassifier *stage_classifier_ptr; GpuHidHaarClassifier *haar_classifier_ptr;