Message ID | 20240802071210.413366-16-poulhies@adacore.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=C4wyZ3DW; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WZxw85NnBz1ydv for <incoming@patchwork.ozlabs.org>; Fri, 2 Aug 2024 17:16:40 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0C4FE385F012 for <incoming@patchwork.ozlabs.org>; Fri, 2 Aug 2024 07:16:39 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by sourceware.org (Postfix) with ESMTPS id 25C663858428 for <gcc-patches@gcc.gnu.org>; Fri, 2 Aug 2024 07:12:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 25C663858428 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 25C663858428 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::32e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722582761; cv=none; b=KOPoyh/FBMSEOtivoZqLBP/lDOM5+V3FuUckI7OzrrC00MLbKMwd3I9mR0i9O0A2+KUEZbdUcb7XcrMo7DI9EbGb5hnTy0yCu8OOf/diHmfTlwnTSTw6CiEsKpf++eN1VsOf2H5ynCkrWt2WemrOkBB3jdQGEszLhWKNO8stkWQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722582761; c=relaxed/simple; bh=7tpKgtZT7eFJiNNJfkUaHd4/z99UWavJpKf0fmzI3Uk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Mp5ib++Ep1gnpUI/R7VO70XXcmifcPSBfQicjAKHtg5Yj9eTNSwjvjZqKieNSDHvXywRop1KAgItQSkFmd5PEWEfRYEN6lKNsPHaYTVMsIKSXmtixifpi2sYIydXwXbCirleDkDHESSP22PXuN/mhPZNdSkgLz1xaK2kvb56CuU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-42816ca782dso50544725e9.2 for <gcc-patches@gcc.gnu.org>; Fri, 02 Aug 2024 00:12:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1722582756; x=1723187556; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=myPixyBqLHqaT5yMB04M8oL7kg1FVtQTke/bpxRi7Mg=; b=C4wyZ3DWLEMH5j6prw1hYBnJNGWsmXpCgWoSyW53YFpJot4MOHb+l94ND208dhdjbn yM2ILAyngTxZQxCOg+/ZJu7vFIF/SCTrY+JNuLZFGc0t1Q6mjQGGbAngRfiK4lFsMZyv 3DptvBJ+ITMtOOT7Vu5z9KXMDwU1Ut1M2GQnHzH31pqrQxX69UL7/3E5QTLy0MmQf01G F927xLY3MmO61F5peJSCT8GUeoxrSxKNeEqzcgNhXQhRK0xNzIuL+Ly/kd/+xSggmE9n Zz7+0SIFRa+mvJ0qiZJALS7zkYzx6m2XE7CJvux0Zc2LhcBRRid+VNwbrQDqij34d8Cx t6Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722582756; x=1723187556; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=myPixyBqLHqaT5yMB04M8oL7kg1FVtQTke/bpxRi7Mg=; b=B4NspjgleJoRyHY+9CaeCsrN/NOUhhw5Q3mdTE8qKvoCF5KqbRVpImUxeY6p1KCsw0 qmFIBywFyCiHHmZ1dhwJ+CNsZ4Tsq0h58toNYQ7reO3qxZEFojBBjTcBM+vgFNZmb7fg f8wA2iCiJwkgmEh2MvPkTBNZP3EwyMrv3I1acCP5/ymSpcEH9N2ABchS7gLFTl0lO/t/ jVhRL318jfrjInWLsUkZzouDm7dvwfhjqzrr1qz9cjJaksctdMKQu0KlVzN3JH40vf05 nPe08BtROVXoONUVRGM07gN+nogdL+3m70akYWxafl0WQ1ZCf7g6dFGlDQrfZXL6pj5L CfTA== X-Gm-Message-State: AOJu0Yy9TzFlsjLnK4+DsuukasVyyxC58ZfpRxkGA009QSzc85FD7Wpl dpgqfx9N7RMOR+mr/QmAZRQpA4YvpoThC8FLbXUTXntOqBhP6GmIYNT0cGdqU4Q/ChLNVQqr2Wq kkQ== X-Google-Smtp-Source: AGHT+IHjUKa1nv9uxYyRm52pT0+/owWKJiY3yx8RXp0R/3BPpndpV0UQyMPN6s483fsk7rWEqP1ouA== X-Received: by 2002:a05:600c:5249:b0:426:623f:34ae with SMTP id 5b1f17b1804b1-428e6b009e4mr14254845e9.16.1722582755775; Fri, 02 Aug 2024 00:12:35 -0700 (PDT) Received: from localhost.localdomain ([2001:861:3382:1a90:b6aa:4751:9ea1:da1e]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36bbd059932sm1195770f8f.69.2024.08.02.00.12.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Aug 2024 00:12:35 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Ronan Desplanques <desplanques@adacore.com> Subject: [COMMITTED 16/26] ada: Ensure variable is initialized before use Date: Fri, 2 Aug 2024 09:11:33 +0200 Message-ID: <20240802071210.413366-16-poulhies@adacore.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240802071210.413366-1-poulhies@adacore.com> References: <20240802071210.413366-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[COMMITTED,01/26] ada: Fix detection of suspicious loop patterns
|
expand
|
diff --git a/gcc/ada/scng.adb b/gcc/ada/scng.adb index c9ccc4d9b52..08ce2ab5ad1 100644 --- a/gcc/ada/scng.adb +++ b/gcc/ada/scng.adb @@ -1166,6 +1166,7 @@ package body Scng is when '\' | '"' | '{' | '}' => Code := Get_Char_Code (C); when others => + Code := Get_Char_Code ('?'); Error_Msg_S ("illegal escaped character"); end case;
From: Ronan Desplanques <desplanques@adacore.com> This patch is motivated by a GNAT SAS report. gcc/ada/ * scng.adb (Slit): Initialize object in uncommon path. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/scng.adb | 1 + 1 file changed, 1 insertion(+)