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/analyzer/   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:     setjmp-7a.c (2.8 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* { dg-additional-options "-fdiagnostics-show-line-numbers -fdiagnostics-path-format=inline-events -fdiagnostics-show-caret" } */
/* { dg-enable-nn-line-numbers "" } */
/* { dg-require-effective-target indirect_jumps } */

#include "test-setjmp.h"
#include <stdlib.h>

extern int foo (int) __attribute__ ((__pure__));

static jmp_buf env;

static void inner (void)
{
  longjmp (env, 1); /* { dg-warning "leak of 'ptr'" } */
}

static void middle (void)
{
  void *ptr = malloc (1024);
  inner ();
  free (ptr);
}

void outer (void)
{
  int i;

  foo (0);

  i = SETJMP(env);

  if (i == 0)
    {
      foo (1);
      middle ();
    }

  foo (3);
}

/* { dg-begin-multiline-output "" }
   NN |   longjmp (env, 1);
      |   ^~~~~~~~~~~~~~~~
  'outer': event 1
    |
    |   NN | void outer (void)
    |      |      ^~~~~
    |      |      |
    |      |      (1) entry to 'outer'
    |
  'outer': event 2
    |
    |   NN |   i = SETJMP(env);
    |      |       ^~~~~~
    |      |       |
    |      |       (2) 'setjmp' called here
    |
  'outer': events 3-5
    |
    |   NN |   if (i == 0)
    |      |      ^
    |      |      |
    |      |      (3) following 'true' branch (when 'i == 0')...
    |   NN |     {
    |   NN |       foo (1);
    |      |       ~~~~~~~
    |      |       |
    |      |       (4) ...to here
    |   NN |       middle ();
    |      |       ~~~~~~~~~
    |      |       |
    |      |       (5) calling 'middle' from 'outer'
    |
    +--> 'middle': events 6-8
           |
           |   NN | static void middle (void)
           |      |             ^~~~~~
           |      |             |
           |      |             (6) entry to 'middle'
           |   NN | {
           |   NN |   void *ptr = malloc (1024);
           |      |               ~~~~~~~~~~~~~
           |      |               |
           |      |               (7) allocated here
           |   NN |   inner ();
           |      |   ~~~~~~~~   
           |      |   |
           |      |   (8) calling 'inner' from 'middle'
           |
           +--> 'inner': events 9-11
                  |
                  |   NN | static void inner (void)
                  |      |             ^~~~~
                  |      |             |
                  |      |             (9) entry to 'inner'
                  |   NN | {
                  |   NN |   longjmp (env, 1);
                  |      |   ~~~~~~~~~~~~~~~~
                  |      |   |
                  |      |   (10) 'ptr' leaks here; was allocated at (7)
                  |      |   (11) rewinding from 'longjmp' in 'inner'...
                  |
    <-------------+
    |
  'outer': event 12
    |
    |   NN |   i = SETJMP(env);
    |      |       ^~~~~~
    |      |       |
    |      |       (12) ...to 'setjmp' in 'outer' (saved at (2))
    |
    { dg-end-multiline-output "" } */

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