c6519e3e03
the following fixes had been made: - check the size of the font being loaded and compare it with possible sizes to minimise possibility of loading something that is not a fontfile at all and turning console screen into garbage; - prevent buffer overflow (and coredump as a result ) when loading valid uuencoded file with size that exceeds allocated buffer; - correct and improve several error messages. Approved by: -audit, -hackers (silently)
4 lines
62 B
C
4 lines
62 B
C
/* $FreeBSD$ */
|
|
|
|
int decode(FILE *fd, char *buffer, int len);
|