Newly introduced defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
libinput-1.26.1-build/libinput-1.26.1/src/libinput.c: scope_hint: In function ‘tablet_pad_notify_button’
libinput-1.26.1-build/libinput-1.26.1/src/libinput.c:2914:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(120)’
# 2912|   	};
# 2913|   
# 2914|-> 	post_device_event(device,
# 2915|   			  time,
# 2916|   			  LIBINPUT_EVENT_TABLET_PAD_BUTTON,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libinput-1.26.1-build/libinput-1.26.1/src/libinput.c: scope_hint: In function ‘tablet_pad_notify_dial’
libinput-1.26.1-build/libinput-1.26.1/src/libinput.c:2942:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(120)’
# 2940|   	};
# 2941|   
# 2942|-> 	post_device_event(device,
# 2943|   			  time,
# 2944|   			  LIBINPUT_EVENT_TABLET_PAD_DIAL,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
libinput-1.26.1-build/libinput-1.26.1/src/libinput.c: scope_hint: In function ‘tablet_pad_notify_ring’
libinput-1.26.1-build/libinput-1.26.1/src/libinput.c:2972:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(120)’
# 2970|   	};
# 2971|   
# 2972|-> 	post_device_event(device,
# 2973|   			  time,
# 2974|   			  LIBINPUT_EVENT_TABLET_PAD_RING,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
libinput-1.26.1-build/libinput-1.26.1/src/libinput.c: scope_hint: In function ‘tablet_pad_notify_strip’
libinput-1.26.1-build/libinput-1.26.1/src/libinput.c:3002:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(120)’
# 3000|   	};
# 3001|   
# 3002|-> 	post_device_event(device,
# 3003|   			  time,
# 3004|   			  LIBINPUT_EVENT_TABLET_PAD_STRIP,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
libinput-1.26.1-build/libinput-1.26.1/src/libinput.c: scope_hint: In function ‘tablet_pad_notify_key’
libinput-1.26.1-build/libinput-1.26.1/src/libinput.c:3024:9: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(120)’
# 3022|   	};
# 3023|   
# 3024|-> 	post_device_event(device,
# 3025|   			  time,
# 3026|   			  LIBINPUT_EVENT_TABLET_PAD_KEY,

Error: GCC_ANALYZER_WARNING (CWE-688): [#def6]
libinput-1.26.1-build/libinput-1.26.1/src/quirks.c: scope_hint: In function ‘match_fill_uniq’
libinput-1.26.1-build/libinput-1.26.1/src/quirks.c:1304:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libinput-1.26.1-build/libinput-1.26.1/src/libinput-util.h:40: included_from: Included from here.
libinput-1.26.1-build/libinput-1.26.1/src/quirks.c:43: included_from: Included from here.
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1302|   
# 1303|   	m->uniq = safe_strdup(str);
# 1304|-> 	slen = strlen(m->uniq);
# 1305|   	if (slen > 1 &&
# 1306|   	    m->uniq[slen - 1] == '"')

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
libinput-1.26.1-build/libinput-1.26.1/tools/shared.c: scope_hint: In function ‘tools_parse_option’
libinput-1.26.1-build/libinput-1.26.1/tools/shared.c:350:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.26.1-build/libinput-1.26.1/src/builddir.h:29: included_from: Included from here.
libinput-1.26.1-build/libinput-1.26.1/tools/shared.c:41: included_from: Included from here.
libinput-1.26.1-build/libinput-1.26.1/src/util-strings.h:29: included_from: Included from here.
#  348|   		size_t npoints = 0;
#  349|   		double *range = double_array_from_string(optarg, ":", &npoints);
#  350|-> 		if (npoints != 2 || range[0] < 0.0 || range[1] > 1.0 || range[0] >= range[1]) {
#  351|   			free(range);
#  352|   			fprintf(stderr, "Invalid pressure range, must be in format \"min:max\"\n");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
libinput-1.26.1-build/libinput-1.26.1/tools/shared.c:372:58: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  370|   		}
#  371|   		for (size_t i = 0; i < 6; i++)
#  372|-> 			options->calibration[i] =  matrix[i];
#  373|   		free(matrix);
#  374|   		break;

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-218.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namelibinput-1.25.0-3.fc40
diffbase-store-results-to/tmp/tmpkkxh0t1o/libinput-1.25.0-3.fc40.tar.xz
diffbase-time-created2024-07-03 14:43:47
diffbase-time-finished2024-07-03 14:46:11
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpkkxh0t1o/libinput-1.25.0-3.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpkkxh0t1o/libinput-1.25.0-3.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-218.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibinput-1.26.1-1.fc41
store-results-to/tmp/tmp4q2n4ak1/libinput-1.26.1-1.fc41.tar.xz
time-created2024-07-03 14:46:33
time-finished2024-07-03 14:48:35
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp4q2n4ak1/libinput-1.26.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp4q2n4ak1/libinput-1.26.1-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9