Permalink
Browse files

Fix null pointer dereference

As reported by honggfuzz
  • Loading branch information...
tbeu committed Nov 23, 2017
1 parent 702fd2d commit 783ee496a6914df68e77e6019054ad91e8ed6420
Showing with 4 additions and 0 deletions.
  1. +4 −0 tools/matdump.c
View
@@ -681,6 +681,10 @@ static void
print_default_numeric_3d(matvar_t *matvar)
{
size_t i, j, k, l, stride;
if ( NULL == matvar->data )
return;
stride = Mat_SizeOf(matvar->data_type);
if ( matvar->isComplex ) {
mat_complex_split_t *complex_data = (mat_complex_split_t*)matvar->data;

0 comments on commit 783ee49

Please sign in to comment.