Gentoo Archives: gentoo-user

From: Mart Raudsepp <leio@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] memset_s
Date: Mon, 13 Nov 2017 03:03:55
Message-Id: 1510542223.24203.0.camel@gentoo.org
In Reply to: Re: [gentoo-user] memset_s by Jorge Almeida
1 On L, 2017-11-11 at 00:10 +0000, Jorge Almeida wrote:
2 > Well, most programmers probably won't care about this stuff anyway,
3 > and people who deal with cryptography tend to be more cautious than
4 > average. But I'm not really making a case for safe versions of known
5 > functions. After all, the usual functions do fine for most
6 > applications. memset() would be enough to clear RAM with sensitive
7 > data if we had a pragma (or equivalent) to convince the compiler to
8 > not ignore it (I mean a pragma to invoke on a particular function
9 > definition when the programmer  feels that a black box behaviour is
10 > undesirable). Of course, solving the problem of the compiler copying
11 > stuff around might be harder nut to crack.
12
13 Sounds like you want explicit_bzero from libbsd?

Replies

Subject Author
Re: [gentoo-user] memset_s Jorge Almeida <jjalmeida@×××××.com>