From 680ad4f23916e1fcd16d51f0454e9fcf665c2c0c Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 30 Mar 2017 19:20:48 -0700 Subject: [PATCH] Various VAX: Mark Coverity False Positive for boot command parsing --- VAX/vax610_sysdev.c | 1 + VAX/vax730_sys.c | 1 + VAX/vax750_cmi.c | 1 + VAX/vax780_sbi.c | 1 + VAX/vax860_abus.c | 1 + 5 files changed, 5 insertions(+) diff --git a/VAX/vax610_sysdev.c b/VAX/vax610_sysdev.c index 24ab6b6c..ae2d32ff 100644 --- a/VAX/vax610_sysdev.c +++ b/VAX/vax610_sysdev.c @@ -403,6 +403,7 @@ else { /* handle "BOOT DEV /R5: } /* parse R5 parameter value */ r5v = 0; +/* coverity[NULL_RETURNS] */ if ((strncmp (regptr, "/R5:", 4) == 0) || (strncmp (regptr, "/R5=", 4) == 0) || (strncmp (regptr, "/r5:", 4) == 0) || diff --git a/VAX/vax730_sys.c b/VAX/vax730_sys.c index d3575d95..d1a5c107 100644 --- a/VAX/vax730_sys.c +++ b/VAX/vax730_sys.c @@ -513,6 +513,7 @@ else ba = dibp->ba; unitno = (int32) (uptr - dptr->units); r5v = 0; +/* coverity[NULL_RETURNS] */ if ((strncmp (regptr, "/R5:", 4) == 0) || (strncmp (regptr, "/R5=", 4) == 0) || (strncmp (regptr, "/r5:", 4) == 0) || diff --git a/VAX/vax750_cmi.c b/VAX/vax750_cmi.c index a90f1133..9230715b 100644 --- a/VAX/vax750_cmi.c +++ b/VAX/vax750_cmi.c @@ -649,6 +649,7 @@ else { /* handle "BOOT DEV /R5: } /* parse R5 parameter value */ r5v = 0; +/* coverity[NULL_RETURNS] */ if ((strncmp (regptr, "/R5:", 4) == 0) || (strncmp (regptr, "/R5=", 4) == 0) || (strncmp (regptr, "/r5:", 4) == 0) || diff --git a/VAX/vax780_sbi.c b/VAX/vax780_sbi.c index f5d3e6a5..1ab5b6be 100644 --- a/VAX/vax780_sbi.c +++ b/VAX/vax780_sbi.c @@ -665,6 +665,7 @@ else ba = dibp->ba; unitno = (int32) (uptr - dptr->units); r5v = 0; +/* coverity[NULL_RETURNS] */ if ((strncmp (regptr, "/R5:", 4) == 0) || (strncmp (regptr, "/R5=", 4) == 0) || (strncmp (regptr, "/r5:", 4) == 0) || diff --git a/VAX/vax860_abus.c b/VAX/vax860_abus.c index 783aa01b..c17e5524 100644 --- a/VAX/vax860_abus.c +++ b/VAX/vax860_abus.c @@ -729,6 +729,7 @@ else ba = dibp->ba; unitno = (int32) (uptr - dptr->units); r5v = 0; +/* coverity[NULL_RETURNS] */ if ((strncmp (regptr, "/R5:", 4) == 0) || (strncmp (regptr, "/R5=", 4) == 0) || (strncmp (regptr, "/r5:", 4) == 0) ||