Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4849194pxv; Tue, 27 Jul 2021 18:56:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbmdNVN1Has6mmR9ZCvGYEbbD9GRAMXkAtco2+58cksdiW6OKyWfXfLTAtObzdpf4RMMIU X-Received: by 2002:a5e:9747:: with SMTP id h7mr11719258ioq.92.1627437407760; Tue, 27 Jul 2021 18:56:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627437407; cv=none; d=google.com; s=arc-20160816; b=O+c2D28nZZY6zf9SSm6H5AnEqPYMnGtRELo5mgKEUYl9vi0ly5dAHW+5DtU1n94Lc6 ZX3FToAuE4quuNe3lgONFwjfJJn2TmvLUXdgobv+vB28t84bm6xv5pnnRz4zddv5tV4P C8y+TmBe6WPePoCupm46XuG4/FIPgB0hUPFoOl2JxJX64xlIPg3SBADqqa8uMd9Ur4ZY xlpQGiSaF0CfJrlG7JN9OJJIB7Hng9xEWs4Y70/COMJlq+3iIAspvJbsu57Bo7uVU4HC htLPJtdPwqLsj+eUIw76+LLODDGu3134Nkegdi4sWjZGgmqkFNWx3XFv7aAJ5glPsqvX 3Vcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=3E/+JfpeX8DqsTTBlZPjntMNp1y9ViNwByzIYTAq3EQ=; b=BeK7OhMVoN53tFRgaAAhB6Jhf70YKbDgq4C5/NrySThoDMoWaAYXKk4eDi+dO2OnC1 cEhdUehVyFSgstHiFVIcrm1nGymXfZ6BNTUiSZUGldesDfCCNsKxGhHyz/XlzKNzV7t7 TCxCoqDJVAFbNaFStErcVXRsrZmb5QsrQHsZ7MlXF6EM9TZRsVxdTTYlFZ5on8gwtgz2 2/Sx9m+s+kY7A9/RWTL5MlU4QmNB9KlpqegAyX+GyFV3k+zPgwic7bnqOTKswo2cU8px UDkOAeuWgDMpubGD9qBuV63fadGC1RzNY6ufO/xZAX1HNVZWj84dn05BfPPksQUd6QkP NaOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d14si4952292ilq.43.2021.07.27.18.56.31; Tue, 27 Jul 2021 18:56:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234015AbhG1B40 (ORCPT + 99 others); Tue, 27 Jul 2021 21:56:26 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:7752 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232926AbhG1B40 (ORCPT ); Tue, 27 Jul 2021 21:56:26 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4GZGnw15ndzYhJP; Wed, 28 Jul 2021 09:50:28 +0800 (CST) Received: from dggpemm500014.china.huawei.com (7.185.36.153) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 28 Jul 2021 09:56:23 +0800 Received: from huawei.com (10.175.104.170) by dggpemm500014.china.huawei.com (7.185.36.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 28 Jul 2021 09:56:23 +0800 From: wuguanghao To: , CC: , , Subject: [PATCH v3 00/12] e2fsprogs: some bugfixs Date: Wed, 28 Jul 2021 09:56:44 +0800 Message-ID: <20210728015648.284588-1-wuguanghao3@huawei.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.104.170] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500014.china.huawei.com (7.185.36.153) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Wu Guanghao v2->v3 [PATCH v3 04/12]ss_add_info_dir: don't zap the info->info_dirs and check whether NULL pointer [PATCH v3 05/12]ss_create_invocation: fix memory leak and check whether NULL pointer [PATCH v3 10/12]hashmap: change return value type of ext2fs_hashmap_add() [PATCH v3 11/12]misc/lsattr: check whether path is NULL in lsattr_dir_proc() modify according to Ted's suggestion. Other patches have been applied and not sent v1->v2 error correction Zhiqiang Liu (6): argv_parse: check return value of malloc in argv_parse() misc: fix potential segmentation fault problem in scandir() lib/ss/error.c: check return value malloc in ss_name() hashmap: change return value type of ext2fs_hashmap_add() misc/lsattr: check whether path is NULL in lsattr_dir_proc() ext2ed: fix potential NULL pointer dereference in dupstr() Wu Guanghao (6): append_pathname: check the value returned by realloc profile_create_node: set magic before strdup(name) to avoid memory leak tdb_transaction_recover: fix memory leak zap_sector: fix memory leak ss_add_info_dir: don't zap the info->info_dirs and check whether NULL pointer ss_create_invocation: fix memory leak and check whether NULL pointer contrib/android/base_fs.c | 14 +++++++++---- contrib/fsstress.c | 10 ++++++++-- ext2ed/main.c | 2 ++ lib/ext2fs/fileio.c | 11 ++++++++-- lib/ext2fs/hashmap.c | 12 +++++++++-- lib/ext2fs/hashmap.h | 5 +++-- lib/ext2fs/tdb.c | 1 + lib/ss/error.c | 2 ++ lib/ss/help.c | 5 ++++- lib/ss/invocation.c | 42 ++++++++++++++++++++++++++++++--------- lib/support/argv_parse.c | 2 ++ lib/support/profile.c | 3 ++- misc/create_inode.c | 3 +++ misc/lsattr.c | 5 +++++ misc/mke2fs.c | 4 +++- 15 files changed, 97 insertions(+), 24 deletions(-) -- 2.27.0