Received: from eggs.gnu.org ([2001:4830:134:3::10]:41151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn3Fj-0004jY-Kv for qemu-devel@nongnu.org; Wed, 21 May 2014 05:56:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wn3Fd-000242-BU for qemu-devel@nongnu.org; Wed, 21 May 2014 05:56:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn3Fd-00023v-1W for qemu-devel@nongnu.org; Wed, 21 May 2014 05:55:57 -0400 Message-ID: <1400666149.10933.36.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Wed, 21 May 2014 11:55:49 +0200 In-Reply-To: <1398348959-23048-4-git-send-email-batuzovk@ispras.ru> References: <1398348959-23048-1-git-send-email-batuzovk@ispras.ru> <1398348959-23048-4-git-send-email-batuzovk@ispras.ru> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 3/4] console: Abort on property access errors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kirill Batuzov Cc: qemu-devel@nongnu.org, Andreas =?ISO-8859-1?Q?F=E4rber?= On Do, 2014-04-24 at 18:15 +0400, Kirill Batuzov wrote: > All defined properties of QemuConsole are mandatory and no access to them > should fail. Nevertheless not checking returned errors is bad because in case > of unexpected failure it will hide the bug and cause a memory leak. > > Abort in case of unexpected property access errors. This change exposed a bug > where an attempt was made to write to a read-only property "head". > > Set "head" property's value at creation time and do not attempt to change it > later. This fixes the bug mentioned above. Picked into my console branch. thanks, Gerd