From patchwork Tue Apr 30 10:32:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 1929414 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=A5NjE3QL; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4VTGjq3TjHz23jG for ; Tue, 30 Apr 2024 20:32:47 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ECED6384AB48 for ; Tue, 30 Apr 2024 10:32:44 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 912B23858294 for ; Tue, 30 Apr 2024 10:32:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 912B23858294 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 912B23858294 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714473152; cv=none; b=eSfwuBUPa/80/DN38PgOATdWLwyfjUx9PhmxtLXvnIyIGd90KfzLbEqZPlCicIWbphZ5uP13kqZoj/ZE/UCNNBDG74rCI2rG++Qdp9Xhcqi+dU3VRNdHgjjOkn/6b3ZDU8/Ud/+OuFjXuZzQ8rPKm4f7HFDwkWcPFL+qaO2ODqE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714473152; c=relaxed/simple; bh=iUM7/670OBcRG30elznuPDYe9jyyk2VNSe17rsDujn0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Rymq/Rtay7F5w/PqxE0UWVonRAYpgd5MWBGWxCIwJM+eywlhaCpEqBEQjbiC8MOLMayR2zkaqaY9/oKbFXwrplYsdCevbvW30HOeZjjiXgd5i7WV5uiRfOJa02klHHlvbDZingt2zZz9Db/NQ6h8bVuHE6CiWLuRrHTDNnFzB7E= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714473142; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=6eydmTQB6YuWdog27ooLK/kf1wM1oSOtRWy8RyyyiK8=; b=A5NjE3QLbVUv8Ra8geE1ArlD7AQ6/OZIsyvM9nwHlV/1hpIGAtC6BCf5wBRtPLAZE/2Qlr L/dkNP7CFwEOV6j69Qi4C6Fn3GgAG3slzv6BApa1KPi7oo4dSCpDE6U4HIsO02iHzVu6Kw 7sZd3jqix4+nd7+5EhdWYdVPCm2nOgQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-283-xTqC_ZpkPG2mLMQkAQYL6g-1; Tue, 30 Apr 2024 06:32:20 -0400 X-MC-Unique: xTqC_ZpkPG2mLMQkAQYL6g-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9CCA7802352 for ; Tue, 30 Apr 2024 10:32:20 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.193.188]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BF751202450F; Tue, 30 Apr 2024 10:32:19 +0000 (UTC) From: Florian Weimer To: libc-alpha@sourceware.org Cc: Jonathan Wakely Subject: [PATCH] nscd: Typo inside comment in netgroup cache Date: Tue, 30 Apr 2024 12:32:17 +0200 Message-ID: <87v83zp2dq.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, 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: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Reported-by: Jonathan Wakely --- nscd/netgroupcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: ebfd73a80f15559fe59fee32a7844c6b8fa99576 diff --git a/nscd/netgroupcache.c b/nscd/netgroupcache.c index e8fe041846..4b35498e3f 100644 --- a/nscd/netgroupcache.c +++ b/nscd/netgroupcache.c @@ -522,7 +522,7 @@ addinnetgrX (struct database_dyn *db, int fd, request_header *req, if (__glibc_unlikely (dataset == NULL)) { cacheable = false; - /* The alloca is safe because nscd_run_worker verfies that + /* The alloca is safe because nscd_run_worker verifies that key_len is not larger than MAXKEYLEN. */ dataset = alloca (sizeof (*dataset) + req->key_len); }