Browse Source

Fix reused_requests size, we get overflows otherwise

Samuel Thibault 9 years ago
parent
commit
133291affe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/datawizard/coherency.c

+ 1 - 1
src/datawizard/coherency.c

@@ -582,7 +582,7 @@ struct _starpu_data_request *_starpu_create_request_to_fetch_data(starpu_data_ha
 	struct _starpu_data_request *requests[nhops + write_invalidation];
 
 	/* Did we reuse a request for that hop ? */
-	int reused_requests[nhops];
+	int reused_requests[nhops + write_invalidation];
 
 	/* Construct an array with a list of requests, possibly reusing existing requests */
 	int hop;