From df3f49c7a00a219f9f4c9fefea81d83a891d5b05 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 10 Mar 2017 10:56:41 -0800 Subject: [PATCH] MicroVAX1: Fix NULL reference check in boot command parsing (COVERITY) --- VAX/vax610_sysdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/VAX/vax610_sysdev.c b/VAX/vax610_sysdev.c index eb40e8d3..24ab6b6c 100644 --- a/VAX/vax610_sysdev.c +++ b/VAX/vax610_sysdev.c @@ -387,7 +387,9 @@ DEVICE *dptr; UNIT *uptr; t_stat r; -if (ptr && (*ptr == '/')) { /* handle "BOOT /R5:n DEV" format */ +if (ptr == NULL) + return SCPE_ARG; +if (*ptr == '/') { /* handle "BOOT /R5:n DEV" format */ ptr = get_glyph (ptr, rbuf, 0); /* get glyph */ regptr = rbuf; ptr = get_glyph (ptr, gbuf, 0); /* get glyph */