| 13 | int64_t *lp = new (&s) int64_t; /* { dg-warning "stack-based buffer overflow" } */ | |
| ^~ | 
| 12 | int8_t s; | |
| ^ | 
| 13 | int64_t *lp = new (&s) int64_t; /* { dg-warning "stack-based buffer overflow" } */ | |
| ^~~~~~~ | 
| 
                 
                  void var_too_short()
                 
                
  | 
            
| 13 | int64_t *lp = new (&s) int64_t; /* { dg-warning "stack-based buffer overflow" } */ | |
| ^~~~~~~ | 
| 13 | int64_t *lp = new (&s) int64_t; /* { dg-warning "stack-based buffer overflow" } */ | |
| ^~~~~~~ | 
| 
                 
                  void var_too_short()
                 
                
  | 
            
| 13 | int64_t *lp = new (&s) int64_t; /* { dg-warning "stack-based buffer overflow" } */ | |
| ^~~~~~~ | 
| 
                 
                  void var_too_short()
                 
                
 
 
  | 
            
| 21 | int *p = new (buf) int[n + 1]; /* { dg-warning "stack-based buffer overflow" } */ | |
| ^ | 
| 
                 
                  void static_buffer_too_short()
                 
                
 
  | 
            
| 21 | int *p = new (buf) int[n + 1]; /* { dg-warning "stack-based buffer overflow" } */ | |
| ^ | 
| 28 | char *p = new (buf) char[n + 10]; /* { dg-warning "stack-based buffer overflow" } */ | |
| ^ | 
| 
                 
                  void symbolic_buffer_too_short()
                 
                
  | 
            
| 36 | int32_t *i = ::new (p + 1) int32_t; /* { dg-warning "heap-based buffer overflow" } */ | |
| ^~~~~~~ | 
| 
                 
                  void test_binop()
                 
                
  | 
            
| 36 | int32_t *i = ::new (p + 1) int32_t; /* { dg-warning "heap-based buffer overflow" } */ | |
| ^~~~~~~ | 
| 37 | *i = 42; /* { dg-warning "heap-based buffer overflow" } */ | |
| ~~~^~~~ | 
| 
                 
                  void test_binop()
                 
                
  | 
            
| 37 | *i = 42; /* { dg-warning "heap-based buffer overflow" } */ | |
| ~~~^~~~ |