소스 검색

Fix buffer overflow

Samuel Thibault 13 년 전
부모
커밋
add8a538dd
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      examples/interface/complex_interface.c

+ 1 - 0
examples/interface/complex_interface.c

@@ -187,6 +187,7 @@ static struct starpu_data_interface_ops interface_complex_ops =
 	.get_size = complex_get_size,
 	.footprint = complex_footprint,
 	.interfaceid = -1,
+	.interface_size = sizeof(struct starpu_complex_interface),
 };
 
 void starpu_complex_data_register(starpu_data_handle_t *handleptr, uint32_t home_node, double *real, double *imaginary, int nx)