New Defects reported by Coverity Scan for RTEMS

scan-admin at coverity.com scan-admin at coverity.com
Fri Feb 13 16:13:21 UTC 2026


Hi,

Please find the latest report on new defect(s) introduced to RTEMS found with Coverity Scan.

1 new defect(s) introduced to RTEMS found with Coverity Scan.


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


** CID 1680685:         (INTEGER_OVERFLOW)
/cpukit/libcsupport/src/pwdgrp.c: 163           in scanInt()
/cpukit/libcsupport/src/pwdgrp.c: 155           in scanInt()


_____________________________________________________________________________________________
*** CID 1680685:           (INTEGER_OVERFLOW)
/cpukit/libcsupport/src/pwdgrp.c: 163             in scanInt()
157           }
158           sign = 1;
159         }
160         if ( !isdigit( c ) ) {
161           return 0;
162         }
>>>     CID 1680685:           (INTEGER_OVERFLOW)
>>>     Expression "d", where "c - 48" is known to be equal to -49, overflows the type of "d", which is type "unsigned int".
163         d = c - '0';
164         if (
165           ( i > ( limit / 10 ) ) ||
166           ( ( i == ( limit / 10 ) ) && ( d > (unsigned int) ( limit % 10 ) ) )
167         ) {
168           return 0;
/cpukit/libcsupport/src/pwdgrp.c: 155             in scanInt()
149         if ( c == ':' ) {
150           break;
151         }
152         if ( sign == 0 ) {
153           if ( c == '-' ) {
154             sign = -1;
>>>     CID 1680685:           (INTEGER_OVERFLOW)
>>>     Expression "limit++", where "limit" is known to be equal to 2147483647, overflows the type of "limit++", which is type "int".
155             limit++;
156             continue;
157           }
158           sign = 1;
159         }
160         if ( !isdigit( c ) ) {


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/rtems?tab=overview

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/build/attachments/20260213/59720af9/attachment.htm>


More information about the build mailing list