Message ID | 20170524111338.3495-1-ynorov@caviumnetworks.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp221756qge; Wed, 24 May 2017 04:14:10 -0700 (PDT) X-Received: by 10.99.99.134 with SMTP id x128mr36919729pgb.46.1495624450620; Wed, 24 May 2017 04:14:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495624450; cv=none; d=google.com; s=arc-20160816; b=Iu2MXtcHwc/SusAVArzj+cMX0ZShfxJxFPLCGvkQgP9pnlG6lZGDgG2mxprBGZ0RO4 iBwHlXVhsgzvyK3GlvJORenQ8gvUQv5bFF0vZU5jT7eZjAOK2Xv/zjjkyIvs3NbY2rlA /vsdV7FEDMGXTZHYhwO2x5LNtBW+llvHNNF1FADtXu0TM5q6SU6TCMyv95W5kKirk5yc QTe21nv9v96vA+X2r+JSyBAXYNb6/R93iqHSG4QUQKGIjYftNqTpZ6unSYyCZW59oqxu w3wESUTbIA9L8c1Fv7wNljTOKECqPvDK5OOjsoWSW/GDn3bpIet3s19MYuflp0ErBo1h RxPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=spamdiagnosticmetadata:spamdiagnosticoutput :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:delivered-to:sender:list-help:list-post:list-archive :list-subscribe:list-unsubscribe:list-id:precedence:mailing-list :dkim-signature:domainkey-signature:arc-authentication-results; bh=d5bueJM4RAy31IGhpe1+KCiprJ0AFVHvndg/VDG1pcA=; b=0Lw0xtVi9AtDQ2znMcFvZVQ4+As/OimB+pqbqr9nAyvtCSuw52bnKL9VWUs91eOYkL 1jOu9bhEpc4sbg2jSdnVvmuzKgoV+n0oEjM/vF33AQPACcfW0hgePcqCG0WalFx9NW0H QN8HFbi1moCrTgjivHZVzh62QK2A0ls/sbmoKJfrd0pLQ1kW+KkeXc81aFJtOI+DGdZA uQgd3dOaR3DNApEaBnvbbS3JwMA2FvSyKtTEl7DLL6BqYPRG4AXKX4ZpEozu8UdGw7jM T5eX+2xJkwpelSyUXl292BcFkcyaJgUdzgSwIpAdGT3+jyeXm7Kcn0zuTezy/LwHDxI9 FC6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-79687-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-79687-patch=linaro.org@sourceware.org Return-Path: <libc-alpha-return-79687-patch=linaro.org@sourceware.org> Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id r1si24219303plj.260.2017.05.24.04.14.10 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 May 2017 04:14:10 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-79687-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-79687-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-79687-patch=linaro.org@sourceware.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=L7b/xNRfOcYqxUZDWhL+P70Cnh+XO8+oUYu9G3lH/aaEZ44299XNy MbNm69uLQMwn+W/dvY2UM6bzZtm3nr92vYOa5CFCNLVyiabPExuy9J/ONQdswcPF GTMRct8wt7XvJn7VM6xnBXUPZzohvQE/cZoKUuCNar2CFiUYHbqWPU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-type:content-transfer-encoding; s=default; bh=hz4Uz5JHGOCLf6FaWtoDcRD7xWI=; b=ND1SE+EEYFHnoPQ0dQsoNjeDzJZ5 lpZgbhfQErf+nDlWLtrscw/m9Y1Vd0Ln2P5y2KAV806iw2Dyauqvvf7Won4Z74ty a7VJadSHfqlZuFBRVJZxLZBi2Yr6K1aET2TM1Ll0swt2ZMNpGNTCfyiBtx0o39XV OXFmzvx613NbQUk= Received: (qmail 38782 invoked by alias); 24 May 2017 11:13:53 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: <libc-alpha.sourceware.org> List-Unsubscribe: <mailto:libc-alpha-unsubscribe-patch=linaro.org@sourceware.org> List-Subscribe: <mailto:libc-alpha-subscribe@sourceware.org> List-Archive: <http://sourceware.org/ml/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-help@sourceware.org>, <http://sourceware.org/ml/#faqs> Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 38770 invoked by uid 89); 24 May 2017 11:13:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=sk:format-, sk:format, HContent-Transfer-Encoding:8bit X-HELO: NAM01-BN3-obe.outbound.protection.outlook.com Authentication-Results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=caviumnetworks.com; From: Yury Norov <ynorov@caviumnetworks.com> To: libc-alpha@sourceware.org Cc: Yury Norov <ynorov@caviumnetworks.com> Subject: [PATCH] nss_nisplus/nisplus-alias.c: fix build warning on gcc7 Date: Wed, 24 May 2017 14:13:38 +0300 Message-Id: <20170524111338.3495-1-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: VI1P194CA0002.EURP194.PROD.OUTLOOK.COM (10.175.178.12) To BN3PR0701MB1267.namprd07.prod.outlook.com (10.160.118.141) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PR0701MB1267: X-MS-Office365-Filtering-Correlation-Id: ac8f37b3-3fdd-4fe6-8a74-08d4a295f57a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BN3PR0701MB1267; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1267; 3:cvFyS15sPPiKjzSRiIx3t5gPhhwXmOwkWhtikCcUauMTtwqyPIyhrHe5cjanXRKB7n8QteCapywKaunP2fFwqfpsrwa1KExCOrttmEvpJUotXExF4c8V30m5W6D4CA+KlyzdCZgq0noW2y6okFyKTYGonodOVCQKxKWh86e35ftWbCZUWySpUgul5GZxWWc5wjnKpwzYYGPC3vKE/Oi7K8/yXGM4RaZ9SdJyB3KXrceASOQqSBuhwK4ChJ17eA/ISMv90rN2r6mLem51ARvIm+PCR3eaDY76+dTLtDWl16bztMWHidm6ZNZKFzhSYgBFphSInMIDS0o4k71716miVg==; 25:oG/3anl0bjqEQ6opcmOPaLH5XFi1xdS5c0xkxNBsc2uzqMwA/CY5+hWcDiu2ne6XYemrumPVH/bMSmgwvRC2tp/G1Z7shMivLE5HnZVjAawb4ZySS4joOIsQP8pttC4/xTr8Jei+A5kTaPvcNvTqGhBhfTjiHxaCHkjqqeZzdujKYD1o9CIeJHQamZNMW+i9dL5ODrHcG/V8mDwpJNVbfTzv0H6/TULTOt0Uvxb+uG+y7WC2u6wO5RE05wn5a0bzv7PC+q8mPQQJLghn+4AiiDMY1Jvrw/wISHWEYvHRkcA9wAo8e7hb0S98n4IXVcB7IQGQY/gzvDUm279iHa/OvfWswawag52aEV1x80KYnjP60PVK+cDGTsacA8lRf891XGCo64R6O4yNcH3O7KhwtUu58KDFq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antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123555025)(20161123562025)(20161123558100)(20161123560025)(6072148); SRVR:BN3PR0701MB1267; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1267; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1267; 4:vPUdDjniDoR7E3UVVgLd2Ss+KFIQPuNpo9E+C5OKHWqSM8j6UB4pTS1n+kefSSkegUl/TZnmgfnAeSz71gpUwF/rM4RJS/9Uvi85bC3ypuMO29LPNRV6u+LKYdqGVclsCVmb8Hp7XLk6wcWu2dRsoixFSCpbczEm2+7hJHIk9R1mD53pg0O7nSwz+Q111KrTx9rNBIsjQCkqE/vdmsjGdmIxxEK0SSnoc6sGDaOv8c6pIvfLxZe6174k1RPrDBJr1wacyI0jkPjbpUy25NS+k2I7WABGudRk9yM6dFQE0R7Qgfi2Cg31p7PERPeyt7voXkPBxREbuhBLRyPQRyWjt6UyoLnlyPOlCj/Jj92pVpe8QGrq8qNt4IH6fqcwUzDZmcpJ8/J2a+loswuH4xJEIpuOLJuKtSBcHSSFjnJnPeO/z7pFNQ1Y3aNIboBoGvWR86wxffg0dWYI3B47pS0myGMiqbAjuFZO9BhjOhxdIh80/nHCk5Tl7wnzRXp0Tpudf35yn0/IIYgX37a95xh0zMyIssmmwqf9WfLjBsksD61cVwcqX2ma4fbFGy16VU9RfqwpHhWYpdE/qRi3ComedPUCTJSe+uDqsAqfJoKprejlsTR6ORx3kuTb8QeSURCn6pZxHYgrr0mKp1T5++k+3V1RXCa590WrIuc+CYcmFk5yWPs7izWFihOMmaqxGLeHgwJGup4XhytEnqCprnQgknqXZp0mdc+fMr4Wve+LxsplB2pGT7ADXTH1vdXBZWQ4hUuLvAMNR7sJu8eUvGnF3w== X-Forefront-PRVS: 031763BCAF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(39850400002)(39400400002)(39410400002)(39840400002)(39450400003)(51444003)(53754006)(52314003)(305945005)(2870700001)(42882006)(36756003)(7736002)(2906002)(478600001)(66066001)(47776003)(50226002)(2361001)(2351001)(5660300001)(81166006)(6916009)(33646002)(50986999)(6116002)(3846002)(6496005)(50466002)(110136004)(107886003)(38730400002)(6666003)(8676002)(72206003)(189998001)(76506005)(42186005)(1076002)(4326008)(6486002)(53936002)(23676002)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1267; H:localhost; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?q?1=3BBN3PR0701MB1267=3B23=3AKE?= =?utf-8?q?Ev3fea6UoaEPVYdQ0pSgs+ZQsgwJA9I2vOmX/Y0e5DaJH53JXyYbpaoJ?= =?utf-8?q?R8vtFa+fqZryf27NLJGEVNxQgcaQsRxRimlBnOL5aW9pQjoCA6tT2PiC?= =?utf-8?q?FldDCyPv9kJmSn6UGmQTxybUE688FMj5wldPCqQYO/3AyghDYnIXPPW7?= =?utf-8?q?oG9KAHOxU9vDdgkFTAEE6OG39LZ9Mn2bknoaSQARzlWxj1uINQ7RNUN9?= =?utf-8?q?JvXEBbDKGz1qqe3LOcdfX2evtaESoa5oEdPaz5P1ErMZqVOJPVha9jZn?= =?utf-8?q?IYQuiNZD4unpga3a8nirTvJy52BFXXi+CE0TGbUzMNVWK5L1pxYmIz8c?= =?utf-8?q?1Cxqhzn/I0TawSxKNG4CSY1i6VYyT4OQrcHZ1woHPzgQ6hj1uyilBlqL?= =?utf-8?q?9U/UQ3Xlq0wjm/aK5U54RhJZkN6fFuYqiKFwS2ZjEG8wR0AlZlYIz2eY?= =?utf-8?q?tX+cKR9X9WoqOkquoLhsbM6cI1B669QiFx7MhnkDtcSlEdlyl/ERTECH?= =?utf-8?q?7cM2NnQEo47pEIqEQQXjSBNV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lDGwFslVNpuNeNDMcit6xpjAWXzhoI0Y9P3ufJfcbcntRRfOAXn4/UbVv1icqzfJeIpmCrnaWRz3wyzcRHADCWgEfQ88ZZ6m9g9pa5RUp0dScrEevcQfZLeHse40OUM7E6b7jt5AS+5ECpqGF1Q54I00pY+GNEunI/x+FT5qr+ywtCeyt/ojUSYgZxJHiu4I3Wlav5/JPl6KufaFwYYCbpeFlG8C/Cptu6mMr3nVcu3uPH8XWdNmYbBaPSEf8sAeP93QxTc1QXE2fjMHI6FqGKJGcF4tflQ==; 5:QuVLSbGQNkr/C52piEEgaRj2joGNpzrR2GEDqIblWArytlx7GuBhZdxDysB8PKVvWIUVY6YD/Ai7EEVe11+CwiinDTmvfrp07aNkr98+eNTyocJgqqpSaRds3kPadMNfvtABT7AaNN02iVrtdWGL1GO0XdKkqlkOtR/fNA+O8+Q=; 24:kqEisSSrAC+srOG5oCpKYaXyhBxxlD8/WpXrNGz0ufSlv4oGpaquXvCSRx3obZOCCk+AoOw0xHBTL4GgzmA9p2q1/Fw/csEiQEfm2X2/7N4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1267; 7:BFjtvnoRon9sl4/fM1OxPynVmZTK/xxAjElAnqe2LDAP3qretrShjUOgUNp54ulUwN1GW92JgBL0jxO+rmfaVY3ZQek2aK9t7PyYtsbKNk8QOSyLiTcHFs+ad6qBsfCBYBxNNKsgWmXIrjxruDFzPKAYgKslTYGGAa/+Fc5vcQX9fmAMQOlgYTCVHBJJCbm2f35B9avT3TWdZ2TLsmy3nb4kUYNZW9m2ldvFPqCwm08oRT7q1f8NNSMjIPZGu9o6YTkgNN2QndpGiAuKFIVW1lRbq62rKTpqAeK7qLV4uurVU/HoFPpNUsTbng4SEPAIqUq637E9RJj4q3u8TW+6zQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2017 11:13:51.2783 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1267 |
Please update your sources. commit f88759ea9b Author: Joseph Myers <joseph@codesourcery.com> Date: Wed Dec 21 23:44:01 2016 +0000 Fix nss_nisplus build with mainline GCC (bug 20978). Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."
On Wed, May 24, 2017 at 01:56:43PM +0200, Andreas Schwab wrote: > Please update your sources. > > commit f88759ea9b > Author: Joseph Myers <joseph@codesourcery.com> > Date: Wed Dec 21 23:44:01 2016 +0000 > > Fix nss_nisplus build with mainline GCC (bug 20978). > > Andreas. Ah, sorry that. Then forget.
diff --git a/nis/nss_nisplus/nisplus-alias.c b/nis/nss_nisplus/nisplus-alias.c index 7f698b4e6d..509ace1f83 100644 --- a/nis/nss_nisplus/nisplus-alias.c +++ b/nis/nss_nisplus/nisplus-alias.c @@ -297,10 +297,10 @@ _nss_nisplus_getaliasbyname_r (const char *name, struct aliasent *alias, return NSS_STATUS_UNAVAIL; } - char buf[strlen (name) + 9 + tablename_len]; + char buf[tablename_len + 9]; int olderr = errno; - snprintf (buf, sizeof (buf), "[name=%s],%s", name, tablename_val); + snprintf (buf, sizeof (buf), "[name=],%s", tablename_val); nis_result *result = nis_list (buf, FOLLOW_PATH | FOLLOW_LINKS, NULL, NULL);
Hi all, gcc7 for arm64 warns about NULL pointer passed to strlen() and snprintf() in _nss_nisplus_getaliasbyname_r(). If Werror is enabled, it is treaded as error, and so breask build: nss_nisplus/nisplus-alias.c: In function ‘_nss_nisplus_getaliasbyname_r’: nss_nisplus/nisplus-alias.c:300:12: error: argument 1 null where non-null expected [-Werror=nonnull] char buf[strlen (name) + 9 + tablename_len]; ^~~~~~~~~~~~~ In file included from ../include/string.h:54:0, from nss_nisplus/nisplus-alias.c:23: ../string/string.h:394:15: note: in a call to function ‘strlen’ declared here extern size_t strlen (const char *__s) ^~~~~~ nss_nisplus/nisplus-alias.c:303:39: error: ‘%s’ directive argument is null [-Werror=format-truncation=] snprintf (buf, sizeof (buf), "[name=%s],%s", name, tablename_val); ^~ cc1: all warnings being treated as errors * nis/nss_nisplus/nisplus-alias.c: don't pass name variable known to be NULL to strlen() and snprintf() in _nss_nisplus_getaliasbyname_r() If the line "[name=],..." looks weird, I'll resend the patch, if someone will hint me how it should look. Anyway, I think that it currently should look like this. Signed-off-by: Yury Norov <ynorov@caviumnetworks.com> --- nis/nss_nisplus/nisplus-alias.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.11.0