From nobody Fri Apr 14 17:31:51 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Pyk5h1yG3z45fL0; Fri, 14 Apr 2023 17:31:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Pyk5h0d9qz4P48; Fri, 14 Apr 2023 17:31:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681493512; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=z3kn/IkTDvMCPuwGiLvnJX1+h5SSNQnAKMOpdePdpXg=; b=jLCXtZCb+wiDxqucXPj7aKBKg+2nrIFkTIC8sya7Phzpx4K6YxgleCCs1Xig4PguDhQ6GE qXHoGzJSA7UJRm6W1h08YixTdvRz4hJeV2mOno3zudiBRGaqkpnxHmioVX5Fze80EvHM/i ublxItEG1UuHNPvQjkdHleWHt6JWcxtnXa0jS8cl1PtyRFdmQPLUtIZguOJWmU8VHqhvvf qu8UO4BXQ+suqzHGXeTHJIsxQN1/blVWhtA4SdyzgPeulXaKGQmGLeszNjXoCPkWgA39zh f/LBzyMk97zCar29A6A1Qwswx8Kcyh91nfsA7zZs1w+U0WR5hVDdT06Yv1RNyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681493512; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=z3kn/IkTDvMCPuwGiLvnJX1+h5SSNQnAKMOpdePdpXg=; b=X1K/eAZX8QQiGq+tnLV5Etw1OAGp2xKn9+P7Uoa6vfbqRXThsILOPFfZc/e3VGKy/XZgHi 8BYAQWfu/E8I0Brhwqq6cDM3AjwkhTFpEGnM+rXAHdtuj+MeAuLoio9Xcl//pr+ZHxngSC g5PL9Dq0C/LQmMI58CBz1R0ef9yjJFJNKBU+oNHL+gtHkj30PPeaCpR61eapRR9NXE7VKf nzu5A2jczfTSbarBioC6fAL+9pjxsIV/QxiwKZSuM+3fl5O50p5As/oYGw9/bBmMjQtvfk 4jv2P303pRa1nInUA5KjxqAYcHsDCR+8m/K7E8l1wKRfqRicDe+aiSySo7c6qg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681493512; a=rsa-sha256; cv=none; b=xqkUpII0hqKPSAx1w0EVLMmk98wkpnOca75qU5u/0ANFdM/9wE73ynDV+QsS7+MK/4nBLo Qw2mDx64KO9wPjMrb0VZI3/Q8M4VnQJN4t9GzkogN7PrvUOBJPFjvAJJSlqN0kd1exn2cy CDLMX4h3Uoyd6pL8vAEn8K9+t2+nZru8mpP2roTzOXw4163UC0Aux0K2rIS5HbcRjfJ4n/ tJAlZpCRWI/aw8ZykrWnWrCPAz3+/0WWWX3vWrdIELd9o3KBh/vZya9LOWk/Oj2hDnz0Z2 mIzBiHQqVRfWY4geaR6AhrXbuOLXQB8Mr7x5rGVI12kLsrbI45b3ravSqSB4lA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Pyk5g6rh1zYFn; Fri, 14 Apr 2023 17:31:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33EHVphZ034599; Fri, 14 Apr 2023 17:31:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33EHVpO6034598; Fri, 14 Apr 2023 17:31:51 GMT (envelope-from git) Date: Fri, 14 Apr 2023 17:31:51 GMT Message-Id: <202304141731.33EHVpO6034598@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 5dbd073b045c - main - awk: errror on printf format strings lacking conversion specifier List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5dbd073b045c8e98730c025a4acf2279be26c33e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=5dbd073b045c8e98730c025a4acf2279be26c33e commit 5dbd073b045c8e98730c025a4acf2279be26c33e Author: Ed Maste AuthorDate: 2023-04-14 14:49:05 +0000 Commit: Ed Maste CommitDate: 2023-04-14 17:31:02 +0000 awk: errror on printf format strings lacking conversion specifier Reported by: phk Reviewed by: imp, markj MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39573 --- contrib/one-true-awk/run.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/one-true-awk/run.c b/contrib/one-true-awk/run.c index 117fb0748bd8..b81dafba35e6 100644 --- a/contrib/one-true-awk/run.c +++ b/contrib/one-true-awk/run.c @@ -912,6 +912,9 @@ int format(char **pbuf, int *pbufsize, const char *s, Node *a) /* printf-like co case 'c': flag = 'c'; break; + case '\0': + FATAL("missing printf conversion specifier"); + break; default: WARNING("weird printf conversion %s", fmt); flag = '?';