From d2ce7052ecdfb22e82cdc64075a5d122e4271d9d Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Thu, 9 Aug 2012 19:43:57 +0200 Subject: fiasco: If image_name_alloc_from_values fails, return -1 --- src/fiasco2.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/fiasco2.c b/src/fiasco2.c index 64ceef4..bdce830 100644 --- a/src/fiasco2.c +++ b/src/fiasco2.c @@ -510,6 +510,8 @@ int fiasco_unpack(struct fiasco * fiasco, const char * dir) { image = image_list->image; name = image_name_alloc_from_values(image); + if ( ! name ) + return -1; printf("\n"); printf("Unpacking image...\n"); -- cgit v1.2.3