1
0
Fork 0
Commit graph

243 commits

Author SHA1 Message Date
temi54c1l8
5749014c16 CO_fifo: static analysis: pointer subtraction [MISRA 2012 Rule 18.2, required] 2024-06-26 15:36:31 +02:00
temi54c1l8
36f7481778 CO_fifo: static analysis: no 'else' at end of 'if ... else if' chain [MISRA 2012 Rule 15.7, required] 2024-06-26 13:38:38 +02:00
temi54c1l8
8c36f03fc6 CO_fifo: static analysis: cannot assign value to different essential type [MISRA 2012 Rule 10.3, required] 2024-06-26 13:35:26 +02:00
temi54c1l8
a5004f4649 CO_fifo: static analysis: result of assignment operator used in right operand to '=' operator [MISRA 2012 Rule 13.4, advisory] 2024-06-26 13:14:11 +02:00
temi54c1l8
f6535def56 CO_fifo: static analysis: increment/decrement operation combined with other operation with side-effects [MISRA 2012 Rule 13.3, advisory] 2024-06-26 13:13:54 +02:00
temi54c1l8
376d86a5a4 CO_fifo: static analysis: side effects on right hand of logical operator, '||' [MISRA 2012 Rule 13.5, required]
(cherry picked from commit ea89548ebae934dc3acbcfd6fea15107389f8fd7)
2024-06-26 13:02:51 +02:00
temi54c1l8
c46bb96292 CO_fifo: static analysis: side effects on right hand of logical operator, '&&' [MISRA 2012 Rule 13.5, required]
(cherry picked from commit bd20c9d7dcf935bc81fb70d0a82df14f9c4442d5)
2024-06-26 13:02:36 +02:00
Janez
7850623700
Update CO_PDO.c: make eventTime, inhibitTime and syncStartValue optional in object dictionary. 2024-06-26 12:40:17 +02:00
Janez
3e08dd45d5
Update CO_Emergency.h: fix doxygen documentation comments 2024-06-26 12:27:02 +02:00
Janez
c643683b24
Update CO_ODinterface.c: fix memcpy boundary verification 2024-06-26 12:15:30 +02:00
temi54c1l8
11771f889c CO_fifo: fix doxygen documentation comments 2024-06-26 11:45:23 +02:00
temi54c1l8
4bef46fb46 CO_fifo: static analysis: refactoring CO_fifo_readToken for loss of sign 2024-06-26 11:43:41 +02:00
temi54c1l8
d96ac7719e CO_fifo: static analysis: body should be a compound statement [MISRA 2012 Rule 15.6, required] 2024-06-26 11:00:19 +02:00
temi54c1l8
29156e8ed7 CO_fifo: static analysis: refactoring changed enum with define to be able to use bitwise operators 2024-06-26 10:48:52 +02:00
temi54c1l8
1e9b6da4f3 CO_fifo: static analysis: ignoring return value of functions [MISRA 2012 Directive 4.7, required], [MISRA 2012 Rule 17.7, required] 2024-06-26 10:33:50 +02:00
temi54c1l8
5cf08656e1 Fix commit 29bb7992d2 won't respond with abort message, if segmented transfer is not supported 2024-06-26 08:50:45 +02:00
temi54c1l8
f7c7f9c104 Add more static analysis and MISRA.md
(cherry picked from commit ad337c3e9c4e879721ec432bc9a5d9a84a53c573)

# Conflicts:
#	CANopen.c
2024-06-24 17:46:34 +02:00
temi54c1l8
8cccf6f379 minor fix after static analysis 2024-06-14 13:46:21 +02:00
temi54c1l8
f9d8bdeff3 static analysys: local variable 'data' could be pointer to const [MISRA 2012 Rule 8.13, advisory]
refactory CO_CANrxMsg_readData return const
2024-06-14 11:27:22 +02:00
temi54c1l8
d2770c4917 CO_SDOserver: static analysis: named parameter 'calculateCrc' of 'non-virtual' function 'readFromOd' not subsequently referenced [MISRA 2012 Rule 2.7, advisory] 2024-06-14 11:15:41 +02:00
temi54c1l8
c41aa14680 CO_PDO: static analysis: named parameter 'timerNext_us' of 'non-virtual' function 'CO_RPDO_process' not subsequently referenced [MISRA 2012 Rule 2.7, advisory] 2024-06-14 11:09:31 +02:00
temi54c1l8
8cc4dc1601 CO_HBconsumer: static analysis: local variable 'data' could be pointer to const [MISRA 2012 Rule 8.13, advisory] 2024-06-14 11:03:51 +02:00
temi54c1l8
41c9e742f8 CO_Emergency: static analysis: named parameter 'timeDifference_us' of 'non-virtual' function 'CO_EM_process' not subsequently referenced [MISRA 2012 Rule 2.7, advisory] 2024-06-14 10:59:43 +02:00
temi54c1l8
29bb7992d2 CO_SDOserver: static analysis: enum constants not used within default switch 2024-06-14 09:49:21 +02:00
temi54c1l8
cbf3df74e9 CO_SDOserver: static analysis: result of assignment operator used in right operand to '=' operator [MISRA 2012 Rule 13.4, advisory] 2024-06-14 09:47:16 +02:00
temi54c1l8
06834c1d14 O_SDOserver: static analysis: side effects on right hand of logical operator, '&&' [MISRA 2012 Rule 13.5, required]
because SDO->state is volatile
2024-06-14 09:02:17 +02:00
temi54c1l8
ab26145597 CO_Emergency: static analysis: side effects on right hand of logical operator, '&&' [MISRA 2012 Rule 13.5, required]
because em->CANtxBuff->bufferFull is volatile
2024-06-14 08:56:03 +02:00
temi54c1l8
35cefe09c3 CO_SDOserver: static analysis: cannot cast 'unsigned8' to wider essential type 'unsigned32' [MISRA 2012 Rule 10.8, required] 2024-06-14 08:52:07 +02:00
temi54c1l8
4cef8205c8 CO_ODinterface: static analysis: fix cast to correct address assignment and 'OD_IO_t::write' is potentially uninitialized [MISRA 2012 Rule 9.1, mandatory] 2024-06-14 08:43:01 +02:00
temi54c1l8
75909f4fa2 CO_ODinterface: static analysis: implicit conversion of enum 'ODR_t' to integral type 'int' 2024-06-14 08:29:04 +02:00
temi54c1l8
8af3ef3c6b CO_SDOserver: static analysis: taking address of array 2024-06-14 08:26:34 +02:00
temi54c1l8
20d7220468 crc16-ccitt: static analysis: loss of precision (assignment) 2024-06-13 13:56:00 +02:00
temi54c1l8
bc920558ac CO_TIME: static analysis: unexpected lack of indentation (convert tab to space) 2024-06-13 13:51:13 +02:00
temi54c1l8
9c79067c53 CO_TIME: static analysis: cannot assign 'unsigned32' to narrower essential type 'unsigned16' [MISRA 2012 Rule 10.3, required] 2024-06-13 13:49:28 +02:00
temi54c1l8
860a36c85f CO_SYNC: static analysis: unsigned integer literal without a 'U' suffix [MISRA 2012 Rule 7.2, required] 2024-06-13 13:46:27 +02:00
temi54c1l8
64934d7903 CO_SYNC: static analysis: cannot assign 'unsigned32' to narrower essential type 'unsigned16' [MISRA 2012 Rule 10.3, required] 2024-06-13 13:44:11 +02:00
temi54c1l8
99b56d10c9 CO_SDOserver: static analysis: unexpected lack of indentation 2024-06-13 13:21:20 +02:00
temi54c1l8
e82c942846 Fix previous static analysis 2024-06-13 13:18:02 +02:00
temi54c1l8
00f8961f55 CO_SDOserver: static analysis: loss of precision (assignment) from 32 bits to 8 bits 2024-06-13 13:16:22 +02:00
temi54c1l8
404ebca5fb CO_SDOserver: static analysis: cannot assign a composite expression of type 'unsigned8' to an object of wider type 'unsigned32' [MISRA 2012 Rule 10.6, required] 2024-06-13 13:14:00 +02:00
temi54c1l8
a4fb95e38b CO_SDOserver: static analysis: statement or comment should appear in default case [MISRA 2012 Rule 16.1, required], [MISRA 2012 Rule 16.4, required] 2024-06-13 13:11:09 +02:00
temi54c1l8
b2294a65ab CO_SDOserver: static analysis: argument 1 of type 'uint8_t *' (aka 'unsigned char *') is not compatible with argument 2 of type 'uint32_t *' (aka 'unsigned int *') in call to function 'memcpy' 2024-06-13 13:09:34 +02:00
temi54c1l8
460441f972 CO_SDOserve: static analysis: increment/decrement operation combined with other operation with side-effects [MISRA 2012 Rule 13.3, advisory] 2024-06-13 12:29:43 +02:00
temi54c1l8
f8d10390bc CO_SDOserver: static analysis: missing unconditional break from final switch case [MISRA 2012 Rule 16.1, required], [MISRA 2012 Rule 16.3, required] 2024-06-13 12:27:50 +02:00
temi54c1l8
32c1086ac1 CO_PDO: static analysis: last value assigned to 'odRet' not used [MISRA 2012 Rule 2.2, required] 2024-06-13 12:23:38 +02:00
temi54c1l8
d9d24ffe82 CO_PDO: static analysis: unsigned integer literal without a 'U' suffix [MISRA 2012 Rule 7.2, required] 2024-06-13 12:17:28 +02:00
temi54c1l8
fe1709c42a CO_PDO: static analysis: argument 1 of type 'uint8_t [4]' is not compatible with argument 2 of type 'const void *' in call to function 'memcpy' 2024-06-13 12:05:39 +02:00
temi54c1l8
6f6936c9cc CO_PDO: static analysis: cannot assign 'enum' to different essential type 'unsigned8' [MISRA 2012 Rule 10.3, required] 2024-06-13 12:03:21 +02:00
temi54c1l8
fd8cf681a3 CO_PDO: static analisys: result of assignment operator used in right operand to '=' operator [MISRA 2012 Rule 13.4, advisory] 2024-06-13 11:58:04 +02:00
temi54c1l8
808ad99b58 CO_ODinterface: static analysis: missing unconditional break from final switch case [MISRA 2012 Rule 16.1, required], [MISRA 2012 Rule 16.3, required] 2024-06-13 11:52:05 +02:00