Skip to contentSkip to conversation

New Defects reported by Coverity Scan for Das U-Boot

DISCUSSION Tom Rini 1 participant 1 message Nov 12, 2024

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

Here's the latest Coverity report.

---------- Forwarded message ---------
From: <[email protected]>
Date: Mon, Nov 11, 2024 at 10:24 AM
Subject: New Defects reported by Coverity Scan for Das U-Boot
To: <[email protected]>

Hi,

Please find the latest report on new defect(s) introduced to Das U-Boot found with Coverity Scan.

1 new defect(s) introduced to Das U-Boot found with Coverity Scan. 4 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)

** CID 514648: Control flow issues (MISSING_BREAK) /tools/imx8image.c: 93 in parse_cfg_cmd()

________________________________________________________________________________________________________
*** CID 514648: Control flow issues (MISSING_BREAK) /tools/imx8image.c: 93 in parse_cfg_cmd()
87 sector_size = get_table_entry_id(imx8image_sector_size,
88 "imximage boot option",
89 token);
90 if (!strncmp("emmc_fastboot", token, 13))
91 emmc_fastboot = true;
92 break;

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

CID 514648: Control flow issues (MISSING_BREAK)
The case for value "CMD_DCD_SKIP" is not terminated by a "break" statement.

93 case CMD_DCD_SKIP:
94 if (!strncmp("true", token, 4))
95 dcd_skip = true;
96 case CMD_FUSE_VERSION:
97 fuse_version = (uint8_t)(strtoll(token, NULL, 0) & 0xFF);
98 break;

________________________________________________________________________________________________________

Signature · 1 line
Tom