Fwd: New Defects reported by Coverity Scan for Das U-Boot

Tom Rini trini at konsulko.com
Tue Jun 23 00:43:44 CEST 2026


Hey all,

Coverity is back up finally and so here's the result of changes for the
last three RCs.

---------- Forwarded message ---------
From: <scan-admin at coverity.com>
Date: Mon, Jun 22, 2026 at 4:40 PM
Subject: New Defects reported by Coverity Scan for Das U-Boot
To: <tom.rini at gmail.com>


Hi,

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

   - *New Defects Found:* 1
   - 4 defect(s), reported by Coverity Scan earlier, were marked fixed in
   the recent build analyzed by Coverity Scan.
   - *Defects Shown:* Showing 1 of 1 defect(s)

Defect Details

** CID 646439:       Integer handling issues  (INTEGER_OVERFLOW)
/test/cmd/part.c: 53           in setup_gpt_partitions()


_____________________________________________________________________________________________
*** CID 646439:         Integer handling issues  (INTEGER_OVERFLOW)
/test/cmd/part.c: 53             in setup_gpt_partitions()
47     	snprintf(dev_str, sizeof(dev_str), "%u", mmc_dev_num);
48
49     	ret = blk_get_device_by_str("mmc", dev_str, &mmc_dev_desc);
50     	if (ret == -ENODEV)
51     		return -EAGAIN;
52
>>>     CID 646439:         Integer handling issues  (INTEGER_OVERFLOW)
>>>     Expression "_val2", where "ret" is known to be equal to -22, overflows the type of "_val2", which is type "unsigned int".
53     	ut_asserteq(mmc_dev_num, ret);
54
55     	if (CONFIG_IS_ENABLED(RANDOM_UUID)) {
56     		for (i = 0; i < ARRAY_SIZE(gpt_parts); i++)
57     			gen_rand_uuid_str(gpt_parts[i].uuid,
58     					  UUID_STR_FORMAT_STD);



View Defects in Coverity Scan
<https://scan.coverity.com/projects/das-u-boot?tab=overview>

Best regards,

The Coverity Scan Admin Team

----- End forwarded message -----

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20260622/78cad7f0/attachment.sig>


More information about the U-Boot mailing list