Example #1
0
int main()
{
   char *p2=NULL;
__boundcheck_metadata_store((void *)(&p2),(void *)((size_t)(&p2)+sizeof(p2)*8-1));

   char string[8]="ASDDSFF";__boundcheck_metadata_store(&string[0],&string[8-1]);

   char *__tmp_string_0="DDDFF";
 __boundcheck_metadata_store((void *)(__tmp_string_0),(void *)(__tmp_string_0+5));
char *p3=__tmp_string_0;
__boundcheck_metadata_store((void *)(&p3),(void *)((size_t)(&p3)+sizeof(p3)*8-1));

   int i;
__boundcheck_metadata_store((void *)(&i),(void *)((size_t)(&i)+sizeof(i)*8-1));


   static int a[10];__boundcheck_metadata_store(&a[0],&a[10-1]);

   int num[5]={1,2,3,4,5};__boundcheck_metadata_store(&num[0],&num[5-1]);

   if(conver(a,num))
    for (i = 0; i <5; i++)
      printf("%d  ",a[_RV_insert_check(0,10,25,21,"main",i)]);
 
   return 0;
}
Example #2
0
int main()
{
   char *p1,*p2=NULL;
   char string[8]="ASDDSFF";
   char *p3="DDDFF";
   
   
   int i,*ptr;

   static int a[10];
   int num[5]={1,2,3,4,5};

   ptr=num;

   if(conver(a,num))
    for (i = 0; i <5; i++)
      printf("%d  ",a[i]);
   printf("\n");

   p1=string;
   printf("%c\n",*(p1+2));
   pointer();
   interfunc();

   func2(string);
   func2(p1);
   func3(num);
   func3(ptr);
   return 0;
}
Example #3
0
int main()
{
   char *p2=NULL;
   char string[8]="ASDDSFF";
   char *p3="DDDFF";
   int i;

   static int a[10];
   int num[5]={1,2,3,4,5};
   if(conver(a,num))
    for (i = 0; i <5; i++)
      printf("%d  ",a[i]);
 
   return 0;
}