From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6921 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Daniel_Cegie=C5=82ka?= Newsgroups: gmane.linux.lib.musl.general Subject: Re: thoughts on reallocarray, explicit_bzero? Date: Wed, 28 Jan 2015 23:54:06 +0100 Message-ID: References: <20140519153130.GA519@muslin> <20140519161654.GO507@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1422485685 20846 80.91.229.3 (28 Jan 2015 22:54:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2015 22:54:45 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6934-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jan 28 23:54:41 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YGbVQ-0005EP-H8 for gllmg-musl@m.gmane.org; Wed, 28 Jan 2015 23:54:40 +0100 Original-Received: (qmail 7721 invoked by uid 550); 28 Jan 2015 22:54:39 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 7713 invoked from network); 28 Jan 2015 22:54:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=d9RPlcCOgrIACOVxF2ZBYP3A7rkEFpuzQO2JVDc+87Y=; b=v4NriAdPomyfQLIguNg2J1OTFNVVNw6NCUBz9q4xAsn+b/JCWklUU2542MbYVyvtxk oqxpgTfW2XbW0rKX7rua29bWINQ4W8JvyDLfDMT4rfrN2S5Z44W4SGItOBMqx6pnlESw BNDUB6gNLZM1/TdmtqLNr/BaW+WRohdQUfhcv2rsqfh6T3S/LDxU+81YBDG123dcThqr XdxkpOLuP9Lp3ZLsSkGk8W0dlzuWIlD35saTmWWuSajz9+DmZgtLh5iOjFBhHeq+y7qf ktBD1/CJ3ym7yb1QPWUCs5atlWoUgAugdtOXRJTNr/em5SDIs+nT11zIZeEVabfW0eDY WhBQ== X-Received: by 10.182.246.163 with SMTP id xx3mr3719437obc.83.1422485666805; Wed, 28 Jan 2015 14:54:26 -0800 (PST) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:6921 Archived-At: 2015-01-28 23:38 GMT+01:00 Nathan McSween : > How can a compiler optimize out a memory barrier? The problem is not whether to do it or not, but in the fact that the right solution is to use memset_s(). http://en.wikichip.org/wiki/c/c11#Bounds-checking_interfaces_annex_.28Annex_K.29