[{"id":1760216,"web_url":"http://patchwork.ozlabs.org/comment/1760216/","msgid":"<1504103852.4777.1.camel@linux.vnet.ibm.com>","list_archive_url":null,"date":"2017-08-30T14:37:32","subject":"Re: [TESTSUITE]Use strncpy instead of strcpy in\n\ttestsuite/gcc.dg/memcmp-1.c","submitter":{"id":68931,"url":"http://patchwork.ozlabs.org/api/people/68931/","name":"Aaron Sawdey","email":"acsawdey@linux.vnet.ibm.com"},"content":"On Wed, 2017-08-30 at 10:16 +0100, Renlin Li wrote:\n> Hi,\n> \n> In test_driver_memcmp function, I found buf1 and buf2 is not properly\n> terminated with null character.\n> \n> In lib_strncmp, strcpy will be called with buf1 and buf2.\n> The normal implementation of strcpy function has a loop to copy\n> character from source\n> to destination one by one until a null character is encountered.\n> \n> If the string is not properly terminated, this will cause the strcpy\n> read/write\n> memory beyond the boundary.\n> \n> Here I changed the strcpy into strncpy to constraint the function to\n> visit\n> legal memory only.\n\nHi,\n  Renlin you are correct that it shouldn't be using strcpy because the\nstring may not be null terminated. However I would suggest we use\nmemcpy instead of strncpy. The reason is that cases where there is a\nnull char in the middle of the string test whether the strncmp is\nproperly ignoring what comes after. So how about using this:\n\n\t  memcpy(a,str1,SZ);\t\t\t\t\t\t\\\n\t  memcpy(b,str2,SZ);\t\t\t\t\t\t\\\n\nas in the test_memcmp_ part of the macro?\n\n  Aaron\n\n> \n> Test Okay without any problem. Okay to commit?\n> \n> Regard,\n> Renlin\n> \n> \n> gcc/testsuite/ChangeLog:\n> \n> 2017-08-30  Renlin Li  <renlin.li@arm.com>\n> \n> \t* gcc.dg/memcmp-1.c (test_strncmp): Use strncpy instead of\n> strcpy.","headers":{"Return-Path":"<gcc-patches-return-461167-incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list gcc-patches@gcc.gnu.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-461167-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"gQveb0V0\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xj7QW1KbGz9s9Y\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 00:37:54 +1000 (AEST)","(qmail 4126 invoked by alias); 30 Aug 2017 14:37:46 -0000","(qmail 4111 invoked by uid 89); 30 Aug 2017 14:37:45 -0000","from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com)\n\t(148.163.156.1) by sourceware.org\n\t(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tWed, 30 Aug 2017 14:37:44 +0000","from pps.filterd (m0098394.ppops.net [127.0.0.1])\tby\n\tmx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv7UEZLd7031135\tfor <gcc-patches@gcc.gnu.org>;\n\tWed, 30 Aug 2017 10:37:42 -0400","from e17.ny.us.ibm.com (e17.ny.us.ibm.com [129.33.205.207])\tby\n\tmx0a-001b2d01.pphosted.com with ESMTP id\n\t2cnv84fy6c-1\t(version=TLSv1.2 cipher=AES256-SHA bits=256\n\tverify=NOT)\tfor <gcc-patches@gcc.gnu.org>;\n\tWed, 30 Aug 2017 10:37:42 -0400","from localhost\tby e17.ny.us.ibm.com with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted\tfor\n\t<gcc-patches@gcc.gnu.org> from <acsawdey@linux.vnet.ibm.com>;\n\tWed, 30 Aug 2017 10:37:40 -0400","from b01cxnp23032.gho.pok.ibm.com (9.57.198.27)\tby\n\te17.ny.us.ibm.com (146.89.104.204) with IBM ESMTP SMTP\n\tGateway: Authorized Use Only! Violators will be prosecuted;\n\tWed, 30 Aug 2017 10:37:39 -0400","from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com\n\t[9.57.199.111])\tby b01cxnp23032.gho.pok.ibm.com\n\t(8.14.9/8.14.9/NCO v10.0) with ESMTP id v7UEbcnH25428068;\n\tWed, 30 Aug 2017 14:37:38 GMT","from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1])\tby IMSVA\n\t(Postfix) with ESMTP id 43EEEAC040;\n\tWed, 30 Aug 2017 10:38:03 -0400 (EDT)","from ragesh3a (unknown [9.85.144.234])\tby\n\tb01ledav006.gho.pok.ibm.com (Postfix) with ESMTP id\n\tEE8B0AC043; Wed, 30 Aug 2017 10:38:02 -0400 (EDT)"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:subject:from:to:date:in-reply-to:references:content-type\n\t:mime-version:content-transfer-encoding:message-id; q=dns; s=\n\tdefault; b=RPZTinLwkW0cGFqpea4rFimKKOGSpvGRQe/d3azEMxp3pBQAqqOTx\n\tHQTVhhm55N1gkFIjWHGDkNvhL3dsYtf48RAA7K7aNivE1NBJMFkhk4O7g9NSlQj4\n\tFrbdblkgAeFY2G8sPtXF0mYRH12wZ+6ZXbHwoHjt9uBIOcvmUEYs+Q=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:subject:from:to:date:in-reply-to:references:content-type\n\t:mime-version:content-transfer-encoding:message-id; s=default;\n\tbh=f4RFH53wdgtdmb7PLxzuzf2MKL4=; b=gQveb0V0q/7hFfeqUmtkKpL7GgsG\n\tsHLuhC20UuJbQs531oEYkwU40tvh69ZFn34ZmZGCOe1/vSFuSbiwkqeFurkV57lb\n\tcXTuBqQ0U1eoUgguAUhT6i5oaYIaQjG3n3CuAzXKnQ+fwOoj7uKd8c9FKtSSKQnM\n\teQW0M3HTuCU5EGs=","Mailing-List":"contact gcc-patches-help@gcc.gnu.org; run by ezmlm","Precedence":"bulk","List-Id":"<gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>","List-Archive":"<http://gcc.gnu.org/ml/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-help@gcc.gnu.org>","Sender":"gcc-patches-owner@gcc.gnu.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.6 required=5.0 tests=BAYES_00,\n\tKAM_LAZY_DOMAIN_SECURITY,\n\tRCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=phd, PhD,\n\tRegard","X-HELO":"mx0a-001b2d01.pphosted.com","Subject":"Re: [TESTSUITE]Use strncpy instead of strcpy in\n\ttestsuite/gcc.dg/memcmp-1.c","From":"Aaron Sawdey <acsawdey@linux.vnet.ibm.com>","To":"Renlin Li <renlin.li@foss.arm.com>,\n\t\"gcc-patches@gcc.gnu.org\"\t <gcc-patches@gcc.gnu.org>","Date":"Wed, 30 Aug 2017 09:37:32 -0500","In-Reply-To":"<59A68270.7010101@foss.arm.com>","References":"<59A68270.7010101@foss.arm.com>","Content-Type":"text/plain; charset=\"UTF-8\"","Mime-Version":"1.0","Content-Transfer-Encoding":"8bit","X-TM-AS-GCONF":"00","x-cbid":"17083014-0040-0000-0000-00000397BA3E","X-IBM-SpamModules-Scores":"","X-IBM-SpamModules-Versions":"BY=3.00007636; HX=3.00000241; KW=3.00000007;\n\tPH=3.00000004; SC=3.00000226; SDB=6.00909762; UDB=6.00456309;\n\tIPR=6.00690046; BA=6.00005561; NDR=6.00000001; ZLA=6.00000005;\n\tZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000;\n\tZU=6.00000002; MB=3.00016930; XFM=3.00000015;\n\tUTC=2017-08-30 14:37:40","X-IBM-AV-DETECTION":"SAVI=unused REMOTE=unused XFE=unused","x-cbparentid":"17083014-0041-0000-0000-0000078BEC0B","Message-Id":"<1504103852.4777.1.camel@linux.vnet.ibm.com>","X-Proofpoint-Virus-Version":"vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-08-30_06:, , signatures=0","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n\tspamscore=0 suspectscore=0 malwarescore=0 phishscore=0\n\tadultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx\n\tscancount=1 engine=8.0.1-1707230000\n\tdefinitions=main-1708300219","X-IsSubscribed":"yes"}},{"id":1760288,"web_url":"http://patchwork.ozlabs.org/comment/1760288/","msgid":"<59A6DA43.60906@foss.arm.com>","list_archive_url":null,"date":"2017-08-30T15:31:15","subject":"Re: [TESTSUITE]Use strncpy instead of strcpy in\n\ttestsuite/gcc.dg/memcmp-1.c","submitter":{"id":68067,"url":"http://patchwork.ozlabs.org/api/people/68067/","name":"Renlin Li","email":"renlin.li@foss.arm.com"},"content":"Hi Aaron,\n\nOn 30/08/17 15:37, Aaron Sawdey wrote:\n> On Wed, 2017-08-30 at 10:16 +0100, Renlin Li wrote:\n>> Hi,\n>>\n>\n> Hi,\n>    Renlin you are correct that it shouldn't be using strcpy because the\n> string may not be null terminated. However I would suggest we use\n> memcpy instead of strncpy. The reason is that cases where there is a\n> null char in the middle of the string test whether the strncmp is\n> properly ignoring what comes after. So how about using this:\n>\n> \t  memcpy(a,str1,SZ);\t\t\t\t\t\t\\\n> \t  memcpy(b,str2,SZ);\t\t\t\t\t\t\\\n>\n> as in the test_memcmp_ part of the macro?\n\nYou are right.\n\nFor strncpy, if there is a null-character before size, the destination will be padded with \nzeros.\n\nmemcpy is better than strncpy in this case.\nHere is the updated patch.\n\nRegards,\nRenlin\ndiff --git a/gcc/testsuite/gcc.dg/memcmp-1.c b/gcc/testsuite/gcc.dg/memcmp-1.c\nindex 828a0ca..d258354 100644\n--- a/gcc/testsuite/gcc.dg/memcmp-1.c\n+++ b/gcc/testsuite/gcc.dg/memcmp-1.c\n@@ -110,8 +110,8 @@ static void test_strncmp_ ## SZ ## _ ## ALIGN (const char *str1, const char *str\n \t{\t\t\t\t\t\t\t\t\\\n \t  a = three+i*ALIGN+j*(4096-2*i*ALIGN);\t\t\t\t\\\n \t  b = four+i*ALIGN+j*(4096-2*i*ALIGN);\t\t\t\t\\\n-\t  strcpy(a,str1);\t\t\t\t\t\t\\\n-\t  strcpy(b,str2);\t\t\t\t\t\t\\\n+\t  memcpy(a,str1,SZ);\t\t\t\t\t\t\\\n+\t  memcpy(b,str2,SZ);\t\t\t\t\t\t\\\n \t  r = strncmp(a,b,SZ);\t\t\t\t\t\t\\\n \t  if ( r < 0 && !(expect < 0) ) abort();\t\t\t\\\n \t  if ( r > 0 && !(expect > 0) )\tabort();\t\t\t\\","headers":{"Return-Path":"<gcc-patches-return-461170-incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list gcc-patches@gcc.gnu.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-461170-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"oG1vLtRG\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xj8cg3znvz9s8w\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 01:31:46 +1000 (AEST)","(qmail 32030 invoked by alias); 30 Aug 2017 15:31:21 -0000","(qmail 31947 invoked by uid 89); 30 Aug 2017 15:31:20 -0000","from usa-sjc-mx-foss1.foss.arm.com (HELO foss.arm.com)\n\t(217.140.101.70) by sourceware.org\n\t(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tWed, 30 Aug 2017 15:31:19 +0000","from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249])\tby\n\tusa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id\n\t9850C80D; Wed, 30 Aug 2017 08:31:17 -0700 (PDT)","from [10.2.207.43] (e104453-lin.cambridge.arm.com\n\t[10.2.207.43])\tby usa-sjc-imap-foss1.foss.arm.com (Postfix)\n\twith ESMTPSA id 1CE473F483; Wed, 30 Aug 2017 08:31:16 -0700 (PDT)"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:subject:to:references:from:message-id:date:mime-version\n\t:in-reply-to:content-type; q=dns; s=default; b=AaG72+sNm1QKIsnhd\n\t48MZcLdnRyohgzqnWrMtB4brKzoy3QFZBaUMd0lNCHj9T7R8FMtIf26ZPmg1rgYZ\n\tRr9aMrY4TAmmMvHqRjAiW33FSEN9oRqtzbWf7Dqf570nEpw9beJXQ/JzGpLzGj8A\n\t02nYHY3Kfovoxz/1Auuo5Mse+g=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:subject:to:references:from:message-id:date:mime-version\n\t:in-reply-to:content-type; s=default; bh=pcx8I9N0/mnU9kAB7oa04aQ\n\tlCYs=; b=oG1vLtRGz92ZTMgeo7riA+W8RMTALKVOqTygLnf59KNHkhm0+8zQUxF\n\tMwDJrrTEgRBX+UlOm7hvzaIcKdI+t4MZn3nOzi8yBYcxbaj5TBbd6qLYNAp3xkZ9\n\tCNQjI0LRM2rltebDcNvGUnq0d3ntJvU/mdlxqhrK23766TnE7DC0=","Mailing-List":"contact gcc-patches-help@gcc.gnu.org; run by ezmlm","Precedence":"bulk","List-Id":"<gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>","List-Archive":"<http://gcc.gnu.org/ml/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-help@gcc.gnu.org>","Sender":"gcc-patches-owner@gcc.gnu.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0,\n\tGIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3,\n\tKAM_LAZY_DOMAIN_SECURITY,\n\tRP_MATCHES_RCVD autolearn=ham version=3.3.2\n\tspammy=Hx-languages-length:1399","X-HELO":"foss.arm.com","Subject":"Re: [TESTSUITE]Use strncpy instead of strcpy in\n\ttestsuite/gcc.dg/memcmp-1.c","To":"Aaron Sawdey <acsawdey@linux.vnet.ibm.com>,\n\t\"gcc-patches@gcc.gnu.org\" <gcc-patches@gcc.gnu.org>","References":"<59A68270.7010101@foss.arm.com>\n\t<1504103852.4777.1.camel@linux.vnet.ibm.com>","From":"Renlin Li <renlin.li@foss.arm.com>","Message-ID":"<59A6DA43.60906@foss.arm.com>","Date":"Wed, 30 Aug 2017 16:31:15 +0100","User-Agent":"Mozilla/5.0 (X11; Linux x86_64;\n\trv:38.0) Gecko/20100101 Thunderbird/38.3.0","MIME-Version":"1.0","In-Reply-To":"<1504103852.4777.1.camel@linux.vnet.ibm.com>","Content-Type":"multipart/mixed;\n\tboundary=\"------------050306000002050807090801\"","X-IsSubscribed":"yes"}},{"id":1760595,"web_url":"http://patchwork.ozlabs.org/comment/1760595/","msgid":"<9AF71638-3F2D-41A1-BC59-14F0C3B7BAA7@comcast.net>","list_archive_url":null,"date":"2017-08-31T01:20:27","subject":"Re: [TESTSUITE]Use strncpy instead of strcpy in\n\ttestsuite/gcc.dg/memcmp-1.c","submitter":{"id":4385,"url":"http://patchwork.ozlabs.org/api/people/4385/","name":"Mike Stump","email":"mikestump@comcast.net"},"content":"On Aug 30, 2017, at 8:31 AM, Renlin Li <renlin.li@foss.arm.com> wrote:\n> memcpy is better than strncpy in this case.\n> Here is the updated patch.\n\nOk.","headers":{"Return-Path":"<gcc-patches-return-461195-incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list gcc-patches@gcc.gnu.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-461195-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"TyqGYSIf\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjPhM4PKFz9s7G\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 11:20:50 +1000 (AEST)","(qmail 103386 invoked by alias); 31 Aug 2017 01:20:43 -0000","(qmail 103375 invoked by uid 89); 31 Aug 2017 01:20:42 -0000","from resqmta-ch2-03v.sys.comcast.net (HELO\n\tresqmta-ch2-03v.sys.comcast.net) (69.252.207.35) by\n\tsourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tThu, 31 Aug 2017 01:20:32 +0000","from resomta-ch2-12v.sys.comcast.net ([69.252.207.108])\tby\n\tresqmta-ch2-03v.sys.comcast.net with ESMTP\tid\n\tnE9SdTcDToLcAnE9ndb3y2; Thu, 31 Aug 2017 01:20:31 +0000","from up.mrs.kithrup.com ([24.4.193.248])\tby\n\tresomta-ch2-12v.sys.comcast.net with SMTP\tid\n\tnE9ldiQa9CrDMnE9mdft1F; Thu, 31 Aug 2017 01:20:31 +0000"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:content-type:mime-version:subject:from:in-reply-to:date:cc\n\t:content-transfer-encoding:message-id:references:to; q=dns; s=\n\tdefault; b=PVYjX9cf6FCHVkB5q0aOD0wQp8u477JAfkf2pfVqVT3mmZIluFP0x\n\tOXNU/c/iVeHrbUAPkDfk+N7Qwh6YYv8aSexWQP6S96vKs3U9ZeV5CxQLLxoYsWvQ\n\tYUKJ+gfo+JWTE5p5NKVK5e2K2uaiP9mpd3evdUQ1/WlXXJlVwQeoNI=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:content-type:mime-version:subject:from:in-reply-to:date:cc\n\t:content-transfer-encoding:message-id:references:to; s=default;\n\tbh=QroS7eEQ2pLXPfrQl3GW0i5LeBU=; b=TyqGYSIfD2w/nfzg016HsZq/hO+T\n\tJiXNyFWNEz7vyXxpthXA8zRo5TQYSYw/ITHied8pPJ9GEdVi1fUYKCfxAWa1Nh5W\n\t0HGwf7VQIRKOo713cyICSfpcue0GT/cfF6lN9iUf8ZDnyLbzGFfO5r0NGD0J4l0H\n\tTMkzOAFIt1YmNJw=","Mailing-List":"contact gcc-patches-help@gcc.gnu.org; run by ezmlm","Precedence":"bulk","List-Id":"<gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>","List-Archive":"<http://gcc.gnu.org/ml/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-help@gcc.gnu.org>","Sender":"gcc-patches-owner@gcc.gnu.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-2.6 required=5.0 tests=AWL, BAYES_00,\n\tFREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:228","X-HELO":"resqmta-ch2-03v.sys.comcast.net","Content-Type":"text/plain; charset=us-ascii","Mime-Version":"1.0 (Mac OS X Mail 9.3 \\(3124\\))","Subject":"Re: [TESTSUITE]Use strncpy instead of strcpy in\n\ttestsuite/gcc.dg/memcmp-1.c","From":"Mike Stump <mikestump@comcast.net>","In-Reply-To":"<59A6DA43.60906@foss.arm.com>","Date":"Wed, 30 Aug 2017 18:20:27 -0700","Cc":"Aaron Sawdey <acsawdey@linux.vnet.ibm.com>,\n\t\"gcc-patches@gcc.gnu.org\" <gcc-patches@gcc.gnu.org>","Content-Transfer-Encoding":"7bit","Message-Id":"<9AF71638-3F2D-41A1-BC59-14F0C3B7BAA7@comcast.net>","References":"<59A68270.7010101@foss.arm.com>\n\t<1504103852.4777.1.camel@linux.vnet.ibm.com>\n\t<59A6DA43.60906@foss.arm.com>","To":"Renlin Li <renlin.li@foss.arm.com>","X-CMAE-Envelope":"MS4wfHwseCzXz6ub7jIatIMUS9mApuhJkA9hwPDWksErZ4VCvjkNgYhvdp9AicE62INaFRhTfNTc7q5QA6Vr3gAFct7IBsCWJsCJXMqvuPgnyngyO5WnPY8g\n\tMBazMnp/S752lT1ZAuSegTG46dX/qt73SDhDfO06+xXqDxnA0ccsZN6t2o5zXthUfIU9WBB0Z8cEPNuW1X7LZYD1DcP+99y7LDjxD8D2ogcj0c0M4A43e1Y9\n\tFRuoxDK6o3qq2AdlJr+ihA==","X-IsSubscribed":"yes"}}]