Newly introduced findings

List of Findings

Error: CPPCHECK_WARNING (CWE-457): [#def1]
usbutils-018-build/usbutils-018/lsusb-t.c:517: error[uninitvar]: Uninitialized variable: pd
#  515|   	char n[MY_SYSFS_FILENAME_LEN], *p;
#  516|   
#  517|-> 	list_for_each(&usbdevlist, pd, list) {
#  518|   		if (pd == d)
#  519|   			continue;

Error: CPPCHECK_WARNING (CWE-457): [#def2]
usbutils-018-build/usbutils-018/lsusb-t.c:575: error[uninitvar]: Uninitialized variable: d
#  573|   	struct usbinterface *e;
#  574|   
#  575|-> 	list_for_each(&usbdevlist, d, list) {
#  576|   		if (d->parent_portnum)
#  577|   			assign_dev_to_parent(d);

Error: CPPCHECK_WARNING (CWE-457): [#def3]
usbutils-018-build/usbutils-018/lsusb-t.c:581: error[legacyUninitvar]: Uninitialized variable: e
#  579|   			assign_dev_to_bus(d);
#  580|   
#  581|-> 		list_for_each(&interfacelist, e, list) {
#  582|   			if (!e->parent)
#  583|   				assign_interface_to_parent(d, e);

Error: CPPCHECK_WARNING (CWE-457): [#def4]
usbutils-018-build/usbutils-018/lsusb-t.c:726: error[uninitvar]: Uninitialized variable: device
#  724|   	struct usbbusnode *bus, *tempb;
#  725|   
#  726|-> 	list_for_each_safe(&usbdevlist, device, tempd, list) {
#  727|   		free(device);
#  728|   	}

Error: CPPCHECK_WARNING (CWE-457): [#def5]
usbutils-018-build/usbutils-018/lsusb-t.c:730: error[uninitvar]: Uninitialized variable: interface
#  728|   	}
#  729|   
#  730|-> 	list_for_each_safe(&interfacelist, interface, templ, list) {
#  731|   		free(interface);
#  732|   	}

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-76.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-nameusbutils-017-3.fc41
diffbase-store-results-to/tmp/tmp_ozexn7l/usbutils-017-3.fc41.tar.xz
diffbase-time-created2024-11-13 03:25:31
diffbase-time-finished2024-11-13 03:27:23
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp_ozexn7l/usbutils-017-3.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp_ozexn7l/usbutils-017-3.fc41.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-76.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-nameusbutils-018-1.fc42
store-results-to/tmp/tmpoeqf8q4g/usbutils-018-1.fc42.tar.xz
time-created2024-11-13 03:27:34
time-finished2024-11-13 03:28:58
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpoeqf8q4g/usbutils-018-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpoeqf8q4g/usbutils-018-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9