Advertisement
Guest User

stdio-common/vfprintf.c %n fortify

a guest
Jan 30th, 2012
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.04 KB | None | 0 0
  1.     LABEL (form_number):                                                      \
  2.       if (s->_flags2 & _IO_FLAGS2_FORTIFY)                                    \
  3.         {                                                                     \
  4.           if (! readonly_format)                                              \
  5.             {                                                                 \
  6.               extern int __readonly_area (const void *, size_t)               \
  7.                 attribute_hidden;                                             \
  8.               readonly_format                                                 \
  9.                 = __readonly_area (format, ((STR_LEN (format) + 1)            \
  10.                                             * sizeof (CHAR_T)));              \
  11.             }                                                                 \
  12.           if (readonly_format < 0)                                            \
  13.             __libc_fatal ("*** %n in writable segment detected ***\n");       \
  14.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement