/* Citadel <= 6.27 syslog format string prepatch. * * Ref: http://securityfocus.com/archive/1/384192/2004-12-11/2004-12-17/0 * * Note: This prepatch will only work with the CVS release or versions * Note: later than 0.2 * Auth: Ben Hawkes * Date: 14/12/04 */ #include #include int main(void) { if (pie_begin("citserver", "syslog", 2, PIE_OPT_LIBREDIR) == -1) { perror("pie_begin"); exit(1); } if (pie_byte_count(2, '%', PIE_EQUAL, 0) == -1) { perror("pie_string_length"); exit(1); } if (pie_end(NULL, 0) == -1) { perror("pie_end"); exit(1); } }