From 19b27c846e924e41c651e8f8ce687d7f7b46c6c7 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Mon, 23 Jul 2018 15:55:32 +0100 Subject: [PATCH] fix possible used-before-set in radiance.c some versions of glib might not zero some parts of the Read struct see https://github.com/jcupitt/libvips/issues/1040 --- libvips/foreign/radiance.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libvips/foreign/radiance.c b/libvips/foreign/radiance.c index 4411abbf..2e346e7f 100644 --- a/libvips/foreign/radiance.c +++ b/libvips/foreign/radiance.c @@ -1021,6 +1021,7 @@ read_new( const char *filename, VipsImage *out ) read->prims[2][1] = CIE_y_b; read->prims[3][0] = CIE_x_w; read->prims[3][1] = CIE_y_w; + read->buffer = NULL; g_signal_connect( out, "close", G_CALLBACK( read_destroy ), read );