| 358 | } /* { dg-warning "leak of 'tmp.m_ptr'" } */ | |
| ^ | 
| 
                 
                  test_30
                 
                
  | 
            
| 12 | free (ptr); /* { dg-warning "double-'free' of 'ptr'" } */ | |
| ^~~~~~~~~~ | 
| 
                 
                  test_1
                 
                
  | 
            
| 18 | free (ptr); /* { dg-warning "double-'free' of 'ptr'" } */ | |
| ^~~~~~~~~~ | 
| 
                 
                  test_2
                 
                
  | 
            
| 24 | __builtin_free (ptr); /* { dg-warning "double-'free' of 'ptr'" } */ | |
| ^~~~~~~~~~~~~~~~~~~~ | 
| 
                 
                  test_2a
                 
                
  | 
            
| 30 | *ptr = 42; /* { dg-warning "dereference of possibly-NULL 'ptr' \\\[CWE-690\\\]" } */ | |
| ~~~~~^~~~ | 
| 
                 
                  test_3
                 
                
  | 
            
| 37 | *ptr = 42; /* { dg-warning "dereference of possibly-NULL 'ptr' \\\[CWE-690\\\]" } */ | |
| ~~~~~^~~~ | 
| 
                 
                  test_3a
                 
                
  | 
            
| 47 | *ptr = 43; /* { dg-warning "dereference of NULL 'ptr' \\\[CWE-476\\\]" } */ | |
| ~~~~~^~~~ | 
| 
                 
                  test_4
                 
                
  | 
            
| 54 | return *ptr; /* { dg-warning "use after 'free' of 'ptr'" } */ | |
| ^~~~ | 
| 
                 
                  test_5
                 
                
  | 
            
| 62 | free (q); /* { dg-warning "double-'free' of 'q'" } */ | |
| ^~~~~~~~ | 
| 
                 
                  test_6
                 
                
  | 
            
| 93 | free (ptr); /* { dg-warning "double-'free' of 'ptr'" } */ | |
| ^~~~~~~~~~ | 
| 
                 
                  test_9
                 
                
 
  | 
            
| 105 | free (ptr); /* { dg-warning "double-'free' of 'ptr'" } */ | |
| ^~~~~~~~~~ | 
| 
                 
                  test_10
                 
                
  | 
            
| 116 | free (ptr); /* { dg-warning "double-'free' of 'ptr'" } */ | |
| ^~~~~~~~~~ | 
| 
                 
                  test_11
                 
                
  | 
            
| 125 | free (ptr); /* { dg-warning "infinite loop" } */ | |
| ^~~~~~~~~~ | 
| 
                 
                  test_12
                 
                
 
  | 
            
| 126 | free (ptr); /* { dg-warning "double-'free' of 'ptr'" } */ | |
| ^~~~~~~~~~ | 
| 
                 
                  test_12
                 
                
  | 
            
| 139 | return; /* { dg-warning "leak of 'p'" } */ | |
| ^~~~~~ | 
| 
                 
                  test_13
                 
                
  | 
            
| 164 | free (p); /* { dg-warning "double-'free' of 'p'" } */ | |
| ^~~~~~~~ | 
| 
                 
                  test_14
                 
                
  | 
            
| 205 | free (q); /* { dg-warning "use of uninitialized value 'q'" } */ | |
| ^~~~~~~~ | 
| 
                 
                  test_16
                 
                
  | 
            
| 212 | } /* { dg-warning "leak of 'ptr'" } */ | |
| ^ | 
| 
                 
                  test_17
                 
                
  | 
            
| 217 | ptr = NULL; /* { dg-warning "leak of 'ptr'" } */ | |
| ^ | 
| 
                 
                  test_18
                 
                
 
  | 
            
| 253 | free (ptr); /* { dg-warning "double-'free' of 'ptr'" } */ | |
| ^~~~~~~~~~ | 
| 
                 
                  test_22
                 
                
  | 
            
| 259 | ptr[0] = 42; /* { dg-warning "dereference of possibly-NULL 'ptr' \\\[CWE-690\\\]" } */ | |
| ~~~~~~~^~~~ | 
| 
                 
                  test_23
                 
                
  | 
            
| 266 | ptr[0] = 42; /* { dg-warning "dereference of possibly-NULL 'ptr' \\\[CWE-690\\\]" } */ | |
| ~~~~~~~^~~~ | 
| 
                 
                  test_23a
                 
                
  | 
            
| 273 | free (ptr); /* { dg-warning "'free' of 'ptr' which points to memory on the stack \\\[CWE-590\\\]" } */ | |
| ^~~~~~~~~~ | 
| 
                 
                  test_24
                 
                
  | 
            
| 280 | free (p); /* { dg-warning "'free' of 'p' which points to memory on the stack \\\[CWE-590\\\]" } */ | |
| ^~~~~~~~ | 
| 
                 
                  test_25
                 
                
  | 
            
| 289 | free (p); /* { dg-warning "'free' of 'p' which points to memory not on the heap \\\[CWE-590\\\]" } */ | |
| ^~~~~~~~ | 
| 
                 event 1 
                
  | 
            
| 
                 
                  test_26
                 
                
  | 
            
| 301 | p->x = 0.f; /* { dg-warning "dereference of possibly-NULL 'p' \\\[CWE-690\\\]" } */ | |
| ~~~~~^~~~~ | 
| 
                 
                  test_27
                 
                
  | 
            
| 312 | p->x = 0.f; /* { dg-warning "dereference of NULL 'p' \\\[CWE-476\\\]" } */ | |
| ~~~~~^~~~~ | 
| 
                 
                  test_28
                 
                
  | 
            
| 366 | } /* { dg-warning "leak of 'ptr'" } */ | |
| ^ | 
| 
                 
                  test_31
                 
                
  | 
            
| 379 | } /* { dg-warning "leak of 'ptr'" } */ | |
| ^ | 
| 
                 
                  test_33
                 
                
  | 
            
| 390 | *q = 1.0f; /* { dg-warning "use after 'free' of 'q'" } */ | |
| ~~~^~~~~~ | 
| 
                 
                  test_34
                 
                
  | 
            
| 415 | __builtin_memset(ptr, 0, 4096); /* { dg-warning "use of possibly-NULL 'ptr' where non-null expected \\\[CWE-690\\\]" } */ | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 
| 
                 
                  test_37a
                 
                
  | 
            
| 426 | __builtin_memset(q, 0, 4096); /* { dg-warning "use of possibly-NULL 'q' where non-null expected \\\[CWE-690\\\]" } */ | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 
| 
                 
                  test_37b
                 
                
  | 
            
| 451 | *p = i; /* { dg-warning "dereference of possibly-NULL 'p' \\\[CWE-690\\\]" } */ | |
| ~~~^~~ | 
| 
                 
                  test_39
                 
                
  | 
            
| 459 | i = *p; /* { dg-warning "dereference of possibly-NULL 'p' \\\[CWE-690\\\]" "possibly-null" } */ | |
| ~~^~~~ | 
| 
                 
                  test_40
                 
                
  | 
            
| 459 | i = *p; /* { dg-warning "dereference of possibly-NULL 'p' \\\[CWE-690\\\]" "possibly-null" } */ | |
| ~~^~~~ | 
| 
                 
                  test_40
                 
                
  | 
            
| 475 | buffer[0] = 'a'; /* { dg-warning "dereference of possibly-NULL 'buffer' \\\[CWE-690\\\]" "possibly-NULL" } */ | |
| ~~~~~~~~~~^~~~~ | 
| 
                 
                  test_41
                 
                
 
 
  | 
            
| 475 | buffer[0] = 'a'; /* { dg-warning "dereference of possibly-NULL 'buffer' \\\[CWE-690\\\]" "possibly-NULL" } */ | |
| ~~~~~~~~~~^~~~~ | 
| 
                 
                  test_41
                 
                
  | 
            
| 486 | } /* { dg-warning "leak of 'p'" } */ | |
| ^ | 
| 
                 
                  test_42a
                 
                
  | 
            
| 496 | } /* { dg-warning "leak of 'p'" } */ | |
| ^ | 
| 
                 
                  test_42b
                 
                
  | 
            
| 537 | global_link.m_ptr = NULL; /* { dg-warning "leak of 'global_link.m_ptr'" } */ | |
| ^ | 
| 
                 
                  test_43
                 
                
 
  | 
            
| 548 | free (global_ptr); /* { dg-warning "leak of '<unknown>'" } */ | |
| ^~~~~~~~~~~~~~~~~ | 
| 
                 
                  test_44
                 
                
  | 
            
| 593 | *p = 1; /* { dg-warning "dereference of NULL 'p' \\\[CWE-476\\\]" } */ | |
| ~~~^~~ | 
| 
                 
                  test_48
                 
                
  | 
            
| 605 | *p = 1; /* { dg-warning "dereference of NULL 'p' \\\[CWE-476\\\]" } */ | |
| ~~~^~~ | 
| 
                 
                  test_49
                 
                
  | 
            
| 617 | free (test_50a); /* { dg-warning "'free' of '&test_50a' which points to memory not on the heap \\\[CWE-590\\\]" } */ | |
| ^~~~~~~~~~~~~~~ | 
| 
                 
                  test_50b
                 
                
  | 
            
| 623 | free (&&my_label); /* { dg-warning "'free' of '&my_label' which points to memory not on the heap \\\[CWE-590\\\]" } */ | |
| ^~~~~~~~~~~~~~~~~ | 
| 
                 
                  test_50c
                 
                
  | 
            
| 632 | free (p); /* { dg-warning "double-'free' of 'p'" } */ | |
| ^~~~~~~~ | 
| 
                 
                  test_51
                 
                
  | 
            
| 273 | free (ptr); /* { dg-warning "'free' of 'ptr' which points to memory on the stack \\\[CWE-590\\\]" } */ | |
| ^~~~~~~~~~ | 
| 272 | void *ptr = __builtin_alloca (sizeof (int)); /* { dg-message "region created on stack here" } */ | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 
| 280 | free (p); /* { dg-warning "'free' of 'p' which points to memory on the stack \\\[CWE-590\\\]" } */ | |
| ^~~~~~~~ | 
| 278 | char tmp[100]; /* { dg-message "region created on stack here" } */ | |
| ^~~ | 
| 289 | free (p); /* { dg-warning "'free' of 'p' which points to memory not on the heap \\\[CWE-590\\\]" } */ | |
| ^~~~~~~~ | 
| 284 | char global_buffer[100]; /* { dg-message "region created here" } */ | |
| ^~~~~~~~~~~~~ | 
| 484 | free (p + 64); /* this could well corrupt the heap. */ | |
| ^~~~~~~~~~~~~ | 
| 483 | void *p = malloc (1024); /* { dg-message "allocated here" } */ | |
| ^~~~~~~~~~~~~ | 
| 617 | free (test_50a); /* { dg-warning "'free' of '&test_50a' which points to memory not on the heap \\\[CWE-590\\\]" } */ | |
| ^~~~~~~~~~~~~~~ | 
| 611 | void test_50a (void) | |
| ^~~~~~~~ | 
| 623 | free (&&my_label); /* { dg-warning "'free' of '&my_label' which points to memory not on the heap \\\[CWE-590\\\]" } */ | |
| ^~~~~~~~~~~~~~~~~ | 
| 622 | my_label: | |
| ^~~~~~~~ |