A.Olokhtonov
3 years ago
13 changed files with 30 additions and 3 deletions
@ -1,2 +0,0 @@
@@ -1,2 +0,0 @@
|
||||
debug: |
||||
gcc main.c -g -O0 -o build/trace -Wall -Wextra -Wno-unused-variable -Wno-unused-function -Wno-switch # -fsanitize=address |
@ -0,0 +1,25 @@
@@ -0,0 +1,25 @@
|
||||
struct user_struct_1 { |
||||
char c_field; |
||||
// 3 bytes of padding
|
||||
int int_field; |
||||
long long_field; |
||||
}; |
||||
|
||||
typedef long l64; |
||||
|
||||
int main(int argc, char **argv) |
||||
{ |
||||
int *int_ptr = (void*) 0x01; |
||||
int **int_ptr_ptr = (void *) 0x02; |
||||
|
||||
l64 long_var = 123321; |
||||
|
||||
char c = '0'; |
||||
const char *const_c = &c; |
||||
|
||||
int arr[10] = { 0 }; |
||||
|
||||
struct user_struct_1 str = { 0 }; |
||||
|
||||
return(0); |
||||
} |
@ -0,0 +1,2 @@
@@ -0,0 +1,2 @@
|
||||
debug: |
||||
gcc main.c -g -O0 -o ../build/trace -Wall -Wextra -Wno-unused-variable -Wno-unused-function -Wno-switch # -fsanitize=address |
Loading…
Reference in new issue