Liste des Groupes | Revenir à cl c |
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:Those zeros might be "targets" for a nefarious program?On 3/20/2024 12:37 PM, Chris M. Thomasson wrote:Why?On 3/20/2024 11:18 AM, Stefan Ram wrote:>A "famous security bug":Add in a volatile? ;^)
>
void f( void )
{ char buffer[ MAX ];
/* . . . */
memset( buffer, 0, sizeof( buffer )); }
>
. Can you see what the bug is?
>
(I have already read the answer; I post it as a pastime.)
Instead of zeroing, what about filling it with random bytes reaped
from a TRNG?
Les messages affichés proviennent d'usenet.