PVS-Studio Analysis Results


Date:Thu Jun 8 05:37:51 2023
PVS-Studio Version:7.23.69221.300
Command Line:plog-converter -a GA\:1,2,3 -t fullhtml --indicate-warnings build/f7-firmware-DC/pvsreport.log -o build/f7-firmware-DC/pvsreport
Total Warnings (GA):11
Group Location Level Code Message
General Analysis nfc_scene_nfcv_emulate.c:53 Low V526 The 'strcmp' function returns 0 if corresponding strings are equal. Consider examining the condition for mistakes.
General Analysis nfc_device.c:811 Low V524 It is odd that the body of 'nfc_device_load_slix2_data' function is fully equivalent to the body of 'nfc_device_load_slix_s_data' function.
General Analysis nfc_worker.c:301 High V569 Truncation of constant value 32765. The value range of unsigned char type: [0, 255].
General Analysis nfc_worker.c:302 High V569 Truncation of constant value 8387950. The value range of unsigned char type: [0, 255].
General Analysis nfc_worker.c:303 High V569 Truncation of constant value 2147315291. The value range of unsigned char type: [0, 255].
General Analysis nfc_worker.c:321 High V569 Truncation of constant value 3855. The value range of unsigned char type: [0, 255].
General Analysis nfc_worker.c:322 High V569 Truncation of constant value 986895. The value range of unsigned char type: [0, 255].
General Analysis nfc_worker.c:323 High V569 Truncation of constant value 252645135. The value range of unsigned char type: [0, 255].
General Analysis slix.c:384 Low V524 It is odd that the body of 'slix2_protocol_filter' function is fully equivalent to the body of 'slix_s_protocol_filter' function.
General Analysis nfcv.c:441 Medium V768 The variable 'flags' is of enum type. It is odd that it is used as a variable of a Boolean-type.
General Analysis nfcv.c:1329 Medium V684 A value of the variable 'byte_value' is not modified. Consider inspecting the expression. It is possible that '1' should be present instead of '0'.