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/g++.dg/init/   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:     new45.C (3.05 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
// { dg-do compile }
// { dg-options "-O1" }
// { dg-final { scan-assembler-not "abort" } }

typedef __SIZE_TYPE__ size_t;

extern "C" {
    void abort ();
    void* malloc (size_t);
}

struct UDClass {
    static int n;
    UDClass () { ++n; }
    virtual ~UDClass () { --n; }
};

int UDClass::n;

struct POD {
    char buf [sizeof (UDClass)];
};

enum { N = 123 };

#if defined (__arm__) && defined (__ARM_EABI__)
// On ARM EABI the cookie is always 8 bytes as per Section 3.2.2 of
// http://infocenter.arm.com/help/topic/com.arm.doc.ihi0041d/IHI0041D_cppabi.pdf
static const size_t cookie_size = 8;
#else
// On all other targets, the cookie size is the size of size_t
// GCC, and ideally the C++ standard, should provide an API to
// retrieve this constant.)
static const size_t cookie_size = sizeof (size_t);
#endif

inline __attribute__ ((always_inline))
void* operator new[] (size_t n)
{
    // Verify that array new is invoked with an argument large enough
    // for the array and a size_t cookie to store the number of elements.
    // (This holds for classes with user-defined types but not POD types).
 
  if (n != N * sizeof (UDClass) + cookie_size) abort ();
    return malloc (n);
}

inline __attribute__ ((always_inline))
void* operator new[] (size_t n, void *p)
{
    // Verify that the default placement array new is invoked with
    // an argument just large enough for the array (and no cookie),
    // regardless of whether the type is a POD or class with a user
    // defined ctor.
    if (n != N * sizeof (UDClass)) abort ();
    return p;
}

inline __attribute__ ((always_inline))
void* operator new[] (size_t n, POD *p)
{
    // Verify that placement array new overload for a POD type is
    // invoked with an argument large enough for the array and
    // a cookie.
    if (n != N * sizeof (POD)) abort ();
    return p;
}

inline __attribute__ ((always_inline))
void* operator new[] (size_t n, UDClass *p)
{
    // Verify that placement array new overload for a class type with
    // a user-defined ctor and dtor is invoked with an argument large
    // enough for the array and a cookie.
    if (n != N * sizeof (UDClass) + cookie_size) abort ();
    return p;
}

// UDClassllocate a sufficiently large buffer to construct arrays into.
static unsigned char buf [N * N];

POD* test_new_POD ()
{
    // Avoid testing PODs since for those, the global new is invoked
    // without the overhead of a cookie.
    // return new POD [N];
    return 0;
}

POD* test_default_placement_new_POD ()
{
    // Vefify that no overhead is allocated.
    return new (buf) POD [N];
}

POD* test_overloaded_placement_new_POD ()
{
    // Vefify that no overhead is allocated.
    return new ((POD*)buf) POD [N];
}

UDClass* test_new_UDClass ()
{
    // Vefify that space for a cookie is allocated.
    return new UDClass [N];
}

UDClass* test_default_placement_new_UDClass ()
{
    // Vefify that no overhead is allocated.
    return new (buf) UDClass [N];
}

UDClass* test_overloaded_placement_new_UDClass ()
{
    // Vefify that space for a cookie is allocated.
    return new ((UDClass*)buf) UDClass [N];
}

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