Hi,

Please find the latest report on new defect(s) introduced to ARM-software/arm-trusted-firmware found with Coverity Scan.

Defect Details

** CID 493664:       Control flow issues  (DEADCODE)
/lib/libc/strtoull.c: 106           in strtoull()


_____________________________________________________________________________________________
*** CID 493664:         Control flow issues  (DEADCODE)
/lib/libc/strtoull.c: 106             in strtoull()
100     		else {
101     #ifdef __aarch64__
102     			uint128_t extended = (uint128_t)acc * (unsigned)base;
103     			extended += (unsigned)c;
104     
105     			if (extended > ULLONG_MAX) {
>>>     CID 493664:         Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "any = -1;".
106     				any = -1;
107     			} else {
108     				acc = (unsigned long long)extended;
109     				any = 1;
110     			}
111     #else

** CID 493663:       Control flow issues  (DEADCODE)
/lib/libc/strtoul.c: 105           in strtoul()


_____________________________________________________________________________________________
*** CID 493663:         Control flow issues  (DEADCODE)
/lib/libc/strtoul.c: 105             in strtoul()
99     			any = -1;
100     		else {
101     			extended = (unsigned long long)acc * (unsigned)base;
102     			extended += (unsigned)c;
103     
104     			if (extended > (unsigned long long)ULONG_MAX) {
>>>     CID 493663:         Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "any = -1;".
105     				any = -1;
106     			} else {
107     				acc = (unsigned long)extended;
108     				any = 1;
109     			}
110     		}

  

View Defects in Coverity Scan

Best regards,

The Coverity Scan Admin Team