After watching the presentation of Ilja van Sprundel at CCC 35C3 [1] I noticed that there is at least one location where a memset is used at the end of a function to clear sensitive data. However, as explained in Ilja's talk, there is a high chance that the memset is optimized out....
本发明公开了一种优化的memset标准库函数汇编代码生成方法,包括:根据目标机器的硬件特性,确定待生成的优化的填充执行片段所具有的属性特征及规模;根据待生成的优化的填充执行片段的规模,构造集中跳转表;根据集中跳转表,对输入参数中的目标填充地址和填充规模进行分支判断,建立输入参数集到集中跳转表的映射关系;根据目标...
Message-ID: <CAPfzE3ZiR0xngueXCgFSsO0mHFo5wOUjRZ=b3gVKQRgpF4yTpA@mail.gmail.com> Date: Wed, 28 Aug 2013 12:05:43 +1200 From: Andre Renaud <andre@...ewatersys.com> To: musl@...ts.openwall.com Subject: Re: Optimized C memset [v2] Hi Rich, On 28 August 2013 04:22, Rich ...
Message-ID: <521CB8F7.6050507@gentoo.org> Date: Tue, 27 Aug 2013 16:34:31 +0200 From: Luca Barbato <lu_zero@...too.org> To: musl@...ts.openwall.com Subject: Re: Optimized C memset On 27/08/13 16:21, Rich Felker wrote: > If you're saying testing __has_may_alias__ rather...
This simple function is properly optimized into a memset by clang and gcc, but the latest MSVC with /O2 produces this inefficient code. Godbolt link: https://godbolt.org/z/hadjdh4PG buffer$ = 8 void zero_float_fill(float *) PROC ; zero_float_fill, COMDAT xorps xmm...
I suspect that this is somewhat irrelevant to the problem at hand. Pretty much any memset() invocation can be optimized in weird ways, but we don't intend to warn on every memset() invocation because of that. The problem we've identified is that the developer uses this memset()with the...
According to the method, the optimized data filling effect is achieved, the data filling performance of a memset standard library function is improved, and the portability is good.朱浩应欢王东辉洪缨