fix use-after-free
see https://oss-fuzz.com/testcase-detail/5663684670259200
This commit is contained in:
parent
1a0e61510b
commit
175408733f
|
@ -236,9 +236,9 @@ vips_foreign_load_matrix_load( VipsForeignLoad *load )
|
|||
x < load->out->Xsize;
|
||||
x++, p = q )
|
||||
if( vips_strtod( p, &matrix->linebuf[x] ) ) {
|
||||
g_free( line );
|
||||
vips_error( class->nickname,
|
||||
_( "bad number \"%s\"" ), p );
|
||||
g_free( line );
|
||||
return( -1 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue