From 175408733fcffed7aa0618c6d5ad5390ed5c4f88 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sun, 23 Feb 2020 11:09:44 +0000 Subject: [PATCH] fix use-after-free see https://oss-fuzz.com/testcase-detail/5663684670259200 --- libvips/foreign/matrixload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvips/foreign/matrixload.c b/libvips/foreign/matrixload.c index 305c1776..d9606b87 100644 --- a/libvips/foreign/matrixload.c +++ b/libvips/foreign/matrixload.c @@ -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 ); }