Browse Source

dnn/dnn_backend_native_layer_conv2d: Fix allocation size

Found via ASAN with the dnn-layer-conv2d FATE-test.

Reviewed-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
tags/n4.4
Andreas Rheinhardt 5 years ago
parent
commit
9beaf536fe
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/dnn/dnn_backend_native_layer_conv2d.c

+ 1
- 1
libavfilter/dnn/dnn_backend_native_layer_conv2d.c View File

@@ -228,7 +228,7 @@ int dnn_execute_layer_conv2d(DnnOperand *operands, const int32_t *input_operand_

//create threads
for (int i = 0; i < thread_num; i++){
thread_param[i] = av_malloc(sizeof(thread_param));
thread_param[i] = av_malloc(sizeof(**thread_param));
thread_param[i]->thread_common_param = &thread_common_param;
thread_param[i]->thread_index = i;
pthread_create(&thread_id[i], NULL, dnn_execute_layer_conv2d_thread, (void *)thread_param[i]);


Loading…
Cancel
Save