fortify-headers

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

test_ppoll_static.c (271B)


      1 #include "common.h"
      2 
      3 #define _GNU_SOURCE
      4 #include <poll.h>
      5 
      6 int main(int argc, char** argv) {
      7 #if !defined(__clang__)
      8   struct pollfd buffer[12] = {0};
      9 
     10   CHK_FAIL_START
     11   ppoll(buffer, 14, NULL, NULL);
     12   CHK_FAIL_END
     13 
     14   puts((const char*)buffer);
     15 #endif
     16   return ret;
     17 }