| Line | Id | CWE | Severity | Message |
|
| 0 | missingIncludeSystem | | style | Cppcheck cannot find all the include files (use --check-config for details) |
| a1fl.c |
| 59 | unusedFunction | | style | The function 'get_scsd' is never used. |
| 67 | unusedFunction | | style | The function 'get_scsf' is never used. |
| 75 | unusedFunction | | style | The function 'get_scsi' is never used. |
| 83 | unusedFunction | | style | The function 'get_scsl' is never used. |
| 99 | unusedFunction | | style | The function 'bbzero' is never used. |
| 105 | unusedFunction | | style | The function 'fzero' is never used. |
| 110 | unusedFunction | | style | The function 'dzero' is never used. |
| 116 | unusedFunction | | style | The function 'lzero' is never used. |
| 122 | unusedFunction | | style | The function 'izero' is never used. |
| 128 | unusedFunction | | style | The function 'bfoll' is never used. |
| 133 | unusedFunction | | style | The function 'get_signal_qua' is never used. |
| 141 | unusedFunction | | style | The function 'tobool' is never used. |
| 207 | unusedFunction | | style | The function 'splint_narod' is never used. |
| dem_ex.c |
| 72 | unusedVariable | | style | Unused variable: ErrorAddr |
| 74 | unusedVariable | | style | Unused variable: x |
| 75 | unusedVariable | | style | Unused variable: TraceSize |
| 92 | unusedFunction | | style | The function 'SetFdLimit' is never used. |
| fork.c |
| 111 | variableScope | | style | The scope of the variable 'y' can be reduced. |
| 123 | redundantAssignment | | style | Variable 'uart0_filestream' is reassigned a value before the old one has been used. |
| 217 | usleepCalled | | style | Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. |
| 225 | usleepCalled | | style | Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. |
| 270 | bzeroCalled | | style | Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. |
| 272 | bzeroCalled | | style | Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. |
| 273 | bzeroCalled | | style | Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. |
| 332 | invalidPrintfArgType_uint | | style | %u in format string (no. 6) requires 'unsigned int' but the argument type is 'unsigned long'. |
| 444 | localtimeCalled | | style | Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. |
| 553 | unusedVariable | | style | Unused variable: g |
| 607 | variableScope | | style | The scope of the variable 'rx_length' can be reduced. |
| func.c |
| 24 | unreadVariable | | style | Variable 'g' is assigned a value that is never used. |
| 26 | bzeroCalled | | style | Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. |
| 72 | deallocDealloc | | error | Deallocating a deallocated pointer: F |
| 100 | unusedVariable | | style | Unused variable: fp |
| 102 | localtimeCalled | | style | Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. |
| 204 | variableScope | | style | The scope of the variable 'temp' can be reduced. |
| 205 | bzeroCalled | | style | Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. |
| 206 | bzeroCalled | | style | Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. |
| 207 | bzeroCalled | | style | Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. |
| 217 | invalidscanf | | style | scanf() without field width limits can crash with huge input data. |
| 281 | variableScope | | style | The scope of the variable 'uart0_filestream' can be reduced. |
| 283 | variableScope | | style | The scope of the variable 'rx' can be reduced. |
| 287 | uninitvar | | error | Uninitialized variable: uart0_filestream |
| 301 | readdirCalled | | style | Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. |
| 333 | readdirCalled | | style | Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. |
| 338 | readdirCalled | | style | Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. |
| 339 | redundantAssignment | | style | Variable 'sen_n' is reassigned a value before the old one has been used. |
| 339 | readdirCalled | | style | Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. |
| 345 | readdirCalled | | style | Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. |
| 360 | bzeroCalled | | style | Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. |
| 397 | bzeroCalled | | style | Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. |
| 404 | sprintfOverlappingData | | error | Undefined behavior: Variable 'rrd2' is used as parameter and destination in s[n]printf(). |
| 431 | incorrectLogicOperator | | style | Logical conjunction always evaluates to false: type >= 6 && type <= 0. |
| 496 | invalidscanf | | style | scanf() without field width limits can crash with huge input data. |
| 509 | invalidscanf | | style | scanf() without field width limits can crash with huge input data. |
| 518 | memleak | | error | Memory leak: sc_sn |
| 518 | memleak | | error | Memory leak: sc_name |
| 518 | memleak | | error | Memory leak: sc_place |
| 518 | memleak | | error | Memory leak: sc_type |
| 524 | variableScope | | style | The scope of the variable 'com1' can be reduced. |
| 527 | bzeroCalled | | style | Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. |
| 553 | unusedVariable | | style | Unused variable: tempc |
| 553 | unusedVariable | | style | Unused variable: rrdut |
| 555 | unusedVariable | | style | Unused variable: temp |
| 678 | unusedFunction | | style | The function 'init_uart' is never used. |
| 747 | variableScope | | style | The scope of the variable 'rx_length' can be reduced. |
| kuip_t.c |
| 190 | variableScope | | style | The scope of the variable 'y' can be reduced. |
| 190 | variableScope | | style | The scope of the variable 'secr' can be reduced. |
| 254 | variableScope | | style | The scope of the variable 'unixtime' can be reduced. |
| 287 | localtimeCalled | | style | Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. |
| 493 | invalidPrintfArgType_uint | | style | %u in format string (no. 6) requires 'unsigned int' but the argument type is 'unsigned long'. |
| term.c |
| 64 | variableScope | | style | The scope of the variable 'd' can be reduced. |
| 108 | variableScope | | style | The scope of the variable 'm' can be reduced. |
| 113 | bzeroCalled | | style | Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. |
| 118 | sprintfOverlappingData | | error | Undefined behavior: Variable 'rrdut' is used as parameter and destination in s[n]printf(). |
| 120 | sprintfOverlappingData | | error | Undefined behavior: Variable 'rrdut' is used as parameter and destination in s[n]printf(). |
| 187 | clarifyCondition | | style | Boolean result is used in bitwise operation. Clarify expression with parentheses. |
| 193 | clarifyCondition | | style | Boolean result is used in bitwise operation. Clarify expression with parentheses. |
| 252 | unreadVariable | | style | Variable 'TermSignal' is assigned a value that is never used. |
| 255 | unreadVariable | | style | Variable 'IntSignal' is assigned a value that is never used. |
| 259 | unreadVariable | | style | Variable 'QuitSignal' is assigned a value that is never used. |
| 284 | unreachableCode | | style | Statements following return, break, continue, goto or throw will never be executed. |
| 337 | bufferAccessOutOfBounds | | error | Buffer is accessed out of bounds: com3 |
| 339 | bufferAccessOutOfBounds | | error | Buffer is accessed out of bounds: com3 |
| 383 | invalidPrintfArgType_uint | | style | %u in format string (no. 1) requires 'unsigned int' but the argument type is 'unsigned long'. |
| term_no_den.c |
| 15 | unusedVariable | | style | Unused variable: df |
| 35 | invalidPrintfArgType_sint | | style | %d in format string (no. 2) requires 'int' but the argument type is 'char *'. |
| 35 | invalidPrintfArgType_sint | | style | %d in format string (no. 3) requires 'int' but the argument type is 'char *'. |
| 35 | wrongPrintfScanfArgNum | | style | printf format string requires 4 parameters but 5 are given. |
| testf.c |
| 13 | variableScope | | style | The scope of the variable 'd' can be reduced. |
| thread.c |
| 38 | unreachableCode | | style | Statements following return, break, continue, goto or throw will never be executed. |
| 52 | unreachableCode | | style | Statements following return, break, continue, goto or throw will never be executed. |
| 67 | invalidscanf | | style | scanf() without field width limits can crash with huge input data. |
| 71 | invalidscanf | | style | scanf() without field width limits can crash with huge input data. |
| ups_parse.c |
| 60 | unreadVariable | | style | Variable 'res' is assigned a value that is never used. |
| 62 | unreadVariable | | style | Variable 'delim' is assigned a value that is never used. |
| 65 | variableScope | | style | The scope of the variable 'tmp' can be reduced. |
| usred.c |
| 21 | unreadVariable | | style | Variable 'tmp_ind' is assigned a value that is never used. |
| 55 | unreadVariable | | style | Variable 'tmp_col' is assigned a value that is never used. |
| 78 | variableScope | | style | The scope of the variable 'tmp' can be reduced. |
| usred_test.c |
| 15 | invalidPrintfArgType_uint | | style | %u in format string (no. 1) requires 'unsigned int' but the argument type is 'unsigned long'. |
| 27 | invalidPrintfArgType_uint | | style | %u in format string (no. 3) requires 'unsigned int' but the argument type is 'unsigned long'. |