From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Us6mq-0006ux-Cs for qemu-devel@nongnu.org; Thu, 27 Jun 2013 03:38:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Us6mn-0007ot-RF for qemu-devel@nongnu.org; Thu, 27 Jun 2013 03:38:36 -0400 Received: from mail-pb0-x232.google.com ([2607:f8b0:400e:c01::232]:40779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Us6mn-0007oa-Ks for qemu-devel@nongnu.org; Thu, 27 Jun 2013 03:38:33 -0400 Received: by mail-pb0-f50.google.com with SMTP id wz7so542401pbc.23 for ; Thu, 27 Jun 2013 00:38:32 -0700 (PDT) From: Xu Wang Date: Thu, 27 Jun 2013 03:38:18 -0400 Message-Id: <1372318700-25103-1-git-send-email-cngesaint@gmail.com> Subject: [Qemu-devel] [PATCH 0/2] Add infinite loop checking in img_create() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: cngesaint@gmail.com, Xu Wang From: Xu Wang If user creates a image with loop in backing file, qemu doesn't give any warning or error report and creation successful. If this image was opend by qemu, no response would occure and segment fault would happend at last. Hence these patches refine and export infinite loop checking in collect_image_info_list() and add checking into img_create(). If a loop would occure, an error info output and creation interrupted. Xu Wang (2): Refine and export infinite loop checking in collect_image_info_list() Check infinite loop in img_create() qemu-img.c | 121 ++++++++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 100 insertions(+), 21 deletions(-) -- 1.8.1.4