fortify-headers

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

test_select_static.c (245B)


      1 #include "common.h"
      2 
      3 #include <sys/select.h>
      4 
      5 int main(int argc, char** argv) {
      6 #if !defined(__clang__)
      7   fd_set rfds;
      8 
      9   CHK_FAIL_START
     10   select(1337, &rfds, NULL, NULL, NULL);
     11   CHK_FAIL_END
     12 
     13   puts((const char*)&rfds);
     14 #endif
     15   return ret;
     16 }