Displaying 1 result from an estimated 1 matches for "foo31".
Did you mean:
foo1
2008 Feb 24
0
Zeroing sensitive memory chunks [Was: Security Flaw in Popular Disk Encryption Technologies]
...et() even if there is such local
function.
Here is the test example:
-----
$ cat poc1.c
#include <stdio.h>
#include <strings.h>
void *
memset(void *b, int c, size_t len)
{
char *bb;
for (bb = (char *)b; len--; )
*bb++ = c;
return (b);
}
int foo31()
{
char buffer[31];
scanf("%30s", buffer);
memset(buffer, 0, sizeof(buffer));
}
int bar31()
{
char buffer[31];
scanf("%30s", buffer);
bzero(buffer, sizeof(buffer));
}
int main()
{
bar31();
foo31();
retu...