Prechádzať zdrojové kódy

Fix buffer overflow

Samuel Thibault 13 rokov pred
rodič
commit
add8a538dd
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  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)