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:     nonnull-4.c (3 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* PR c/78673 - sprintf missing attribute nonnull on destination argument
   Test to verify that calls to user-defined functions declared with
   the "nonnull" function attribute are diagnosed.  */
/* { dg-do compile } */
/* { dg-options "-O2 -Wnonnull" } */

#define N(...) __attribute__ ((nonnull (__VA_ARGS__)))

void N (1) f1_1 (void*);

void N (1)       f2_1 (void*, void*);
void N (1) N (2) f2_1_2 (void*, void*);

void N (1) N (3) f3_1_3 (void*, void*, void*);

void N (1, 2) N (4) g4_1_2_4 (void*, void*, void*, void*);
void N (1, 3) N (4) g4_1_3_4 (void*, void*, void*, void*);
void N (2, 3, 4)    g4_2_3_4 (void*, void*, void*, void*);

void N () g4_all (void*, void*, void*, void*);

void N (1, 3, 5, 7, 11, 13)
g16_1_3_5_7_11_13 (void*, void*, void*, void*,
           void*, void*, void*, void*,
           void*, void*, void*, void*,
           void*, void*, void*, void*);

static void* null (void) { return 0; }

void test (void)
{
  void *p0 = null ();
  void *px = &px;

  f1_1 (p0);   /* { dg-warning "argument 1 null where non-null expected " } */
  f1_1 (px);

  f2_1 (p0, px);  /* { dg-warning "argument 1 null" } */
  f2_1 (px, p0);
  f2_1 (p0, p0);  /* { dg-warning "argument 1 null" } */

  f2_1_2 (p0, px);  /* { dg-warning "argument 1 null" } */
  f2_1_2 (px, p0);  /* { dg-warning "argument 2 null" } */
  f2_1_2 (p0, p0);  /* { dg-warning "argument 1 null" } */
  /* { dg-warning "argument 2 null" "argument 2" { target *-*-* } .-1 } */

  f3_1_3 (p0, px, px);  /* { dg-warning "argument 1 null" } */
  f3_1_3 (px, p0, px);
  f3_1_3 (px, px, p0);  /* { dg-warning "argument 3 null" } */
  f3_1_3 (p0, p0, px);  /* { dg-warning "argument 1 null" } */
  f3_1_3 (px, p0, p0);  /* { dg-warning "argument 3 null" } */
  f3_1_3 (p0, p0, p0);  /* { dg-warning "argument 1 null" } */
  /* { dg-warning "argument 3 null" "argument 3" { target *-*-* } .-1 } */

  g4_1_2_4 (p0, px, px, px);  /* { dg-warning "argument 1 null" } */
  g4_1_2_4 (px, p0, px, px);  /* { dg-warning "argument 2 null" } */
  g4_1_2_4 (px, px, p0, px);
  g4_1_2_4 (px, px, px, p0);  /* { dg-warning "argument 4 null" } */

  g4_1_3_4 (p0, px, px, px);  /* { dg-warning "argument 1 null" } */
  g4_1_3_4 (px, p0, px, px);
  g4_1_3_4 (px, px, p0, px);  /* { dg-warning "argument 3 null" } */
  g4_1_3_4 (px, px, px, p0);  /* { dg-warning "argument 4 null" } */

  g4_2_3_4 (p0, px, px, px);
  g4_2_3_4 (px, p0, px, px);  /* { dg-warning "argument 2 null" } */
  g4_2_3_4 (px, px, p0, px);  /* { dg-warning "argument 3 null" } */
  g4_2_3_4 (px, px, px, p0);  /* { dg-warning "argument 4 null" } */

  g4_all (p0, px, px, px);  /* { dg-warning "argument 1 null" } */
  g4_all (px, p0, px, px);  /* { dg-warning "argument 2 null" } */
  g4_all (px, px, p0, px);  /* { dg-warning "argument 3 null" } */
  g4_all (px, px, px, p0);  /* { dg-warning "argument 4 null" } */

  g16_1_3_5_7_11_13 (px, px, px, px, px, px, px, px,
             px, px, px, px, px, px, px, px);

  g16_1_3_5_7_11_13 (px, p0, px, p0, px, p0, px, p0, p0, p0, px, p0, p0, p0, p0, p0);   /* { dg-warning "argument 13 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.006 ]--