freebsd-dev/usr.sbin/vidcontrol/decode.h
Maxim Sobolev 5e0db936b5 Allow user to omit font size specification when loading a font. In addition
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)
2001-04-09 17:24:29 +00:00

4 lines
62 B
C

/* $FreeBSD$ */
int decode(FILE *fd, char *buffer, int len);