/* Cyrus IMAP server <= 2.0.8 magicplus buffer overflow prepatch. * * Ref: http://security.e-matters.de/advisories/152004.html * Ref: CAN-2004-1011 * * Vers: PIE 0.2 * Auth: Ben Hawkes * Date: 24/11/04 */ #include #include int main(void) { if (pie_begin("imapd", "imapd_canon_user", 9, PIE_NO_OPT) == -1) { perror("pie_begin"); exit(1); } if (pie_string_length(3, PIE_LESS_THAN, 490) == -1) { perror("pie_string_length"); exit(1); } if (pie_end(NULL, 0) == -1) { perror("pie_end"); exit(1); } }