summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vidcontrol/decode.h
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-04-09 17:24:29 +0000
committersobomax <sobomax@FreeBSD.org>2001-04-09 17:24:29 +0000
commitc6519e3e0388685fc2a942ced6420a40fc7f38a5 (patch)
tree6ca7b010816880f6fc270e856bc54f9b1974b251 /usr.sbin/vidcontrol/decode.h
parentd06e42bb7e201adc51a3604b67db6591e901e7f0 (diff)
downloadFreeBSD-src-c6519e3e0388685fc2a942ced6420a40fc7f38a5.zip
FreeBSD-src-c6519e3e0388685fc2a942ced6420a40fc7f38a5.tar.gz
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)
Diffstat (limited to 'usr.sbin/vidcontrol/decode.h')
-rw-r--r--usr.sbin/vidcontrol/decode.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/vidcontrol/decode.h b/usr.sbin/vidcontrol/decode.h
index b939af4..1f1cba4 100644
--- a/usr.sbin/vidcontrol/decode.h
+++ b/usr.sbin/vidcontrol/decode.h
@@ -1 +1,3 @@
-int decode(FILE *fd, char *buffer);
+/* $FreeBSD$ */
+
+int decode(FILE *fd, char *buffer, int len);
OpenPOWER on IntegriCloud