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
Hello,
I believe that there is a bug in the num_nonzeros_ counter in the block_sparse_matrix.cc . There is a check for integer overflow in the constructor. This is OK. But this check is missing in the case where the counter is incremented e.g. in AppendRows() . As a result there are cases of num_nonzeros_ < 0 which results in undefined behavior. This problem is maybe also relevant in other types of matrices where nonzeros counter is used.
The text was updated successfully, but these errors were encountered:
Hello,
I believe that there is a bug in the num_nonzeros_ counter in the block_sparse_matrix.cc . There is a check for integer overflow in the constructor. This is OK. But this check is missing in the case where the counter is incremented e.g. in AppendRows() . As a result there are cases of num_nonzeros_ < 0 which results in undefined behavior. This problem is maybe also relevant in other types of matrices where nonzeros counter is used.
The text was updated successfully, but these errors were encountered: