mirror of
https://github.com/ioacademy-jikim/debugging
synced 2025-06-06 23:46:15 +00:00
20 lines
274 B
C
20 lines
274 B
C
#include <string.h>
|
|
#include <stdlib.h>
|
|
static void *rrr;
|
|
static void **p_rrr;
|
|
|
|
static void foo(void)
|
|
{
|
|
p_rrr = malloc(sizeof(void **));
|
|
|
|
*p_rrr = strdup("bbb");
|
|
*p_rrr = ((char *)(*p_rrr))+1;
|
|
p_rrr = (void **)(((char *)(p_rrr))+1);
|
|
}
|
|
|
|
int main()
|
|
{
|
|
foo();
|
|
return 0;
|
|
}
|