Task #511 - i2c-tools-4.3-12.fc41/scan-results.err
back to task #511download
Error: CPPCHECK_WARNING:
i2c-tools-4.3-build/i2c-tools-4.3/eeprog/24cXX.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775):
i2c-tools-4.3-build/i2c-tools-4.3/eeprog/24cXX.c: scope_hint: In function ‘eeprom_open’
i2c-tools-4.3-build/i2c-tools-4.3/eeprog/24cXX.c:86:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(dev_fqn, 2)’
# 84|
# 85| fd = open(dev_fqn, O_RDWR);
# 86|-> if(fd <= 0)
# 87| return -1;
# 88|
Error: CPPCHECK_WARNING:
i2c-tools-4.3-build/i2c-tools-4.3/eeprog/eeprog.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING:
i2c-tools-4.3-build/i2c-tools-4.3/eeprog/eeprog.c:174:34: warning[deadcode.DeadStores]: Although the value stored to 'sixteen' is used in the enclosing expression, the value is never actually read from 'sixteen'
# 172| int eeprom_type = 0;
# 173|
# 174|-> op = want_hex = dummy = force = sixteen = 0;
# 175| g_quiet = 0;
# 176|
Error: CLANG_WARNING:
i2c-tools-4.3-build/i2c-tools-4.3/py-smbus/smbusmodule.c:195:7: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result'
# 193| SMBus_SET_ADDR(self, addr);
# 194|
# 195|-> if ((result = i2c_smbus_write_quick(self->fd, I2C_SMBUS_WRITE))) {
# 196| PyErr_SetFromErrno(PyExc_IOError);
# 197| return NULL;
Error: CLANG_WARNING:
i2c-tools-4.3-build/i2c-tools-4.3/py-smbus/smbusmodule.c:242:7: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result'
# 240| SMBus_SET_ADDR(self, addr);
# 241|
# 242|-> if ((result = i2c_smbus_write_byte(self->fd, (__u8)val)) < 0) {
# 243| PyErr_SetFromErrno(PyExc_IOError);
# 244| return NULL;
Error: CLANG_WARNING:
i2c-tools-4.3-build/i2c-tools-4.3/py-smbus/smbusmodule.c:289:7: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result'
# 287| SMBus_SET_ADDR(self, addr);
# 288|
# 289|-> if ((result = i2c_smbus_write_byte_data(self->fd,
# 290| (__u8)cmd, (__u8)val)) < 0) {
# 291| PyErr_SetFromErrno(PyExc_IOError);
Error: CLANG_WARNING:
i2c-tools-4.3-build/i2c-tools-4.3/py-smbus/smbusmodule.c:337:7: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result'
# 335| SMBus_SET_ADDR(self, addr);
# 336|
# 337|-> if ((result = i2c_smbus_write_word_data(self->fd,
# 338| (__u8)cmd, (__u16)val)) < 0) {
# 339| PyErr_SetFromErrno(PyExc_IOError);
Error: CLANG_WARNING:
i2c-tools-4.3-build/i2c-tools-4.3/py-smbus/smbusmodule.c:362:7: warning[deadcode.DeadStores]: Although the value stored to 'result' is used in the enclosing expression, the value is never actually read from 'result'
# 360| SMBus_SET_ADDR(self, addr);
# 361|
# 362|-> if ((result = i2c_smbus_process_call(self->fd,
# 363| (__u8)cmd, (__u16)val)) < 0) {
# 364| PyErr_SetFromErrno(PyExc_IOError);
Error: CPPCHECK_WARNING:
i2c-tools-4.3-build/i2c-tools-4.3/tools/i2cbusses.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775):
i2c-tools-4.3-build/i2c-tools-4.3/tools/i2cbusses.c: scope_hint: In function ‘gather_i2c_busses’
i2c-tools-4.3-build/i2c-tools-4.3/tools/i2cbusses.c:100:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/bus/i2c", "r")’
# 98| for (i = strlen(s) - 1; i >= 0 && (s[i] == ' ' || s[i] == '\n'); i--)
# 99| s[i] = '\0';
# 100|-> return i + 2;
# 101| }
# 102|
Error: GCC_ANALYZER_WARNING (CWE-401):
i2c-tools-4.3-build/i2c-tools-4.3/tools/i2cbusses.c:100:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/bus/i2c", "r")’
# 98| for (i = strlen(s) - 1; i >= 0 && (s[i] == ' ' || s[i] == '\n'); i--)
# 99| s[i] = '\0';
# 100|-> return i + 2;
# 101| }
# 102|
Error: CPPCHECK_WARNING:
i2c-tools-4.3-build/i2c-tools-4.3/tools/i2cdetect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING:
i2c-tools-4.3-build/i2c-tools-4.3/tools/i2cdump.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING:
i2c-tools-4.3-build/i2c-tools-4.3/tools/i2cget.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING:
i2c-tools-4.3-build/i2c-tools-4.3/tools/i2cset.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING:
i2c-tools-4.3-build/i2c-tools-4.3/tools/i2ctransfer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.