fortify-headers

standalone fortify-source implementation
git clone git://git.2f30.org/fortify-headers
Log | Files | Refs | README | LICENSE

test_realpath_null.c (194B)


      1 #include "common.h"
      2 
      3 #include <stdlib.h>
      4 #include <stdio.h>
      5 
      6 int main(int argc, char** argv) {
      7   char* rpath = realpath("/root/../", NULL);
      8   printf("%s\n", rpath);
      9   free(rpath);
     10   return 0;
     11 }