History

dnn/dnn_backend_native_layer_conv2d: Fix allocation size

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

Andreas Rheinhardt committed 6 years ago

Commit 9beaf531 parent 3e950f51 file · +1 −1Browse files

Unified · Split

libavfilter/dnn/dnn_backend_native_layer_conv2d.c+1−1
@@ -228,7 +228,7 @@ int dnn_execute_layer_conv2d(DnnOperand *operands, const int32_t *input_operand_ · 227 unmodified lines
228 228
229 //create threads229 //create threads
230 for (int i = 0; i < thread_num; i++){230 for (int i = 0; i < thread_num; i++){
231 thread_param[i] = av_malloc(sizeof(thread_param));231 thread_param[i] = av_malloc(sizeof(**thread_param));
232 thread_param[i]->thread_common_param = &thread_common_param;232 thread_param[i]->thread_common_param = &thread_common_param;
233 thread_param[i]->thread_index = i;233 thread_param[i]->thread_index = i;
234 pthread_create(&thread_id[i], NULL, dnn_execute_layer_conv2d_thread, (void *)thread_param[i]);234 pthread_create(&thread_id[i], NULL, dnn_execute_layer_conv2d_thread, (void *)thread_param[i]);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t