Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2220686pxj; Sun, 30 May 2021 18:24:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjoxpGEJOOZuRCTK5B678woji2B6ibcHTuDC04Z5bCKtNMhjBUkOPY/c3Mi0+CqYTMc5xZ X-Received: by 2002:a17:906:f298:: with SMTP id gu24mr2132620ejb.452.1622424287649; Sun, 30 May 2021 18:24:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622424287; cv=none; d=google.com; s=arc-20160816; b=xCexrWK79/qRNvLkowV6Tqz/OMkN3g+HYMJ5op8L5FC2KSFmvmf7+f6M+bea6HdwLM ByxZn0WKtrJvaf8QQf5jXfFz0PTVPLUV0Mn553be4O38SVcelJcqU+wi5kA8ypC3Sxx2 CTCUiWJoLNoIksoKqsvY9ba2qKs+eQYWffMj/D9XzkshHerNnngnnGIkBit0w+bCJBxR RMotbjGW0mDaokWKYX6PnocA0J23m6I1LS+aosJ9H+Q1KLZsahQaS1DPv7ZHyLMQ0ptT zqpEi4Lxf4UH9ci35e4mGWRInX7AZF8Vpi2oDgI4s8W/3WVk2zxhEIZ4B7bSNc1SWG9q gSQw== 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 :user-agent:date:message-id:cc:to:subject:from; bh=olh9xI5kwAahjHss916uVViro2DKKNYTPRL9PuoxaM0=; b=n6BI1rKB0HhZp4Pl8hfXSmRPWkopUgKEO4T3D5sYcmQhrfdlhIBEV9/z4pFgiLo6Tv ISPEchSzhrSpmKicxUSx7YUhXc0tFpbzvZZ5JbjYIvrQ7ScPkPUXuRF+I4nbwVxI3CUv 2sOqJkggFw0aTzg9IAVR+sSpta3tQHqHzt98c678xJlTZYjU0h3Sgpr5hjvduCpd+SmJ Qz08EdPXKjV2JzRJgmZAqm36RAJB68wZzj7B7tBzP/zT5xkrehEnwibSw9qKqn6cABvb c6GK1NCrvhXFsEb+dke2uzuPUYc+ndJETwoOz+YUW1KQF0HG5yRFzJL0IzNesjL89cuL jaHw== 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 b6si13227132edu.115.2021.05.30.18.24.17; Sun, 30 May 2021 18:24: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 S230002AbhEaBZa (ORCPT + 99 others); Sun, 30 May 2021 21:25:30 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:2109 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229891AbhEaBZa (ORCPT ); Sun, 30 May 2021 21:25:30 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FtcrZ4NmdzWqMN for ; Mon, 31 May 2021 09:19:10 +0800 (CST) Received: from dggpemm500014.china.huawei.com (7.185.36.153) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 31 May 2021 09:23:50 +0800 Received: from [10.174.179.184] (10.174.179.184) 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; Mon, 31 May 2021 09:23:49 +0800 From: Wu Guanghao Subject: [PATCH V2 00/12] e2fsprogs: some bugfixs and some code cleanups To: , =?UTF-8?B?0JHQu9Cw0LPQvtC00LDRgNC10L3QutC+INCQ0YDRgtGR0Lw=?= CC: , Message-ID: <00ad4a90-8a40-24c1-98d9-eb5f0da42436@huawei.com> Date: Mon, 31 May 2021 09:23:49 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.184] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) 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 V1 -> V2: [PATCH V2 03/12] zap_sector: fix memory leak free and return operators placed in {} block [PATCH V2 04/12] ss_add_info_dir: fix memory leak and check whether,NULL pointer modified "=" to "==" [PATCH V2 06/12] append_pathname: check the value returned by realloc to avoid segfault [PATCH V2 07/12] argv_parse: check return value of malloc in argv_parse() Fix typos [PATCH V2 10/12] hashmap: change return value type of, ext2fs_hashmap_add() remove "new_block = NULL;" Zhiqiang Liu (6): 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() argv_parse: check return value of malloc in argv_pars Wu Guanghao (6): profile_create_node: set magic before strdup(name) to fix memory leak tdb_transaction_recover: fix memory leak zap_sector: fix memory leak ss_add_info_dir: fix memory leak and check whether NULL pointer ss_create_invocation: fix memory leak and check whether NULL pointer append_pathname: append_pathname: check the value returned by realloc to avoid segfault contrib/android/base_fs.c | 12 +++++++++--- contrib/fsstress.c | 10 ++++++++-- ext2ed/main.c | 2 ++ lib/ext2fs/fileio.c | 11 +++++++++-- lib/ext2fs/hashmap.c | 12 ++++++++++-- lib/ext2fs/hashmap.h | 4 ++-- lib/ext2fs/tdb.c | 1 + lib/ss/error.c | 2 ++ lib/ss/help.c | 5 +++++ lib/ss/invocation.c | 38 ++++++++++++++++++++++++++++++++------ lib/support/argv_parse.c | 2 ++ lib/support/profile.c | 3 ++- misc/create_inode.c | 3 +++ misc/lsattr.c | 6 ++++++ misc/mke2fs.c | 1 + 15 files changed, 94 insertions(+), 18 deletions(-) -- 2.19.1