From patchwork Tue Sep 29 17:10:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "S. Fricke" X-Patchwork-Id: 7288781 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 39EC59F1D5 for ; Tue, 29 Sep 2015 17:11:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7A5AA20676 for ; Tue, 29 Sep 2015 17:11:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0B5DF205C7 for ; Tue, 29 Sep 2015 17:11:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964814AbbI2RLg (ORCPT ); Tue, 29 Sep 2015 13:11:36 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:34171 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933999AbbI2RLO (ORCPT ); Tue, 29 Sep 2015 13:11:14 -0400 Received: by wicfx3 with SMTP id fx3so160631239wic.1 for ; Tue, 29 Sep 2015 10:11:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=aFCN0VJpDQ8Icawi1wPH8RSKSQ9SZgJNifGQ8+sz2Ek=; b=nUmpQuK5kXSJQmJN60AHfWutQ32cwwWnn1FeyBQRA/qEUGyXGANPWV0XYxlnvB7pO7 bCCgAwWdF+Xo8vTovn5TEA/lyIKxHxJpKBVR5d34dJRrsOqP9kgEriAK9M7rMFQMLEAm IUd/h1r16hvYdoNMvby+SYx7fYQA27vW30rZDE9VVJnBUpLzPKjB6IqIeN38EPgMgYjc yuThxP2ULzd1SoXsZC6R/5FHo8ok81Y9lZUvbnQDGb5THAjJhDZhWT3jXz4mXdILpGyC x7+tql1tffQ3mGH1PtSNDENsa9qs88n9mHF4rg9SGOIfLq3SfARyFP6i/o1l/4qDertC TCLQ== X-Received: by 10.180.149.167 with SMTP id ub7mr27177642wib.43.1443546673167; Tue, 29 Sep 2015 10:11:13 -0700 (PDT) Received: from zwielicht.lan (ip5f5ba60a.dynamic.kabel-deutschland.de. [95.91.166.10]) by smtp.gmail.com with ESMTPSA id xt1sm24898618wjb.32.2015.09.29.10.11.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 Sep 2015 10:11:12 -0700 (PDT) From: Silvio Fricke To: linux-btrfs@vger.kernel.org Cc: Silvio Fricke Subject: [PATCH 11/11] btrfs-progs: check: fix memset range Date: Tue, 29 Sep 2015 19:10:46 +0200 Message-Id: <59828e2191068753dd166a5341ccf4d43a8a0370.1443546001.git.silvio.fricke@gmail.com> X-Mailer: git-send-email 2.5.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Silvio Fricke --- cmds-check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds-check.c b/cmds-check.c index 2923d05..2c32ff3 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -3021,7 +3021,7 @@ static struct root_backref *get_root_backref(struct root_record *rec, } backref = malloc(sizeof(*backref) + namelen + 1); - memset(backref, 0, sizeof(*backref)); + memset(backref, 0, sizeof(*backref) + namelen + 1); backref->ref_root = ref_root; backref->dir = dir; backref->index = index;