Skip to content

Commit

Permalink
Fix null pointer dereference
Browse files Browse the repository at this point in the history
As reported by honggfuzz
  • Loading branch information
tbeu committed Nov 23, 2017
1 parent 702fd2d commit 783ee49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/matdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 783ee49

Please sign in to comment.