summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd
diff options
context:
space:
mode:
authorrobert <robert@FreeBSD.org>2002-02-26 10:22:25 +0000
committerrobert <robert@FreeBSD.org>2002-02-26 10:22:25 +0000
commit6ec282a1def19bae35445c0c0c7b6cb7d8512303 (patch)
treecfb45059f7ba29ee95a6a8b852b8dfb762b5d4cb /usr.bin/doscmd
parenta3d52070880e115f522ee53be1b21889905c3b4b (diff)
downloadFreeBSD-src-6ec282a1def19bae35445c0c0c7b6cb7d8512303.zip
FreeBSD-src-6ec282a1def19bae35445c0c0c7b6cb7d8512303.tar.gz
Avoid a null-pointer dereference which occurred when emulating DOS
interrupt 0x10 function 0x00 without dpy int tty.c being set. PR: 35147 Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
Diffstat (limited to 'usr.bin/doscmd')
-rw-r--r--usr.bin/doscmd/int10.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/doscmd/int10.c b/usr.bin/doscmd/int10.c
index 183721a..1b33b4a 100644
--- a/usr.bin/doscmd/int10.c
+++ b/usr.bin/doscmd/int10.c
@@ -56,6 +56,8 @@ int10(regcontext_t *REGS)
switch (R_AH) {
case 0x00: /* Set display mode */
+ if (!xmode)
+ goto unsupported;
init_mode(R_AL);
break;
case 0x01: /* Define cursor */
OpenPOWER on IntegriCloud