Task #784 - added.err

back to task #784
download
Error: GCC_ANALYZER_WARNING (CWE-401):
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):
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):
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):
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):
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):
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):
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):
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;