Message ID | 20240730153707.168357-12-nick.alcock@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <binutils-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0222B385DDCA for <patchwork@sourceware.org>; Tue, 30 Jul 2024 15:40:22 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by sourceware.org (Postfix) with ESMTPS id 37A2D385B82F for <binutils@sourceware.org>; Tue, 30 Jul 2024 15:37:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 37A2D385B82F Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=oracle.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 37A2D385B82F Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=205.220.165.32 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1722353880; cv=pass; b=VWAu9MgL6ONih8kg09pL154ItRJBcTmbdHCbaca/QELSTXVieHmmPLhQ1v4+YtNFCZ0YAJ4W9a64GcOOyFnBr3QDhh699tYG1Q3NoX6wY+eExl5kdYlXfaeyM1hdkIvA3/nZr75S7xDwjelaj28PMtz6TujpRzFIYtF6+DS81fI= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1722353880; c=relaxed/simple; bh=IdCERtImTz+OKn2YM+fx2FOU5f/pCzZrr+YTr9qDWNI=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=io4EpcTr2af2DBbkkVqeGEzU5d1JnIMB0nRVV3IXZmNN6f+3GpETaBWNDOcKhct78yOXUZdtmeg1KAMtsNsiQI9tdyJOOqb7rGfflERQHF1linNfElTgdMt0sKuHamchuoK0d1Mkiq/bROT3uGaJJG9SePUXDsj525Arso2CttQ= ARC-Authentication-Results: i=2; server2.sourceware.org Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46UFMce4010457 for <binutils@sourceware.org>; Tue, 30 Jul 2024 15:37:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h= from:to:subject:date:message-id:in-reply-to:references :content-transfer-encoding:content-type:mime-version; s= corp-2023-11-20; bh=rlogmZ0eDySltn9Y49mWdahXbdqcvj1wnIDnYxisT8w=; b= KRFHya1vntanrV8Ib4Jf2DMe5culUfWedvsHhOTZNHyI2jkYNTEjV04+LPH0SIwY BQ/8XbWxIDYEsNRKdrxeFiabyVCUv4DWdxDnImqRXuq++elAEj02FVYg6EN5c8XZ 8W6OzzJGH0qvbWs0nDR3OP2ph69gyU7ECBYxxFR23Yf6hXRtMitO7JHFPAdyVdof TpTcMpz8ESI506qEN8qw4ajh4GlHL9zTtUqm9RDZPWHGAUwGItJU9iC9uLp5L5VM kuPZg+fSkonQ+hXumV3M7fJxC9sFYsfjygbKGWFOv3Em7cQjhoHXce7uGWGJQ5Y4 l9194nv2q6Am3qGxgaausg== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 40mqtanc4t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <binutils@sourceware.org>; Tue, 30 Jul 2024 15:37:56 +0000 (GMT) Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 46UEe0NE031079 for <binutils@sourceware.org>; Tue, 30 Jul 2024 15:37:54 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2044.outbound.protection.outlook.com [104.47.70.44]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 40neht6ser-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <binutils@sourceware.org>; Tue, 30 Jul 2024 15:37:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UgBcn60NQ+rVr49Zt7InQ2T//idpD3q+N0Oon4F1SAFV40ocuY75ZZO9bIumTl5daPKmyobm7ZnO21NaIAfkoBkW8SXiR1L0SyI+LaAK8k1/RzbKa9nlOC8sxGFxy3SVl9rXw3LZHTCdaYigUA3lQRABgH2oSzpsEUuLh3DIZPCVQ5OQ9oP0NNIS+ydRqa1Rl2fgNy8tkr1raKCtdqRM6/vYYZHY3tAx7ABXWpWqr/VYU/tQ0pXhd++BMrXyWJMUrvPuFRjSXZsGg7d4HE8nkYofg3/dpp3iH+X32ygZm/Wh5A1/QEGFO8pZuFKy7iVBaIAvn3Lsli7mLmkkIBYrHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rlogmZ0eDySltn9Y49mWdahXbdqcvj1wnIDnYxisT8w=; b=YbLdZnoNy97esqyau2JoQ4T97Cdfn9iscW7rhZgt79VTvwd9qM2mpnXBzuHWWkIkgA3WGi/ptwZOoLwuONm5C+GtD95tYe57XM5GZM5gwF/dzvXz96ob9z8wcgr0pgbQ1tbqiax++hga7zCoCqExw7j5Ugno1sVsX6rnkgZ4fFIaHEsnp1oxvdQE9v7F/tG2j5rZ5e4sdgbhFULYWsHCeDuAI3fVOJYac9i6HbRSUgzy2KjU7FXaz7q5/IanecBcA70QLFKTvw9t0W/2QWTMz3sjSyG5E7IosfYdh6qNmeCsXpet+n2v3R34gDont1DNx797ZuFWZvpn4RqTJBTe8w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rlogmZ0eDySltn9Y49mWdahXbdqcvj1wnIDnYxisT8w=; b=KODY1IHtAAlqSoTFq6oHiYaUMc2AZ50JS3pIakv49Hz70/N3dmxOiMGCHePwxK9EXvGTqgG4ACwLLiL1VriGKv8Dd4dMvjBcK+TUPcUfWN+lmIyGiOhUKCAqFDfABRw0vvYmZS3lwtc9L3zHXeZebLjX4kPxKGB2mXwtJYriXFU= Received: from MW4PR10MB6608.namprd10.prod.outlook.com (2603:10b6:303:22e::8) by DM4PR10MB7476.namprd10.prod.outlook.com (2603:10b6:8:17d::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Tue, 30 Jul 2024 15:37:52 +0000 Received: from MW4PR10MB6608.namprd10.prod.outlook.com ([fe80::b53a:ccc1:c190:c5df]) by MW4PR10MB6608.namprd10.prod.outlook.com ([fe80::b53a:ccc1:c190:c5df%6]) with mapi id 15.20.7807.026; Tue, 30 Jul 2024 15:37:52 +0000 From: Nick Alcock <nick.alcock@oracle.com> To: binutils@sourceware.org Subject: [PATCH 11/19] libctf, open: Fix enum error handling path Date: Tue, 30 Jul 2024 16:36:59 +0100 Message-ID: <20240730153707.168357-12-nick.alcock@oracle.com> X-Mailer: git-send-email 2.45.2.276.g4ac82df17e In-Reply-To: <20240730153707.168357-1-nick.alcock@oracle.com> References: <20240730153707.168357-1-nick.alcock@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: LO4P123CA0144.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:193::23) To MW4PR10MB6608.namprd10.prod.outlook.com (2603:10b6:303:22e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR10MB6608:EE_|DM4PR10MB7476:EE_ X-MS-Office365-Filtering-Correlation-Id: 0e5bb54a-5b04-4c75-ce1c-08dcb0ad934e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info: gAzoawd0Pxg+zKRXQzdY7dwHaVeSddnexg0Q+DuOKdHNDQPFKxk9vMdrMoyw1cwd9oIfzypnfCzPjbfgzYhXTE6dCoFYjaYKN50GylaM8V1yMAlmiKiZyPUUC9dXb/fYYiuwEjdxXuJDmEebcLmCOClkPIZP1KuG7XBXQKXEwzCjhaGjND0EiGnN2pprTYnbKbyFMAmhVYOB//91+WqKLvbkfxtT6DvlDyO61ljhPUj7dL2LuNpDkgwbboyCtcTrpDlTgYUmwU+mSKG/P7NUKM3gSa3k0fDyZogqRzCtJGPT/Cmg3knj9W1lrqkdBSsDwRzyr6BN7TP43qw9o1mj6yg8oHAw+LrRji8bzKZ9/BTgDKM8rEnJzeUGHFCRvz/DxkEWUxvJbOoqfLbWKus+f2FN6rwQsHan7WHzaN7dQnFURYBCdeqIlqi28u8XlLipbBL/i+Wx4GOJkvxZzku+xqLZ94g4szhRfaFaVh7TVwsyJ+Fm45HETtNhgw/Op7AzJ22FxukgY65PQ+Ck3/gU809GCtbZK5zovPkQ5sJS3iuXCcXE4r5rVWplYkwbDaeH63DdwZc8IfgRVyb7xcj+ZEy19VdGziMcw/N2GOzsKTiBhtdL5c5Z9pEiuaQ4J9ouQV7WmB3TKSyc3C8H3YLyUD6sVNGy7sOa2s4WKPyuo9WeTXSgqzcpgWhmE1DWOorU6qT2SeQ/WCnncrc56m03HTwCFGJEvmMYYOyibi2wEWkKmGIBQsDcJ16tbf6vm88wgvHPpqyHmtD6lYTd91au2OFZAjKdCIGi+Mwd+sSHNcy56Wap/ratuuvzNu2mEReWQWc7+sjbkKVCd3ofaak+a2+zTeHpCu/vP8UcuUHXlO6Sj1noUt5eH1PPBo/WCAJIT+KfaQlTyUGaqecMcYQOequZ5fZzG8WtfGSeGGgncLnpNyusn21avrpMWxxiadrclbvFlZJZA5GIIpNJarxER6J5dSJGO0QV76RP0QBhfGcaM7eTA6FF3gKHLbFZiH99eFtZVMTC/EGL4psP/ZrZgF8vGKrVso2QNu4oczs2LkFicYtQW65iuorx3/u8KQBAX+pB0CelkYHVDi4O1T2WNEF53RxItntgiODBb2AwIG0ClngKTaoYo9RzbHBROw+xCFECa1bq/C6TkFY2IR34m69yVskgBKvjUgatZpeL7gyZqAuv7X/CCVfsOgMz5rfTQVCCDu4njRTnU5qlewbwTWInAHc2kJb6cvGHGDOzt0KDy2TI+c/GoF5xommWvUelzgqqDCEanCg+iZZREoyqvRDe9WU4uJeYraaG7WRpeP/LaiF2Uh6Pec5xgvYSSyJb4mKuUkICfKPb004Fx6tuiA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW4PR10MB6608.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kV/at+ahNpldG3EqSwTgV+iovfbiNrUbiFENGt4yz9NBpz1zmWI9qldaxkfrBDI8RPl+qUaXRs7D/cQ322u5Vp6s0Y2348lhItth0Yn8DP7vxkGjlTw2msHSTitBEiiH5CcF8aHOUCuVvKc10YRHvw8Idh5JeurJjwNoq90nmVaSYj6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KMEenQ3T6ebpZHHY4yru87VYsNPefp2d1iTE0aTxkprlH9blAGBqP5BZEyptpJdQp5KbDkCHUKE/rw938rMXWVumBDrcFTEBf1rEfA38FrqSyZCMO5g1bncUWs4ek5O453QWbZoDzwTgg+1A2d7wdd/STB/acfT7NhbPvhZfJyZe/QLqSDBiXyozDfMc0C+73GoddoJa8+mPIaTD5SC0Ppb/Q9axcLnlnKpQgREaflZaYIAecssOgLyWtT6dePM4qDG/1APlFa+/pv+dHoH5TNaY94KIbQSEI8T4HleqRdYc5+Uuf6FDBCik4vQxvJ4TT7TB8Wb8geS6pTXz6tX07Kz2rFBBXKJST4t1PLm05crs0e7jveg== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 8wOz+52eL9jm7WisS6fv0WTfLX7YtgsfO7QAFptGEuz8deUOFZcaSEcAO2NuG93X4upsM6hH8uB/o/DLWnZtubrxMLNrN8wBR95gKThk04amFIVS8dIiAx0dMBvytAbBLrAaMvGgJEmqxufYAct5vkaNGm87p6QZbaphjaN9wdMJtSaRw9jC+EF58AzqLxLLPJoP9rdt+s74CIf1iHdTkqCxeG4yPHGnF1fcvsIGg+fgncPkEu2r6OCPUGF1+lyX7i+461xajkHrSbm2/CgJufSkOx6mwvvcwx8x3AFMO3iekS6sSELN6CJNv0M0YXHnhCIpy6D6ZQN69wA0cltP7qZOPDaKQlV+IgOnSJsxEgxxpOTpZgEhcZx9BFwtqEaNIFI+8HCvxb04ABgOSemi6BXKhMcJZSRiX+NpORjLdwU54JyN+3X5F9uzgpJCP6UHJSASHiiDFbTloxJY0lYsaQfOwfpgqJ+6VYg+WOInq+4F395Ggn4hABOOWHb2sYcpdMWi7K2uEEMq+3UsWszcUyp/flsNWAx7t03+W4y8tUPBCjWmUA18wePiP6v7ddfTOaK+L68PibNQM7i494wqO2B458kA0gA7/zm+Ju53/eU= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e5bb54a-5b04-4c75-ce1c-08dcb0ad934e X-MS-Exchange-CrossTenant-AuthSource: MW4PR10MB6608.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 15:37:52.8087 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vUceCoATt+LCvO+sk6v/1AQ593mOk3us6YsMuda1ZadYKQmH1IVJNY1j1xig6tO+myd/za9lQ67ShCOv2PNykA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB7476 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-30_13,2024-07-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 spamscore=0 mlxlogscore=851 suspectscore=0 bulkscore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2407300106 X-Proofpoint-GUID: RkA2OtCGk1VBU1mFDWn5IFpA67AMrEqv X-Proofpoint-ORIG-GUID: RkA2OtCGk1VBU1mFDWn5IFpA67AMrEqv X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org |
Series |
libctf: various bugfixes (including a write into freed memory), and loosen constraints on enums
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_binutils_build--master-arm | fail | Patch failed to apply |
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 | fail | Patch failed to apply |
Commit Message
Nick Alcock
July 30, 2024, 3:36 p.m. UTC
This new error-handling path was not properly initializing the fp's errno. libctf/ * ctf-open.c (init_static_types_internal): Set errno properly. --- libctf/ctf-open.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/libctf/ctf-open.c b/libctf/ctf-open.c index fd6d36edc46..ab97cde3ebf 100644 --- a/libctf/ctf-open.c +++ b/libctf/ctf-open.c @@ -1066,6 +1066,7 @@ init_static_types_internal (ctf_dict_t *fp, ctf_header_t *cth, continue; enum_err: + ctf_set_errno (fp, err); ctf_next_destroy (i_constants); ctf_next_destroy (i); return ctf_errno (fp);