Skip to content

Commit cf274e2

Browse files
committed
Similar missing checks for the dense case in the BSP1D and hybrid backends
1 parent e4c0a49 commit cf274e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/graphblas/bsp1d/blas2.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ namespace grb {
9090
return SUCCESS;
9191
}
9292
if( descr & descriptors::dense ) {
93+
if( nnz( u ) < size( u ) ) {
94+
return ILLEGAL;
95+
}
9396
if( nnz( v ) < size( v ) ) {
9497
return ILLEGAL;
9598
}
@@ -233,6 +236,9 @@ namespace grb {
233236
return SUCCESS;
234237
}
235238
if( descr & descriptors::dense ) {
239+
if( nnz( u ) < size( u ) ) {
240+
return ILLEGAL;
241+
}
236242
if( nnz( v ) < size( v ) ) {
237243
return ILLEGAL;
238244
}

0 commit comments

Comments
 (0)