fortify-headers

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

test_vprintf.c (240B)


      1 #include "common.h"
      2 
      3 #include <stdarg.h>
      4 #include <stdio.h>
      5 
      6 void wrap(char *format, ...) {
      7   va_list args;
      8   va_start(args, format);
      9   vprintf(format, args);
     10   va_end(args);
     11 }
     12 
     13 
     14 int main(int argc, char** argv) {
     15   wrap("%s", "1234567");
     16 }