Skip to content
Extraits de code Groupes Projets
Valider e22de7af rédigé par Nicolas MARIE's avatar Nicolas MARIE
Parcourir les fichiers

fixe segv in gpu implementation

parent 7d4cceff
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -57,7 +57,7 @@ read_input_file_max(int fd, int *size, off_t offset)
printf("diff: %i\n", to_read);
#endif
/* Allocate data to copy the target text */
buf = (char *) malloc(fsize * sizeof(char));
buf = (char *) malloc(to_read * sizeof(char));
if (buf == NULL)
{
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter