You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When reading a 0-based matrix, my copy of clSPARSE segfaults.
I traced the reason to clsparseSCsrMatrixfromFile() -> MMReadFormat() -> MMGenerateCOOFromFile() -> FillCoordData(), where each coordinate reduced by one. When removing this subtraction, the program does not segfault.
The actual segfault occurs in clsparseSCsrMatrixfromFile(), during conversion of COO to CSR. One of the coordinates in the file is 0, and becomes UINT_MAX, this causes the while loop to keep writing untill the end of the iCsrrow_pointer array.
Is this reader only for 1-based matrix files?
I removed the subtraction and it seems fixed now, do you see any other possible bugs?
The text was updated successfully, but these errors were encountered:
When reading a 0-based matrix, my copy of clSPARSE segfaults.
I traced the reason to clsparseSCsrMatrixfromFile() -> MMReadFormat() -> MMGenerateCOOFromFile() -> FillCoordData(), where each coordinate reduced by one. When removing this subtraction, the program does not segfault.
The actual segfault occurs in clsparseSCsrMatrixfromFile(), during conversion of COO to CSR. One of the coordinates in the file is 0, and becomes UINT_MAX, this causes the while loop to keep writing untill the end of the iCsrrow_pointer array.
Is this reader only for 1-based matrix files?
I removed the subtraction and it seems fixed now, do you see any other possible bugs?
The text was updated successfully, but these errors were encountered: