lttng-ust-2.14.0-4.fc44

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1]
lttng-ust-2.14.0/doc/examples/demo-tracef/demo-vtracef.c:23:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
lttng-ust-2.14.0/doc/examples/demo-tracef/demo-vtracef.c:22:9: acquire_resource: ‘va_start’ called here
lttng-ust-2.14.0/doc/examples/demo-tracef/demo-vtracef.c:23:9: branch_true: following ‘true’ branch...
lttng-ust-2.14.0/doc/examples/demo-tracef/demo-vtracef.c:23:9: branch_true: ...to here
lttng-ust-2.14.0/doc/examples/demo-tracef/demo-vtracef.c:23:9: throw: if ‘lttng_ust__vtracef’ throws an exception...
lttng-ust-2.14.0/doc/examples/demo-tracef/demo-vtracef.c:23:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   21|   
#   22|   	va_start(ap, msg);
#   23|-> 	lttng_ust_vtracef(msg, ap);
#   24|   	va_end(ap);
#   25|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def2]
lttng-ust-2.14.0/doc/examples/demo-tracelog/demo-vtracelog.c:21:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
lttng-ust-2.14.0/doc/examples/demo-tracelog/demo-vtracelog.c:20:9: acquire_resource: ‘va_start’ called here
lttng-ust-2.14.0/doc/examples/demo-tracelog/demo-vtracelog.c:21:9: branch_true: following ‘true’ branch...
lttng-ust-2.14.0/doc/examples/demo-tracelog/demo-vtracelog.c:21:9: branch_true: ...to here
lttng-ust-2.14.0/doc/examples/demo-tracelog/demo-vtracelog.c:21:9: throw: if ‘lttng_ust__vtracelog_LTTNG_UST_TRACEPOINT_LOGLEVEL_ERR’ throws an exception...
lttng-ust-2.14.0/doc/examples/demo-tracelog/demo-vtracelog.c:21:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   19|   
#   20|   	va_start(ap, msg);
#   21|-> 	lttng_ust_vtracelog(LTTNG_UST_TRACEPOINT_LOGLEVEL_ERR, msg, ap);
#   22|   	va_end(ap);
#   23|   }

Error: CPPCHECK_WARNING (CWE-457): [#def3]
lttng-ust-2.14.0/include/lttng/tracepoint.h:439: error[uninitvar]: Uninitialized variable: here
#  437|   			(long) getpid(),
#  438|   			LTTNG_UST_TRACEPOINT_LIB_SONAME,
#  439|-> 			LTTNG_UST_TRACEPOINT_THIS_IP,
#  440|   			__func__);
#  441|   	if (lttng_ust_tracepoint_logging_abort_on_critical_enabled())

Error: CPPCHECK_WARNING (CWE-758): [#def4]
lttng-ust-2.14.0/include/lttng/tracepoint.h:643: error[subtractPointers]: Subtracting pointers that point to different objects
#  641|   	if (lttng_ust_tracepoint_dlopen_ptr->lttng_ust_tracepoint_module_register) {
#  642|   		lttng_ust_tracepoint_dlopen_ptr->lttng_ust_tracepoint_module_register(__start_lttng_ust_tracepoints_ptrs,
#  643|-> 				__stop_lttng_ust_tracepoints_ptrs -
#  644|   				__start_lttng_ust_tracepoints_ptrs);
#  645|   	}

Error: GCC_ANALYZER_WARNING (CWE-469): [#def5]
lttng-ust-2.14.0/include/lttng/tracepoint.h:643:67: warning[-Wanalyzer-undefined-behavior-ptrdiff]: undefined behavior when subtracting pointers
lttng-ust-2.14.0/include/lttng/tracepoint.h:618:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/include/lttng/tracepoint.h:622:13: branch_false: ...to here
lttng-ust-2.14.0/include/lttng/tracepoint.h:641:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/include/lttng/tracepoint.h:643:67: branch_true: ...to here
lttng-ust-2.14.0/include/lttng/tracepoint.h:643:67: danger: subtraction of pointers has undefined behavior if they do not point into the same array object
#  641|   	if (lttng_ust_tracepoint_dlopen_ptr->lttng_ust_tracepoint_module_register) {
#  642|   		lttng_ust_tracepoint_dlopen_ptr->lttng_ust_tracepoint_module_register(__start_lttng_ust_tracepoints_ptrs,
#  643|-> 				__stop_lttng_ust_tracepoints_ptrs -
#  644|   				__start_lttng_ust_tracepoints_ptrs);
#  645|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
lttng-ust-2.14.0/src/common/counter/shm.c:57:34: warning[-Wanalyzer-malloc-leak]: leak of 'zeropage'
lttng-ust-2.14.0/src/common/counter/shm.c:49:12: branch_false: following 'false' branch (when 'pagelen >= 0')...
lttng-ust-2.14.0/src/common/counter/shm.c:51:20: branch_false: ...to here
lttng-ust-2.14.0/src/common/counter/shm.c:51:20: acquire_memory: allocated here
lttng-ust-2.14.0/src/common/counter/shm.c:52:12: branch_false: following 'false' branch (when 'zeropage' is non-NULL)...
lttng-ust-2.14.0/src/common/counter/shm.c:52:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/counter/shm.c:55:16: branch_true: following 'true' branch (when 'written < len')...
lttng-ust-2.14.0/src/common/counter/shm.c:55:16: branch_true: ...to here
lttng-ust-2.14.0/src/common/counter/shm.c:57:34: throw: if 'write' throws an exception...
lttng-ust-2.14.0/src/common/counter/shm.c:57:34: danger: 'zeropage' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   55|   	while (len > written) {
#   56|   		do {
#   57|-> 			retlen = write(fd, zeropage,
#   58|   				min_t(size_t, pagelen, len - written));
#   59|   		} while (retlen == -1UL && errno == EINTR);

Error: CPPCHECK_WARNING (CWE-457): [#def7]
lttng-ust-2.14.0/src/common/counter/shm.c:227: error[legacyUninitvar]: Uninitialized variable: node
#  225|   				numa_set_preferred(node);
#  226|   		}
#  227|-> 		if (cpu < 0 || node < 0)
#  228|   			numa_set_localalloc();
#  229|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
lttng-ust-2.14.0/src/common/elf.c:47:22: warning[-Wanalyzer-malloc-leak]: leak of 'lttng_ust_elf_get_phdr(elf,  i)'
lttng-ust-2.14.0/src/common/elf.c:518:5: enter_function: entry to 'lttng_ust_elf_get_build_id'
lttng-ust-2.14.0/src/common/elf.c:525:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:529:21: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:534:24: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:534:24: call_function: calling 'lttng_ust_elf_get_phdr' from 'lttng_ust_elf_get_build_id'
lttng-ust-2.14.0/src/common/elf.c:534:24: return_function: returning to 'lttng_ust_elf_get_build_id' from 'lttng_ust_elf_get_phdr'
lttng-ust-2.14.0/src/common/elf.c:535:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:540:21: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:540:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:544:26: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:546:23: call_function: calling 'lttng_ust_elf_get_build_id_from_segment' from 'lttng_ust_elf_get_build_id'
#   45|   	}
#   46|   
#   47|-> 	if (index >= elf->ehdr->e_phnum) {
#   48|   		goto error;
#   49|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
lttng-ust-2.14.0/src/common/elf.c:56:26: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(48, 1)'
lttng-ust-2.14.0/src/common/elf.c:37:28: enter_function: entry to 'lttng_ust_elf_get_phdr'
lttng-ust-2.14.0/src/common/elf.c:43:12: branch_false: following 'false' branch (when 'elf' is non-NULL)...
lttng-ust-2.14.0/src/common/elf.c:47:22: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:47:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:51:16: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_get_phdr'
lttng-ust-2.14.0/src/common/elf.c:52:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:56:26: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:58:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:62:13: call_function: inlined call to 'is_elf_32_bit' from 'lttng_ust_elf_get_phdr'
lttng-ust-2.14.0/src/common/elf.c:62:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:76:21: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:76:21: throw: if 'lttng_ust_read' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:56:26: danger: 'calloc(48, 1)' leaks here; was allocated at [(8)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/7)
#   54|   	}
#   55|   
#   56|-> 	offset = (off_t) elf->ehdr->e_phoff
#   57|   			+ (off_t) index * elf->ehdr->e_phentsize;
#   58|   	if (lseek(elf->fd, offset, SEEK_SET) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
lttng-ust-2.14.0/src/common/elf.c:110:22: warning[-Wanalyzer-malloc-leak]: leak of 'lttng_ust_elf_get_shdr(elf,  i)'
lttng-ust-2.14.0/src/common/elf.c:660:5: enter_function: entry to 'lttng_ust_elf_get_debug_link'
lttng-ust-2.14.0/src/common/elf.c:668:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:672:21: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:675:24: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:675:24: call_function: calling 'lttng_ust_elf_get_shdr' from 'lttng_ust_elf_get_debug_link'
lttng-ust-2.14.0/src/common/elf.c:675:24: return_function: returning to 'lttng_ust_elf_get_debug_link' from 'lttng_ust_elf_get_shdr'
lttng-ust-2.14.0/src/common/elf.c:676:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:680:23: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:680:23: call_function: calling 'lttng_ust_elf_get_debug_link_from_section' from 'lttng_ust_elf_get_debug_link'
#  108|   	}
#  109|   
#  110|-> 	if (index >= elf->ehdr->e_shnum) {
#  111|   		goto error;
#  112|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
lttng-ust-2.14.0/src/common/elf.c:119:26: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(64, 1)'
lttng-ust-2.14.0/src/common/elf.c:100:28: enter_function: entry to 'lttng_ust_elf_get_shdr'
lttng-ust-2.14.0/src/common/elf.c:106:12: branch_false: following 'false' branch (when 'elf' is non-NULL)...
lttng-ust-2.14.0/src/common/elf.c:110:22: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:110:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:114:16: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_get_shdr'
lttng-ust-2.14.0/src/common/elf.c:115:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:119:26: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:121:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:125:13: call_function: inlined call to 'is_elf_32_bit' from 'lttng_ust_elf_get_shdr'
lttng-ust-2.14.0/src/common/elf.c:125:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:139:21: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:139:21: throw: if 'lttng_ust_read' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:119:26: danger: 'calloc(64, 1)' leaks here; was allocated at [(8)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/7)
#  117|   	}
#  118|   
#  119|-> 	offset = (off_t) elf->ehdr->e_shoff
#  120|   			+ (off_t) index * elf->ehdr->e_shentsize;
#  121|   	if (lseek(elf->fd, offset, SEEK_SET) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
lttng-ust-2.14.0/src/common/elf.c:128:21: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:260:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:269:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:272:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:275:24: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:278:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:282:21: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:283:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:287:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:287:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:290:21: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:290:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:294:20: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:311:30: call_function: calling 'lttng_ust_elf_get_shdr' from 'lttng_ust_elf_create'
#  126|   		Elf32_Shdr elf_shdr;
#  127|   
#  128|-> 		if (lttng_ust_read(elf->fd, &elf_shdr, sizeof(elf_shdr))
#  129|   				< sizeof(elf_shdr)) {
#  130|   			goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
lttng-ust-2.14.0/src/common/elf.c:139:21: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:260:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:269:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:272:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:275:24: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:278:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:282:21: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:283:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:287:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:287:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:301:21: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:301:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:305:20: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:311:30: call_function: calling 'lttng_ust_elf_get_shdr' from 'lttng_ust_elf_create'
#  137|   		Elf64_Shdr elf_shdr;
#  138|   
#  139|-> 		if (lttng_ust_read(elf->fd, &elf_shdr, sizeof(elf_shdr))
#  140|   				< sizeof(elf_shdr)) {
#  141|   			goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
lttng-ust-2.14.0/src/common/elf.c:211:28: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(len + 1, 1)'
lttng-ust-2.14.0/src/common/elf.c:164:7: enter_function: entry to 'lttng_ust_elf_get_section_name'
lttng-ust-2.14.0/src/common/elf.c:169:12: branch_false: following 'false' branch (when 'elf' is non-NULL)...
lttng-ust-2.14.0/src/common/elf.c:173:23: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:173:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:177:28: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:177:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:181:19: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:189:20: branch_false: following 'false' branch (when 'to_read != 0')...
lttng-ust-2.14.0/src/common/elf.c:193:25: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:194:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:194:20: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:207:16: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_get_section_name'
lttng-ust-2.14.0/src/common/elf.c:208:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:211:28: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:211:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:215:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:215:13: throw: if 'lttng_ust_read' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:211:28: danger: 'calloc(len + 1, 1)' leaks here; was allocated at [(14)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/13)
#  209|   		goto error;
#  210|   	}
#  211|-> 	if (lseek(elf->fd, elf->section_names_offset + offset,
#  212|   		SEEK_SET) < 0) {
#  213|   		goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
lttng-ust-2.14.0/src/common/elf.c:252:9: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(48, 1)'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:239:15: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:252:9: throw: if 'lttng_ust_lock_fd_tracker' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:252:9: danger: 'calloc(48, 1)' leaks here; was allocated at [(4)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/3)
#  250|   	}
#  251|   
#  252|-> 	lttng_ust_lock_fd_tracker();
#  253|   	fd = open(elf->path, O_RDONLY | O_CLOEXEC);
#  254|   	if (fd < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
lttng-ust-2.14.0/src/common/elf.c:252:9: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(path)'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:247:21: acquire_memory: allocated here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:252:9: throw: if 'lttng_ust_lock_fd_tracker' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:252:9: danger: 'strdup(path)' leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
#  250|   	}
#  251|   
#  252|-> 	lttng_ust_lock_fd_tracker();
#  253|   	fd = open(elf->path, O_RDONLY | O_CLOEXEC);
#  254|   	if (fd < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
lttng-ust-2.14.0/src/common/elf.c:253:14: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:247:21: acquire_memory: allocated here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:253:14: throw: if 'open' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:253:14: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
#  251|   
#  252|   	lttng_ust_lock_fd_tracker();
#  253|-> 	fd = open(elf->path, O_RDONLY | O_CLOEXEC);
#  254|   	if (fd < 0) {
#  255|   		lttng_ust_unlock_fd_tracker();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
lttng-ust-2.14.0/src/common/elf.c:253:14: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(48, 1)'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:239:15: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:253:14: throw: if 'open' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:253:14: danger: 'calloc(48, 1)' leaks here; was allocated at [(4)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/3)
#  251|   
#  252|   	lttng_ust_lock_fd_tracker();
#  253|-> 	fd = open(elf->path, O_RDONLY | O_CLOEXEC);
#  254|   	if (fd < 0) {
#  255|   		lttng_ust_unlock_fd_tracker();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
lttng-ust-2.14.0/src/common/elf.c:255:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:247:21: acquire_memory: allocated here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:255:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:255:17: throw: if 'lttng_ust_unlock_fd_tracker' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:255:17: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
#  253|   	fd = open(elf->path, O_RDONLY | O_CLOEXEC);
#  254|   	if (fd < 0) {
#  255|-> 		lttng_ust_unlock_fd_tracker();
#  256|   		goto error;
#  257|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
lttng-ust-2.14.0/src/common/elf.c:255:17: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(48, 1)'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:239:15: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:255:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:255:17: throw: if 'lttng_ust_unlock_fd_tracker' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:255:17: danger: 'calloc(48, 1)' leaks here; was allocated at [(4)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/3)
#  253|   	fd = open(elf->path, O_RDONLY | O_CLOEXEC);
#  254|   	if (fd < 0) {
#  255|-> 		lttng_ust_unlock_fd_tracker();
#  256|   		goto error;
#  257|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
lttng-ust-2.14.0/src/common/elf.c:259:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(strdup(path), 524288)'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:253:14: acquire_resource: opened here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:259:15: throw: if 'lttng_ust_add_fd_to_tracker' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:259:15: danger: 'open(strdup(path), 524288)' leaks here; was opened at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
#  257|   	}
#  258|   
#  259|-> 	ret = lttng_ust_add_fd_to_tracker(fd);
#  260|   	if (ret < 0) {
#  261|   		ret = close(fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
lttng-ust-2.14.0/src/common/elf.c:259:15: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:247:21: acquire_memory: allocated here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:259:15: throw: if 'lttng_ust_add_fd_to_tracker' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:259:15: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
#  257|   	}
#  258|   
#  259|-> 	ret = lttng_ust_add_fd_to_tracker(fd);
#  260|   	if (ret < 0) {
#  261|   		ret = close(fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
lttng-ust-2.14.0/src/common/elf.c:259:15: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(48, 1)'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:239:15: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:259:15: throw: if 'lttng_ust_add_fd_to_tracker' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:259:15: danger: 'calloc(48, 1)' leaks here; was allocated at [(4)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/3)
#  257|   	}
#  258|   
#  259|-> 	ret = lttng_ust_add_fd_to_tracker(fd);
#  260|   	if (ret < 0) {
#  261|   		ret = close(fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
lttng-ust-2.14.0/src/common/elf.c:261:23: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:247:21: acquire_memory: allocated here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:260:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:261:23: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:261:23: throw: if 'close' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:261:23: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
#  259|   	ret = lttng_ust_add_fd_to_tracker(fd);
#  260|   	if (ret < 0) {
#  261|-> 		ret = close(fd);
#  262|   		if (ret) {
#  263|   			PERROR("close on elf->fd");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
lttng-ust-2.14.0/src/common/elf.c:261:23: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(48, 1)'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:239:15: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:260:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:261:23: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:261:23: throw: if 'close' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:261:23: danger: 'calloc(48, 1)' leaks here; was allocated at [(4)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/3)
#  259|   	ret = lttng_ust_add_fd_to_tracker(fd);
#  260|   	if (ret < 0) {
#  261|-> 		ret = close(fd);
#  262|   		if (ret) {
#  263|   			PERROR("close on elf->fd");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
lttng-ust-2.14.0/src/common/elf.c:263:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:247:21: acquire_memory: allocated here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:260:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:261:23: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:262:20: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:263:25: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:263:25: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:263:25: throw: if 'ust_safe_snprintf' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:263:25: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
#  261|   		ret = close(fd);
#  262|   		if (ret) {
#  263|-> 			PERROR("close on elf->fd");
#  264|   		}
#  265|   		ret = -1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
lttng-ust-2.14.0/src/common/elf.c:266:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:247:21: acquire_memory: allocated here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:260:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:261:23: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:266:17: throw: if 'lttng_ust_unlock_fd_tracker' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:266:17: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/2)
#  264|   		}
#  265|   		ret = -1;
#  266|-> 		lttng_ust_unlock_fd_tracker();
#  267|   		goto error;
#  268|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
lttng-ust-2.14.0/src/common/elf.c:266:17: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(48, 1)'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:239:15: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:260:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:261:23: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:266:17: throw: if 'lttng_ust_unlock_fd_tracker' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:266:17: danger: 'calloc(48, 1)' leaks here; was allocated at [(4)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/3)
#  264|   		}
#  265|   		ret = -1;
#  266|-> 		lttng_ust_unlock_fd_tracker();
#  267|   		goto error;
#  268|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
lttng-ust-2.14.0/src/common/elf.c:270:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:247:21: acquire_memory: allocated here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:260:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:269:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:270:9: throw: if 'lttng_ust_unlock_fd_tracker' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:270:9: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/2)
#  268|   	}
#  269|   	elf->fd = ret;
#  270|-> 	lttng_ust_unlock_fd_tracker();
#  271|   
#  272|   	if (lttng_ust_read(elf->fd, e_ident, EI_NIDENT) < EI_NIDENT) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
lttng-ust-2.14.0/src/common/elf.c:270:9: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(48, 1)'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:239:15: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:260:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:269:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:270:9: throw: if 'lttng_ust_unlock_fd_tracker' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:270:9: danger: 'calloc(48, 1)' leaks here; was allocated at [(4)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/3)
#  268|   	}
#  269|   	elf->fd = ret;
#  270|-> 	lttng_ust_unlock_fd_tracker();
#  271|   
#  272|   	if (lttng_ust_read(elf->fd, e_ident, EI_NIDENT) < EI_NIDENT) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
lttng-ust-2.14.0/src/common/elf.c:272:13: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:247:21: acquire_memory: allocated here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:260:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:269:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:272:13: throw: if 'lttng_ust_read' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:272:13: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/2)
#  270|   	lttng_ust_unlock_fd_tracker();
#  271|   
#  272|-> 	if (lttng_ust_read(elf->fd, e_ident, EI_NIDENT) < EI_NIDENT) {
#  273|   		goto error;
#  274|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
lttng-ust-2.14.0/src/common/elf.c:272:13: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(48, 1)'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:239:15: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:260:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:269:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:272:13: throw: if 'lttng_ust_read' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:272:13: danger: 'calloc(48, 1)' leaks here; was allocated at [(4)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/3)
#  270|   	lttng_ust_unlock_fd_tracker();
#  271|   
#  272|-> 	if (lttng_ust_read(elf->fd, e_ident, EI_NIDENT) < EI_NIDENT) {
#  273|   		goto error;
#  274|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
lttng-ust-2.14.0/src/common/elf.c:275:24: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(48, 1)'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:239:15: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:260:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:269:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:272:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:275:24: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:278:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:282:21: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:283:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:287:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:287:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:290:21: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:290:21: throw: if 'lttng_ust_read' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:275:24: danger: 'calloc(48, 1)' leaks here; was allocated at [(4)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/3)
#  273|   		goto error;
#  274|   	}
#  275|-> 	elf->bitness = e_ident[EI_CLASS];
#  276|   	elf->endianness = e_ident[EI_DATA];
#  277|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
lttng-ust-2.14.0/src/common/elf.c:290:21: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:247:21: acquire_memory: allocated here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:260:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:269:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:272:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:275:24: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:278:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:282:21: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:283:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:287:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:287:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:290:21: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:290:21: throw: if 'lttng_ust_read' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:290:21: danger: '<unknown>' leaks here; was allocated at [(4)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/3)
#  288|   		Elf32_Ehdr elf_ehdr;
#  289|   
#  290|-> 		if (lttng_ust_read(elf->fd, &elf_ehdr, sizeof(elf_ehdr))
#  291|   				< sizeof(elf_ehdr)) {
#  292|   			goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
lttng-ust-2.14.0/src/common/elf.c:290:21: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(48, 1)'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:260:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:269:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:272:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:275:24: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:278:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:282:21: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:283:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:287:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:287:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:290:21: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:290:21: throw: if 'lttng_ust_read' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:290:21: danger: 'calloc(48, 1)' leaks here; was allocated at [(16)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/15)
#  288|   		Elf32_Ehdr elf_ehdr;
#  289|   
#  290|-> 		if (lttng_ust_read(elf->fd, &elf_ehdr, sizeof(elf_ehdr))
#  291|   				< sizeof(elf_ehdr)) {
#  292|   			goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
lttng-ust-2.14.0/src/common/elf.c:301:21: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:247:21: acquire_memory: allocated here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:260:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:269:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:272:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:275:24: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:278:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:282:21: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:283:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:287:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:287:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:301:21: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:301:21: throw: if 'lttng_ust_read' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:301:21: danger: '<unknown>' leaks here; was allocated at [(4)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/3)
#  299|   		Elf64_Ehdr elf_ehdr;
#  300|   
#  301|-> 		if (lttng_ust_read(elf->fd, &elf_ehdr, sizeof(elf_ehdr))
#  302|   				< sizeof(elf_ehdr)) {
#  303|   			goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
lttng-ust-2.14.0/src/common/elf.c:301:21: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(48, 1)'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:260:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:269:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:272:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:275:24: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:278:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:282:21: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:283:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:287:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:287:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:301:21: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:301:21: throw: if 'lttng_ust_read' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:301:21: danger: 'calloc(48, 1)' leaks here; was allocated at [(16)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/15)
#  299|   		Elf64_Ehdr elf_ehdr;
#  300|   
#  301|-> 		if (lttng_ust_read(elf->fd, &elf_ehdr, sizeof(elf_ehdr))
#  302|   				< sizeof(elf_ehdr)) {
#  303|   			goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
lttng-ust-2.14.0/src/common/elf.c:350:13: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(48, 1)'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:239:15: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:272:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:273:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:323:9: call_function: calling 'lttng_ust_elf_destroy' from 'lttng_ust_elf_create'
#  348|   	}
#  349|   
#  350|-> 	if (elf->fd >= 0) {
#  351|   		lttng_ust_lock_fd_tracker();
#  352|   		ret = close(elf->fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
lttng-ust-2.14.0/src/common/elf.c:352:23: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:247:21: acquire_memory: allocated here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:272:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:273:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:323:9: call_function: calling 'lttng_ust_elf_destroy' from 'lttng_ust_elf_create'
#  350|   	if (elf->fd >= 0) {
#  351|   		lttng_ust_lock_fd_tracker();
#  352|-> 		ret = close(elf->fd);
#  353|   		if (!ret) {
#  354|   			lttng_ust_delete_fd_from_tracker(elf->fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
lttng-ust-2.14.0/src/common/elf.c:353:20: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:247:21: acquire_memory: allocated here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:272:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:273:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:323:9: call_function: calling 'lttng_ust_elf_destroy' from 'lttng_ust_elf_create'
#  351|   		lttng_ust_lock_fd_tracker();
#  352|   		ret = close(elf->fd);
#  353|-> 		if (!ret) {
#  354|   			lttng_ust_delete_fd_from_tracker(elf->fd);
#  355|   		} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
lttng-ust-2.14.0/src/common/elf.c:356:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:247:21: acquire_memory: allocated here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:272:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:273:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:323:9: call_function: calling 'lttng_ust_elf_destroy' from 'lttng_ust_elf_create'
#  354|   			lttng_ust_delete_fd_from_tracker(elf->fd);
#  355|   		} else {
#  356|-> 			PERROR("close");
#  357|   			abort();
#  358|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
lttng-ust-2.14.0/src/common/elf.c:359:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:247:21: acquire_memory: allocated here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:272:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:273:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:323:9: call_function: calling 'lttng_ust_elf_destroy' from 'lttng_ust_elf_create'
#  357|   			abort();
#  358|   		}
#  359|-> 		lttng_ust_unlock_fd_tracker();
#  360|   	}
#  361|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
lttng-ust-2.14.0/src/common/elf.c:483:21: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(_length, 1)'
lttng-ust-2.14.0/src/common/elf.c:429:5: enter_function: entry to 'lttng_ust_elf_get_build_id_from_segment'
lttng-ust-2.14.0/src/common/elf.c:436:16: branch_true: following 'true' branch (when 'offset < segment_end')...
lttng-ust-2.14.0/src/common/elf.c:441:27: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:442:20: branch_false: following 'false' branch (when 'segment_end > offset')...
lttng-ust-2.14.0/src/common/elf.c:450:21: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:450:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:453:21: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:453:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:458:22: call_function: inlined call to 'is_elf_native_endian' from 'lttng_ust_elf_get_build_id_from_segment'
lttng-ust-2.14.0/src/common/elf.c:478:29: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_get_build_id_from_segment'
lttng-ust-2.14.0/src/common/elf.c:479:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:483:21: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:483:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:487:21: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:487:21: throw: if 'lttng_ust_read' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:483:21: danger: 'calloc(_length, 1)' leaks here; was allocated at [(13)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/12)
#  481|   		}
#  482|   
#  483|-> 		if (lseek(elf->fd, offset, SEEK_SET) < 0) {
#  484|   			goto error;
#  485|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
lttng-ust-2.14.0/src/common/elf.c:621:28: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(*shdr.sh_size + 18446744073709551612, 1)'
lttng-ust-2.14.0/src/common/elf.c:583:5: enter_function: entry to 'lttng_ust_elf_get_debug_link_from_section'
lttng-ust-2.14.0/src/common/elf.c:592:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:600:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:605:49: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:604:24: call_function: calling 'lttng_ust_elf_get_section_name' from 'lttng_ust_elf_get_debug_link_from_section'
lttng-ust-2.14.0/src/common/elf.c:604:24: return_function: returning to 'lttng_ust_elf_get_debug_link_from_section' from 'lttng_ust_elf_get_section_name'
lttng-ust-2.14.0/src/common/elf.c:606:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:609:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:609:12: branch_false: following 'false' branch (when the strings are equal)...
lttng-ust-2.14.0/src/common/elf.c:617:45: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:617:21: call_function: inlined call to 'zmalloc' from 'lttng_ust_elf_get_debug_link_from_section'
lttng-ust-2.14.0/src/common/elf.c:618:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:621:28: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:621:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:624:46: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:625:13: throw: if 'lttng_ust_read' throws an exception...
lttng-ust-2.14.0/src/common/elf.c:621:28: danger: 'calloc(*shdr.sh_size + 18446744073709551612, 1)' leaks here; was allocated at [(31)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/30)
#  619|   		goto error;
#  620|   	}
#  621|-> 	if (lseek(elf->fd, shdr->sh_offset, SEEK_SET) < 0) {
#  622|   		goto error;
#  623|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def45]
lttng-ust-2.14.0/src/common/logging.h:71:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'waitfd[0]'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:85:20: enter_function: entry to '_shm_object_table_alloc_shm'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:95:12: branch_false: following 'false' branch (when 'stream_fd >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:99:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:103:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:108:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:109:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:110:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:110:17: call_function: calling 'lttng_ust_logging_debug_enabled' from '_shm_object_table_alloc_shm'
#   69|   	/* If the global log level is unknown, lazy-initialize it. */
#   70|   	if (caa_unlikely(current_log_level == LTTNG_UST_LOG_LEVEL_UNKNOWN)) {
#   71|-> 		lttng_ust_logging_init();
#   72|   		current_log_level = CMM_LOAD_SHARED(lttng_ust_log_level);
#   73|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
lttng-ust-2.14.0/src/common/logging.h:71:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/elf.c:232:23: enter_function: entry to 'lttng_ust_elf_create'
lttng-ust-2.14.0/src/common/elf.c:240:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:245:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:247:21: acquire_memory: allocated here
lttng-ust-2.14.0/src/common/elf.c:248:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:252:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:254:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/elf.c:259:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/elf.c:260:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:261:23: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:262:20: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/elf.c:263:25: branch_true: ...to here
lttng-ust-2.14.0/src/common/elf.c:263:25: call_function: calling 'lttng_ust_logging_debug_enabled' from 'lttng_ust_elf_create'
#   69|   	/* If the global log level is unknown, lazy-initialize it. */
#   70|   	if (caa_unlikely(current_log_level == LTTNG_UST_LOG_LEVEL_UNKNOWN)) {
#   71|-> 		lttng_ust_logging_init();
#   72|   		current_log_level = CMM_LOAD_SHARED(lttng_ust_log_level);
#   73|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
lttng-ust-2.14.0/src/common/logging.h:71:17: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:337:5: enter_function: entry to 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:348:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:353:24: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:354:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:358:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:378:23: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:379:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:383:17: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:393:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:395:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:395:12: branch_true: following 'true' branch (when 'buf' is non-NULL)...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:397:23: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:398:20: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:401:21: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:401:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:406:15: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:407:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:417:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:418:9: call_function: calling 'lttng_ust_logging_debug_enabled' from 'lttng_ust_ctl_add_context'
#   69|   	/* If the global log level is unknown, lazy-initialize it. */
#   70|   	if (caa_unlikely(current_log_level == LTTNG_UST_LOG_LEVEL_UNKNOWN)) {
#   71|-> 		lttng_ust_logging_init();
#   72|   		current_log_level = CMM_LOAD_SHARED(lttng_ust_log_level);
#   73|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
lttng-ust-2.14.0/src/common/logging.h:71:17: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:184:20: enter_function: entry to '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:191:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:193:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:195:22: call_function: inlined call to 'zmalloc_populate' from '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:196:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:200:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:201:12: branch_true: following 'true' branch (when 'ret < 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:202:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:202:17: call_function: calling 'lttng_ust_logging_debug_enabled' from '_shm_object_table_alloc_mem'
#   69|   	/* If the global log level is unknown, lazy-initialize it. */
#   70|   	if (caa_unlikely(current_log_level == LTTNG_UST_LOG_LEVEL_UNKNOWN)) {
#   71|-> 		lttng_ust_logging_init();
#   72|   		current_log_level = CMM_LOAD_SHARED(lttng_ust_log_level);
#   73|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
lttng-ust-2.14.0/src/common/ringbuffer-clients/template.h:375:18: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
#  373|   				handle);
#  374|   	struct lttng_ust_channel_buffer *lttng_chan = channel_get_private(chan);
#  375|-> 	uint64_t cnt = shmp_index(handle, buf->backend.buf_cnt, subbuf_idx)->seq_cnt;
#  376|   
#  377|   	assert(header);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:52:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
#   50|   		return -EINVAL;
#   51|   
#   52|-> 	subbuf_size = chanb->subbuf_size;
#   53|   	num_subbuf_alloc = num_subbuf;
#   54|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:185:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
#  183|   	config = &chanb->config;
#  184|   
#  185|-> 	num_subbuf_alloc = chanb->num_subbuf;
#  186|   	if (chanb->extra_reader_sb)
#  187|   		num_subbuf_alloc++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:433:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
#  431|   	config = &chanb->config;
#  432|   	orig_len = len;
#  433|-> 	offset &= chanb->buf_size - 1;
#  434|   
#  435|   	if (caa_unlikely(!len))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:487:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:485:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:487:19: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:487:19: danger: dereference of NULL '<unknown>'
#  485|   	if (caa_unlikely(!len))
#  486|   		return -EINVAL;
#  487|-> 	offset &= chanb->buf_size - 1;
#  488|   	orig_offset = offset;
#  489|   	id = bufb->buf_rsb.id;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def54]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:540:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
#  538|   		return NULL;
#  539|   	config = &chanb->config;
#  540|-> 	offset &= chanb->buf_size - 1;
#  541|   	id = bufb->buf_rsb.id;
#  542|   	sb_bindex = subbuffer_id_get_index(config, id);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:580:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
#  578|   		return NULL;
#  579|   	config = &chanb->config;
#  580|-> 	offset &= chanb->buf_size - 1;
#  581|   	sbidx = offset >> chanb->subbuf_size_order;
#  582|   	sb = shmp_index(handle, bufb->buf_wsb, sbidx);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1017:25: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:966:30: enter_function: entry to 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:987:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:992:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:992:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: following 'false' branch (when 'blocking_timeout >= -1')...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:999:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1012:18: call_function: inlined call to 'zmalloc_populate' from 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1017:25: throw: if 'shm_object_table_create' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1017:25: danger: 'ret' leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
# 1015|   
# 1016|   	/* Allocate table for per-channel + per-cpu buffers */
# 1017|-> 	handle->table = shm_object_table_create(1 + get_possible_cpus_array_len(), populate);
# 1018|   	if (!handle->table)
# 1019|   		goto error_table_alloc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1017:49: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:966:30: enter_function: entry to 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:987:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:992:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:992:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: following 'false' branch (when 'blocking_timeout >= -1')...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:999:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1012:18: call_function: inlined call to 'zmalloc_populate' from 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1013:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1017:53: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1017:25: throw: if 'shm_object_table_create' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1017:49: danger: '<unknown>' leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
# 1015|   
# 1016|   	/* Allocate table for per-channel + per-cpu buffers */
# 1017|-> 	handle->table = shm_object_table_create(1 + get_possible_cpus_array_len(), populate);
# 1018|   	if (!handle->table)
# 1019|   		goto error_table_alloc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1017:53: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:966:30: enter_function: entry to 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:987:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:992:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:992:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: following 'false' branch (when 'blocking_timeout >= -1')...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:999:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1012:18: call_function: inlined call to 'zmalloc_populate' from 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1013:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1017:53: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1017:53: throw: if 'get_possible_cpus_array_len' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1017:53: danger: '<unknown>' leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
# 1015|   
# 1016|   	/* Allocate table for per-channel + per-cpu buffers */
# 1017|-> 	handle->table = shm_object_table_create(1 + get_possible_cpus_array_len(), populate);
# 1018|   	if (!handle->table)
# 1019|   		goto error_table_alloc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1017:53: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:966:30: enter_function: entry to 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:987:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:992:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:992:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: following 'false' branch (when 'blocking_timeout >= -1')...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:999:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1012:18: call_function: inlined call to 'zmalloc_populate' from 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1017:53: throw: if 'get_possible_cpus_array_len' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1017:53: danger: 'ret' leaks here; was allocated at [(11)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/10)
# 1015|   
# 1016|   	/* Allocate table for per-channel + per-cpu buffers */
# 1017|-> 	handle->table = shm_object_table_create(1 + get_possible_cpus_array_len(), populate);
# 1018|   	if (!handle->table)
# 1019|   		goto error_table_alloc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1031:18: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:966:30: enter_function: entry to 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:987:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:992:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:992:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: following 'false' branch (when 'blocking_timeout >= -1')...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:999:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1012:18: call_function: inlined call to 'zmalloc_populate' from 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1018:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1024:20: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1031:18: throw: if 'shm_object_table_alloc' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1031:18: danger: 'ret' leaks here; was allocated at [(11)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/10)
# 1029|   
# 1030|   	/* Allocate normal memory for channel (not shared) */
# 1031|-> 	shmobj = shm_object_table_alloc(handle->table, shmsize, SHM_OBJECT_MEM,
# 1032|   			-1, -1, populate);
# 1033|   	if (!shmobj)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1036:9: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:966:30: enter_function: entry to 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:987:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:992:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:992:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: following 'false' branch (when 'blocking_timeout >= -1')...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:999:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1012:18: call_function: inlined call to 'zmalloc_populate' from 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1018:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1024:20: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1033:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1036:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1036:9: throw: if 'zalloc_shm' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1036:9: danger: 'ret' leaks here; was allocated at [(11)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/10)
# 1034|   		goto error_append;
# 1035|   	/* struct lttng_ust_ring_buffer_channel is at object 0, offset 0 (hardcoded) */
# 1036|-> 	set_shmp(handle->chan, zalloc_shm(shmobj, chansize));
# 1037|   	assert(handle->chan._ref.index == 0);
# 1038|   	assert(handle->chan._ref.offset == 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1050:17: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:966:30: enter_function: entry to 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:992:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: following 'false' branch (when 'blocking_timeout >= -1')...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:999:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1012:18: call_function: inlined call to 'zmalloc_populate' from 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1018:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1024:20: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1033:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1036:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1037:9: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1038:9: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1038:9: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1039:16: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1039:16: call_function: inlined call to '_shmp_offset' from 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1040:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1042:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1045:12: branch_true: following 'true' branch (when 'priv_data_size != 0')...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1050:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1050:17: throw: if 'align_shm' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1050:17: danger: 'ret' leaks here; was allocated at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
# 1048|   		DECLARE_SHMP(void, priv_data_alloc);
# 1049|   
# 1050|-> 		align_shm(shmobj, priv_data_align);
# 1051|   		chan->priv_data_offset = shmobj->allocated_len;
# 1052|   		set_shmp(priv_data_alloc, zalloc_shm(shmobj, priv_data_size));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1052:17: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:966:30: enter_function: entry to 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:992:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: following 'false' branch (when 'blocking_timeout >= -1')...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:999:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1012:18: call_function: inlined call to 'zmalloc_populate' from 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1018:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1024:20: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1033:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1036:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1037:9: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1038:9: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1038:9: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1039:16: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1039:16: call_function: inlined call to '_shmp_offset' from 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1040:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1042:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1045:12: branch_true: following 'true' branch (when 'priv_data_size != 0')...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1050:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1052:17: throw: if 'zalloc_shm' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1052:17: danger: 'ret' leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
# 1050|   		align_shm(shmobj, priv_data_align);
# 1051|   		chan->priv_data_offset = shmobj->allocated_len;
# 1052|-> 		set_shmp(priv_data_alloc, zalloc_shm(shmobj, priv_data_size));
# 1053|   		if (!shmp(handle, priv_data_alloc))
# 1054|   			goto error_append;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1065:15: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:966:30: enter_function: entry to 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:992:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: following 'false' branch (when 'blocking_timeout >= -1')...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:999:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1012:18: call_function: inlined call to 'zmalloc_populate' from 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1018:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1024:20: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1033:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1036:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1037:9: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1038:9: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1038:9: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1039:16: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1039:16: call_function: inlined call to '_shmp_offset' from 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1040:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1042:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1065:15: throw: if 'channel_backend_init' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1065:15: danger: 'ret' leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
# 1063|   	channel_set_private(chan, priv);
# 1064|   
# 1065|-> 	ret = channel_backend_init(&chan->backend, name, config,
# 1066|   				   subbuf_size, num_subbuf, handle,
# 1067|   				   stream_fds);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1083:9: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:966:30: enter_function: entry to 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:992:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:995:12: branch_false: following 'false' branch (when 'blocking_timeout >= -1')...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:999:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1012:18: call_function: inlined call to 'zmalloc_populate' from 'channel_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1018:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1024:20: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1033:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1034:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1083:9: throw: if 'shm_object_table_destroy' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1083:9: danger: 'ret' leaks here; was allocated at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
# 1081|   error_backend_init:
# 1082|   error_append:
# 1083|-> 	shm_object_table_destroy(handle->table, 1);
# 1084|   error_table_alloc:
# 1085|   	free(handle);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1102:25: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1089:30: enter_function: entry to 'channel_handle_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1097:18: call_function: inlined call to 'zmalloc_populate' from 'channel_handle_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1102:25: throw: if 'shm_object_table_create' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1102:25: danger: 'ret' leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
# 1100|   
# 1101|   	/* Allocate table for per-channel + per-cpu buffers */
# 1102|-> 	handle->table = shm_object_table_create(1 + get_possible_cpus_array_len(), populate);
# 1103|   	if (!handle->table)
# 1104|   		goto error_table_alloc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1102:49: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1089:30: enter_function: entry to 'channel_handle_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1097:18: call_function: inlined call to 'zmalloc_populate' from 'channel_handle_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1098:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1102:53: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1102:25: throw: if 'shm_object_table_create' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1102:49: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
# 1100|   
# 1101|   	/* Allocate table for per-channel + per-cpu buffers */
# 1102|-> 	handle->table = shm_object_table_create(1 + get_possible_cpus_array_len(), populate);
# 1103|   	if (!handle->table)
# 1104|   		goto error_table_alloc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1102:53: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1089:30: enter_function: entry to 'channel_handle_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1097:18: call_function: inlined call to 'zmalloc_populate' from 'channel_handle_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1098:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1102:53: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1102:53: throw: if 'get_possible_cpus_array_len' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1102:53: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
# 1100|   
# 1101|   	/* Allocate table for per-channel + per-cpu buffers */
# 1102|-> 	handle->table = shm_object_table_create(1 + get_possible_cpus_array_len(), populate);
# 1103|   	if (!handle->table)
# 1104|   		goto error_table_alloc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1102:53: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1089:30: enter_function: entry to 'channel_handle_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1097:18: call_function: inlined call to 'zmalloc_populate' from 'channel_handle_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1102:53: throw: if 'get_possible_cpus_array_len' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1102:53: danger: 'ret' leaks here; was allocated at [(5)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/4)
# 1100|   
# 1101|   	/* Allocate table for per-channel + per-cpu buffers */
# 1102|-> 	handle->table = shm_object_table_create(1 + get_possible_cpus_array_len(), populate);
# 1103|   	if (!handle->table)
# 1104|   		goto error_table_alloc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1106:18: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1089:30: enter_function: entry to 'channel_handle_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1097:18: call_function: inlined call to 'zmalloc_populate' from 'channel_handle_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1103:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1106:18: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1106:18: throw: if 'shm_object_table_append_mem' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1106:18: danger: 'ret' leaks here; was allocated at [(5)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/4)
# 1104|   		goto error_table_alloc;
# 1105|   	/* Add channel object */
# 1106|-> 	object = shm_object_table_append_mem(handle->table, data,
# 1107|   			memory_map_size, wakeup_fd);
# 1108|   	if (!object)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1116:9: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1089:30: enter_function: entry to 'channel_handle_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1097:18: call_function: inlined call to 'zmalloc_populate' from 'channel_handle_create'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1103:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1106:18: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1108:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1109:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1116:9: throw: if 'shm_object_table_destroy' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_frontend.c:1116:9: danger: 'ret' leaks here; was allocated at [(5)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/4)
# 1114|   
# 1115|   error_table_object:
# 1116|-> 	shm_object_table_destroy(handle->table, 0);
# 1117|   error_table_alloc:
# 1118|   	free(handle);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def72]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:57:34: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'waitfd[0]'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:85:20: enter_function: entry to '_shm_object_table_alloc_shm'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:95:12: branch_false: following 'false' branch (when 'stream_fd >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:99:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:103:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:108:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:109:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:113:16: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:127:12: branch_false: following 'false' branch (when 'ret == 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:131:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:131:15: call_function: calling 'zero_file' from '_shm_object_table_alloc_shm'
#   55|   	while (len > written) {
#   56|   		do {
#   57|-> 			retlen = write(fd, zeropage,
#   58|   				min_t(size_t, pagelen, len - written));
#   59|   		} while (retlen == -1UL && errno == EINTR);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:57:34: warning[-Wanalyzer-malloc-leak]: leak of 'zeropage'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:49:12: branch_false: following 'false' branch (when 'pagelen >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:51:20: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:51:20: acquire_memory: allocated here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:52:12: branch_false: following 'false' branch (when 'zeropage' is non-NULL)...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:52:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:55:16: branch_true: following 'true' branch (when 'written < len')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:55:16: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:57:34: throw: if 'write' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:57:34: danger: 'zeropage' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#   55|   	while (len > written) {
#   56|   		do {
#   57|-> 			retlen = write(fd, zeropage,
#   58|   				min_t(size_t, pagelen, len - written));
#   59|   		} while (retlen == -1UL && errno == EINTR);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def74]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:99:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:85:20: enter_function: entry to '_shm_object_table_alloc_shm'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:95:12: branch_false: following 'false' branch (when 'stream_fd >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:99:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:103:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:108:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:109:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:113:16: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:127:12: branch_false: following 'false' branch (when 'ret == 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:131:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:131:15: call_function: calling 'zero_file' from '_shm_object_table_alloc_shm'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:131:15: return_function: returning to '_shm_object_table_alloc_shm' from 'zero_file'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:132:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:142:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:155:12: branch_false: following 'false' branch (when 'memory_map != 18446744073709551615')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:159:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:99:9: danger: leaks here
#   97|   	if (table->allocated_len >= table->size)
#   98|   		return NULL;
#   99|-> 	obj = &table->objects[table->allocated_len];
#  100|   
#  101|   	/* wait_fd: create pipe */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def75]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:108:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'waitfd[0]'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:95:12: branch_false: following 'false' branch (when 'stream_fd >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:99:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:103:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:108:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:108:15: throw: if 'fcntl' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:108:15: danger: 'waitfd[0]' leaks here
#  106|   	}
#  107|   	/* The write end of the pipe needs to be non-blocking */
#  108|-> 	ret = fcntl(waitfd[1], F_SETFL, O_NONBLOCK);
#  109|   	if (ret < 0) {
#  110|   		PERROR("fcntl");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def76]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:108:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'waitfd[1]'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:95:12: branch_false: following 'false' branch (when 'stream_fd >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:99:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:103:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:108:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:108:15: throw: if 'fcntl' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:108:15: danger: 'waitfd[1]' leaks here
#  106|   	}
#  107|   	/* The write end of the pipe needs to be non-blocking */
#  108|-> 	ret = fcntl(waitfd[1], F_SETFL, O_NONBLOCK);
#  109|   	if (ret < 0) {
#  110|   		PERROR("fcntl");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def77]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:110:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'waitfd[0]'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:95:12: branch_false: following 'false' branch (when 'stream_fd >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:99:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:103:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:108:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:109:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:110:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:110:17: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:110:17: throw: if 'ust_safe_snprintf' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:110:17: danger: 'waitfd[0]' leaks here
#  108|   	ret = fcntl(waitfd[1], F_SETFL, O_NONBLOCK);
#  109|   	if (ret < 0) {
#  110|-> 		PERROR("fcntl");
#  111|   		goto error_fcntl;
#  112|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def78]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:128:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'waitfd[0]'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:95:12: branch_false: following 'false' branch (when 'stream_fd >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:99:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:103:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:108:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:109:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:113:16: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:127:12: branch_true: following 'true' branch (when 'ret != 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:128:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:128:17: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:128:17: throw: if 'ust_safe_snprintf' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:128:17: danger: 'waitfd[0]' leaks here
#  126|   	ret = ftruncate(shmfd, memory_map_size);
#  127|   	if (ret) {
#  128|-> 		PERROR("ftruncate");
#  129|   		goto error_ftruncate;
#  130|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def79]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:133:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'waitfd[0]'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:95:12: branch_false: following 'false' branch (when 'stream_fd >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:99:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:103:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:108:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:109:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:113:16: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:127:12: branch_false: following 'false' branch (when 'ret == 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:131:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:132:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:133:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:133:17: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:133:17: throw: if 'ust_safe_snprintf' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:133:17: danger: 'waitfd[0]' leaks here
#  131|   	ret = zero_file(shmfd, memory_map_size);
#  132|   	if (ret) {
#  133|-> 		PERROR("zero_file");
#  134|   		goto error_zero_file;
#  135|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def80]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:142:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'waitfd[0]'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:85:20: enter_function: entry to '_shm_object_table_alloc_shm'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:95:12: branch_false: following 'false' branch (when 'stream_fd >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:99:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:103:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:108:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:109:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:113:16: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:127:12: branch_false: following 'false' branch (when 'ret == 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:131:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:131:15: call_function: calling 'zero_file' from '_shm_object_table_alloc_shm'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:131:15: return_function: returning to '_shm_object_table_alloc_shm' from 'zero_file'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:132:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:142:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:142:15: throw: if 'fsync' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:142:15: danger: 'waitfd[0]' leaks here
#  140|   	 * EINVAL accordingly.
#  141|   	 */
#  142|-> 	ret = fsync(shmfd);
#  143|   	if (ret && errno != EINVAL) {
#  144|   		PERROR("fsync");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def81]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:144:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'waitfd[0]'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:85:20: enter_function: entry to '_shm_object_table_alloc_shm'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:95:12: branch_false: following 'false' branch (when 'stream_fd >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:99:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:103:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:108:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:109:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:113:16: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:127:12: branch_false: following 'false' branch (when 'ret == 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:131:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:131:15: call_function: calling 'zero_file' from '_shm_object_table_alloc_shm'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:131:15: return_function: returning to '_shm_object_table_alloc_shm' from 'zero_file'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:132:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:142:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:143:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:144:17: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:144:17: throw: if 'ust_safe_snprintf' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:144:17: danger: 'waitfd[0]' leaks here
#  142|   	ret = fsync(shmfd);
#  143|   	if (ret && errno != EINVAL) {
#  144|-> 		PERROR("fsync");
#  145|   		goto error_fsync;
#  146|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def82]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:156:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'waitfd[0]'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:85:20: enter_function: entry to '_shm_object_table_alloc_shm'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:95:12: branch_false: following 'false' branch (when 'stream_fd >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:99:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:103:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:108:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:109:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:113:16: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:127:12: branch_false: following 'false' branch (when 'ret == 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:131:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:131:15: call_function: calling 'zero_file' from '_shm_object_table_alloc_shm'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:131:15: return_function: returning to '_shm_object_table_alloc_shm' from 'zero_file'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:132:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:142:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:155:12: branch_true: following 'true' branch (when 'memory_map == 18446744073709551615')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:156:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:156:17: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:156:17: throw: if 'ust_safe_snprintf' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:156:17: danger: 'waitfd[0]' leaks here
#  154|   			  flags, shmfd, 0);
#  155|   	if (memory_map == MAP_FAILED) {
#  156|-> 		PERROR("mmap");
#  157|   		goto error_mmap;
#  158|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def83]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:173:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'waitfd[i]'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:95:12: branch_false: following 'false' branch (when 'stream_fd >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:13: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:97:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:99:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:103:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:108:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:172:21: branch_true: following 'true' branch (when 'i != 2')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:173:23: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:173:23: throw: if 'close' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:173:23: danger: 'waitfd[i]' leaks here
#  171|   error_fcntl:
#  172|   	for (i = 0; i < 2; i++) {
#  173|-> 		ret = close(waitfd[i]);
#  174|   		if (ret) {
#  175|   			PERROR("close");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def84]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:193:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:184:20: enter_function: entry to '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:191:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:193:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:195:22: call_function: inlined call to 'zmalloc_populate' from '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:196:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:200:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:201:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:207:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:211:16: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:193:9: danger: leaks here
#  191|   	if (table->allocated_len >= table->size)
#  192|   		return NULL;
#  193|-> 	obj = &table->objects[table->allocated_len];
#  194|   
#  195|   	memory_map = zmalloc_populate(memory_map_size, populate);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:202:17: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:184:20: enter_function: entry to '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:191:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:193:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:195:22: call_function: inlined call to 'zmalloc_populate' from '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:196:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:200:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:201:12: branch_true: following 'true' branch (when 'ret < 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:202:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:202:17: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:202:17: throw: if 'ust_safe_snprintf' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:202:17: danger: 'ret' leaks here; was allocated at [(7)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/6)
#  200|   	ret = pipe2(waitfd, O_CLOEXEC);
#  201|   	if (ret < 0) {
#  202|-> 		PERROR("pipe");
#  203|   		goto error_pipe;
#  204|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def86]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'waitfd[0]'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:184:20: enter_function: entry to '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:191:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:193:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:195:22: call_function: inlined call to 'zmalloc_populate' from '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:196:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:200:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:201:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: throw: if 'fcntl' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: danger: 'waitfd[0]' leaks here
#  204|   	}
#  205|   	/* The write end of the pipe needs to be non-blocking */
#  206|-> 	ret = fcntl(waitfd[1], F_SETFL, O_NONBLOCK);
#  207|   	if (ret < 0) {
#  208|   		PERROR("fcntl");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def87]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'waitfd[1]'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:184:20: enter_function: entry to '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:191:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:193:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:195:22: call_function: inlined call to 'zmalloc_populate' from '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:196:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:200:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:201:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: throw: if 'fcntl' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: danger: 'waitfd[1]' leaks here
#  204|   	}
#  205|   	/* The write end of the pipe needs to be non-blocking */
#  206|-> 	ret = fcntl(waitfd[1], F_SETFL, O_NONBLOCK);
#  207|   	if (ret < 0) {
#  208|   		PERROR("fcntl");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:184:20: enter_function: entry to '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:191:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:193:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:195:22: call_function: inlined call to 'zmalloc_populate' from '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:196:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:200:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:201:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: throw: if 'fcntl' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/6)
#  204|   	}
#  205|   	/* The write end of the pipe needs to be non-blocking */
#  206|-> 	ret = fcntl(waitfd[1], F_SETFL, O_NONBLOCK);
#  207|   	if (ret < 0) {
#  208|   		PERROR("fcntl");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:184:20: enter_function: entry to '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:191:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:193:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:195:22: call_function: inlined call to 'zmalloc_populate' from '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:196:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:200:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:201:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: throw: if 'fcntl' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: danger: 'ret' leaks here; was allocated at [(7)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/6)
#  204|   	}
#  205|   	/* The write end of the pipe needs to be non-blocking */
#  206|-> 	ret = fcntl(waitfd[1], F_SETFL, O_NONBLOCK);
#  207|   	if (ret < 0) {
#  208|   		PERROR("fcntl");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def90]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:208:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'waitfd[0]'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:184:20: enter_function: entry to '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:191:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:193:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:195:22: call_function: inlined call to 'zmalloc_populate' from '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:196:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:200:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:201:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:207:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:208:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:208:17: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:208:17: throw: if 'ust_safe_snprintf' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:208:17: danger: 'waitfd[0]' leaks here
#  206|   	ret = fcntl(waitfd[1], F_SETFL, O_NONBLOCK);
#  207|   	if (ret < 0) {
#  208|-> 		PERROR("fcntl");
#  209|   		goto error_fcntl;
#  210|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:208:17: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:184:20: enter_function: entry to '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:191:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:193:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:195:22: call_function: inlined call to 'zmalloc_populate' from '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:196:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:200:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:201:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:207:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:208:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:208:17: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:208:17: throw: if 'ust_safe_snprintf' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:208:17: danger: 'ret' leaks here; was allocated at [(7)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/6)
#  206|   	ret = fcntl(waitfd[1], F_SETFL, O_NONBLOCK);
#  207|   	if (ret < 0) {
#  208|-> 		PERROR("fcntl");
#  209|   		goto error_fcntl;
#  210|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def92]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:227:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'waitfd[i]'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:184:20: enter_function: entry to '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:191:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:193:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:195:22: call_function: inlined call to 'zmalloc_populate' from '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:196:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:200:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:201:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:207:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:208:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:226:21: branch_true: following 'true' branch (when 'i != 2')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:227:23: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:227:23: throw: if 'close' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:227:23: danger: 'waitfd[i]' leaks here
#  225|   error_fcntl:
#  226|   	for (i = 0; i < 2; i++) {
#  227|-> 		ret = close(waitfd[i]);
#  228|   		if (ret) {
#  229|   			PERROR("close");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:227:23: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:184:20: enter_function: entry to '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:191:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:193:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:195:22: call_function: inlined call to 'zmalloc_populate' from '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:196:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:200:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:201:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:207:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:208:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:226:21: branch_true: following 'true' branch (when 'i != 2')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:227:23: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:227:23: throw: if 'close' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:227:23: danger: 'ret' leaks here; was allocated at [(7)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/6)
#  225|   error_fcntl:
#  226|   	for (i = 0; i < 2; i++) {
#  227|-> 		ret = close(waitfd[i]);
#  228|   		if (ret) {
#  229|   			PERROR("close");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:229:25: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:184:20: enter_function: entry to '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:191:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:193:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:195:22: call_function: inlined call to 'zmalloc_populate' from '_shm_object_table_alloc_mem'
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:196:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:200:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:201:12: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:206:15: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:207:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:208:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:226:21: branch_true: following 'true' branch (when 'i != 2')...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:227:23: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:228:20: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:229:25: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:229:25: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:229:25: throw: if 'ust_safe_snprintf' throws an exception...
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:229:25: danger: 'ret' leaks here; was allocated at [(7)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/6)
#  227|   		ret = close(waitfd[i]);
#  228|   		if (ret) {
#  229|-> 			PERROR("close");
#  230|   			assert(0);
#  231|   		}

Error: CPPCHECK_WARNING (CWE-457): [#def95]
lttng-ust-2.14.0/src/common/ringbuffer/shm.c:286: error[legacyUninitvar]: Uninitialized variable: node
#  284|   				numa_set_preferred(node);
#  285|   		}
#  286|-> 		if (cpu < 0 || node < 0)
#  287|   			numa_set_localalloc();
#  288|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def96]
lttng-ust-2.14.0/src/common/ringbuffer/shm.h:49:29: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:35:5: enter_function: entry to 'lib_ring_buffer_backend_allocate'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:48:18: call_function: inlined call to '_shmp_offset' from 'lib_ring_buffer_backend_allocate'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:59:12: branch_false: following 'false' branch (when 'page_size > 0')...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:63:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:66:13: call_function: inlined call to '_shmp_offset' from 'lib_ring_buffer_backend_allocate'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:66:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:73:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:76:13: call_function: inlined call to '_shmp_offset' from 'lib_ring_buffer_backend_allocate'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:76:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:76:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:80:21: branch_true: following 'true' branch (when 'num_subbuf_alloc > i')...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:81:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:82:17: call_function: calling '_shmp_offset' from 'lib_ring_buffer_backend_allocate'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:82:17: return_function: returning to 'lib_ring_buffer_backend_allocate' from '_shmp_offset'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:85:22: call_function: inlined call to '_shmp_offset' from 'lib_ring_buffer_backend_allocate'
#   47|   	size_t objindex, ref_offset;
#   48|   
#   49|-> 	objindex = (size_t) ref->index;
#   50|   	if (caa_unlikely(objindex >= table->allocated_len))
#   51|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
lttng-ust-2.14.0/src/common/ringbuffer/shm.h:69:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:35:5: enter_function: entry to 'lib_ring_buffer_backend_allocate'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:48:18: call_function: inlined call to '_shmp_offset' from 'lib_ring_buffer_backend_allocate'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:59:12: branch_false: following 'false' branch (when 'page_size > 0')...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:63:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:66:13: call_function: inlined call to '_shmp_offset' from 'lib_ring_buffer_backend_allocate'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:66:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:73:9: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:76:13: call_function: inlined call to '_shmp_offset' from 'lib_ring_buffer_backend_allocate'
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:76:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:76:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:80:21: branch_true: following 'true' branch (when 'num_subbuf_alloc > i')...
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:81:17: branch_true: ...to here
lttng-ust-2.14.0/src/common/ringbuffer/ring_buffer_backend.c:82:17: call_function: inlined call to '_set_shmp' from 'lib_ring_buffer_backend_allocate'
#   67|   void _set_shmp(struct shm_ref *ref, struct shm_ref src)
#   68|   {
#   69|-> 	*ref = src;
#   70|   }
#   71|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
lttng-ust-2.14.0/src/common/smp.c:60:25: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(path)'
lttng-ust-2.14.0/src/common/smp.c:110:5: enter_function: entry to 'get_num_possible_cpus_fallback'
lttng-ust-2.14.0/src/common/smp.c:115:16: call_function: inlined call to 'get_max_cpuid_from_sysfs' from 'get_num_possible_cpus_fallback'
#   58|   	 * Iterate on all directories named "cpu" followed by an integer.
#   59|   	 */
#   60|-> 	while ((entry = readdir(cpudir))) {
#   61|   		if (entry->d_type == DT_DIR &&
#   62|   			strncmp(entry->d_name, "cpu", 3) == 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def99]
lttng-ust-2.14.0/src/common/smp.c:157:30: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(path, 0)'
lttng-ust-2.14.0/src/common/smp.c:147:9: branch_true: following 'true' branch (when 'path' is non-NULL)...
lttng-ust-2.14.0/src/common/smp.c:149:12: branch_true: ...to here
lttng-ust-2.14.0/src/common/smp.c:149:12: branch_false: following 'false' branch (when 'buf' is non-NULL)...
lttng-ust-2.14.0/src/common/smp.c:152:14: branch_false: ...to here
lttng-ust-2.14.0/src/common/smp.c:152:14: acquire_resource: opened here
lttng-ust-2.14.0/src/common/smp.c:153:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/common/smp.c:153:12: branch_false: ...to here
lttng-ust-2.14.0/src/common/smp.c:157:30: danger: 'open(path, 0)' leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  155|   
#  156|   	do {
#  157|-> 		bytes_read = read(fd, buf + total_bytes_read,
#  158|   				max_bytes - total_bytes_read);
#  159|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def100]
lttng-ust-2.14.0/src/common/snprintf/snprintf.c:42:15: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
lttng-ust-2.14.0/src/common/snprintf/snprintf.c:47:5: enter_function: entry to 'ust_safe_snprintf'
lttng-ust-2.14.0/src/common/snprintf/snprintf.c:52:9: acquire_resource: 'va_start' called here
lttng-ust-2.14.0/src/common/snprintf/snprintf.c:53:15: call_function: calling 'ust_safe_vsnprintf' from 'ust_safe_snprintf'
#   40|   	f._bf._base = f._p = (unsigned char *)str;
#   41|   	f._bf._size = f._w = n - 1;
#   42|-> 	ret = ust_safe_vfprintf(&f, fmt, ap);
#   43|   	*f._p = '\0';
#   44|   	return (ret);

Error: COMPILER_WARNING: [#def101]
lttng-ust-2.14.0/src/common/snprintf/vfprintf.c: scope_hint: In function 'ust_safe_vfprintf'
lttng-ust-2.14.0/src/common/snprintf/vfprintf.c:248:45: warning[-Wunterminated-string-initialization]: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (17 chars into 16 available)
#  248 |         static const char xdigs_lower[16] = "0123456789abcdef";
#      |                                             ^~~~~~~~~~~~~~~~~~
#  246|   	 {'0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'};
#  247|   
#  248|-> 	static const char xdigs_lower[16] = "0123456789abcdef";
#  249|   	static const char xdigs_upper[16] = "0123456789ABCDEF";
#  250|   

Error: COMPILER_WARNING: [#def102]
lttng-ust-2.14.0/src/common/snprintf/vfprintf.c:249:45: warning[-Wunterminated-string-initialization]: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (17 chars into 16 available)
#  249 |         static const char xdigs_upper[16] = "0123456789ABCDEF";
#      |                                             ^~~~~~~~~~~~~~~~~~
cc1: note: unrecognized command-line option '-Wno-gnu' may have been intended to silence earlier diagnostics
#  247|   
#  248|   	static const char xdigs_lower[16] = "0123456789abcdef";
#  249|-> 	static const char xdigs_upper[16] = "0123456789ABCDEF";
#  250|   
#  251|   	/*

Error: GCC_ANALYZER_WARNING (CWE-404): [#def103]
lttng-ust-2.14.0/src/common/snprintf/vfprintf.c:385:29: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
lttng-ust-2.14.0/src/common/snprintf/vfprintf.c:373:9: acquire_resource: 'va_copy' called here
lttng-ust-2.14.0/src/common/snprintf/vfprintf.c:385:29: throw: if 'ust_safe_mbrtowc' throws an exception...
lttng-ust-2.14.0/src/common/snprintf/vfprintf.c:385:29: danger: missing call to 'va_end' to match 'va_copy' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  383|   	for (;;) {
#  384|   		cp = fmt;
#  385|-> 		while ((n = ust_safe_mbrtowc(&wc, fmt, MB_CUR_MAX, &ps)) > 0) {
#  386|   			fmt += n;
#  387|   			if (wc == '%') {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def104]
lttng-ust-2.14.0/src/common/ustcomm.c:966:9: warning[-Wanalyzer-null-argument]: use of NULL 'field_name' where non-null expected
lttng-ust-2.14.0/src/common/ustcomm.c:1209:5: enter_function: entry to 'serialize_one_field'
lttng-ust-2.14.0/src/common/ustcomm.c:1221:12: branch_false: following 'false' branch (when 'prev_field_name_p' is NULL)...
lttng-ust-2.14.0/src/common/ustcomm.c:1223:74: branch_false: ...to here
lttng-ust-2.14.0/src/common/ustcomm.c:1223:15: call_function: calling 'serialize_one_type' from 'serialize_one_field'
#  964|   
#  965|   	/* Serialize enum field. */
#  966|-> 	strncpy(tag_field_name, field_name, LTTNG_UST_ABI_SYM_NAME_LEN);
#  967|   	tag_field_name[LTTNG_UST_ABI_SYM_NAME_LEN - 1] = '\0';
#  968|   	strncat(tag_field_name,

Error: GCC_ANALYZER_WARNING (CWE-688): [#def105]
lttng-ust-2.14.0/src/common/ustcomm.c:983:9: warning[-Wanalyzer-null-argument]: use of NULL 'field_name' where non-null expected
lttng-ust-2.14.0/src/common/ustcomm.c:1209:5: enter_function: entry to 'serialize_one_field'
lttng-ust-2.14.0/src/common/ustcomm.c:1221:12: branch_false: following 'false' branch (when 'prev_field_name_p' is NULL)...
lttng-ust-2.14.0/src/common/ustcomm.c:1223:74: branch_false: ...to here
lttng-ust-2.14.0/src/common/ustcomm.c:1223:15: call_function: calling 'serialize_one_type' from 'serialize_one_field'
#  981|   		return ret;
#  982|   
#  983|-> 	strncpy(uf->name, field_name, LTTNG_UST_ABI_SYM_NAME_LEN);
#  984|   	uf->name[LTTNG_UST_ABI_SYM_NAME_LEN - 1] = '\0';
#  985|   	uf->type.atype = lttng_ust_ctl_atype_variant_nestable;

Error: CPPCHECK_WARNING (CWE-457): [#def106]
lttng-ust-2.14.0/src/lib/lttng-ust-common/lttng-ust-urcu.c:426: error[uninitvar]: Uninitialized variable: chunk->used
#  424|   
#  425|   		/* Skip fully used chunks. */
#  426|-> 		if (chunk->used == chunk->capacity) {
#  427|   			continue;
#  428|   		}

Error: CPPCHECK_WARNING (CWE-457): [#def107]
lttng-ust-2.14.0/src/lib/lttng-ust-common/lttng-ust-urcu.c:494: error[uninitvar]: Uninitialized variable: chunk->capacity
#  492|   		if (rcu_reader_reg < (struct lttng_ust_urcu_reader *) &chunk->readers[0])
#  493|   			continue;
#  494|-> 		if (rcu_reader_reg >= (struct lttng_ust_urcu_reader *) &chunk->readers[chunk->capacity])
#  495|   			continue;
#  496|   		return chunk;

Error: CPPCHECK_WARNING (CWE-457): [#def108]
lttng-ust-2.14.0/src/lib/lttng-ust-common/lttng-ust-urcu.c:697: warning[uninitvar]: Uninitialized variable: chunk->capacity
#  695|   		size_t spot_idx;
#  696|   
#  697|-> 		for (spot_idx = 0; spot_idx < chunk->capacity; spot_idx++) {
#  698|   			struct lttng_ust_urcu_reader *reader = &chunk->readers[spot_idx];
#  699|   

Error: COMPILER_WARNING (CWE-563): [#def109]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c: scope_hint: In function 'lttng_ust_ctl_get_mmap_base'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:117:17: warning[-Wunused-value]: statement with no effect
#  117 |                 true; \
#      |                 ^~~~
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1762:13: note: in expansion of macro 'sigbus_begin'
# 1762 |         if (sigbus_begin())
#      |             ^~~~~~~~~~~~
#  115|   		/* SIGBUS. */ \
#  116|   		CMM_STORE_SHARED(lttng_ust_sigbus_state.jmp_ready, 0); \
#  117|-> 		true; \
#  118|   	} \
#  119|   	cmm_barrier(); \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:308:22: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(336, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:291:5: enter_function: entry to 'lttng_ust_ctl_create_event'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:300:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:303:22: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_create_event'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:304:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:306:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:315:15: throw: if 'ustcomm_send_app_cmd' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:308:22: danger: 'calloc(336, 1)' leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
#  306|   	event_data->type = LTTNG_UST_ABI_OBJECT_TYPE_EVENT;
#  307|   	memset(&lum, 0, sizeof(lum));
#  308|-> 	lum.handle = channel_data->handle;
#  309|   	lum.cmd = LTTNG_UST_ABI_EVENT;
#  310|   	strncpy(lum.u.event.name, ev->name,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:360:22: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(336, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:337:5: enter_function: entry to 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:348:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:353:24: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:354:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:358:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:392:15: throw: if 'ustcomm_send_app_msg' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:360:22: danger: 'calloc(336, 1)' leaks here; was allocated at [(6)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/5)
#  358|   	context_data->type = LTTNG_UST_ABI_OBJECT_TYPE_CONTEXT;
#  359|   	memset(&lum, 0, sizeof(lum));
#  360|-> 	lum.handle = obj_data->handle;
#  361|   	lum.cmd = LTTNG_UST_ABI_CONTEXT;
#  362|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:392:15: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:337:5: enter_function: entry to 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:348:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:353:24: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:354:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:358:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:378:23: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:379:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:383:17: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:392:15: throw: if 'ustcomm_send_app_msg' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:392:15: danger: 'buf' leaks here; was allocated at [(12)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/11)
#  390|   		break;
#  391|   	}
#  392|-> 	ret = ustcomm_send_app_msg(sock, &lum);
#  393|   	if (ret)
#  394|   		goto end;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:397:23: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:337:5: enter_function: entry to 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:348:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:353:24: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:354:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:358:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:378:23: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:379:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:383:17: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:393:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:395:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:395:12: branch_true: following 'true' branch (when 'buf' is non-NULL)...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:397:23: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:397:23: throw: if 'ustcomm_send_unix_sock' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:397:23: danger: 'buf' leaks here; was allocated at [(12)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/11)
#  395|   	if (buf) {
#  396|   		/* send var len ctx_name */
#  397|-> 		ret = ustcomm_send_unix_sock(sock, buf, len);
#  398|   		if (ret < 0) {
#  399|   			goto end;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:406:15: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:337:5: enter_function: entry to 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:348:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:353:24: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:354:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:358:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:378:23: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:379:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:383:17: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:393:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:395:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:395:12: branch_true: following 'true' branch (when 'buf' is non-NULL)...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:397:23: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:398:20: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:401:21: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:401:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:406:15: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:406:15: throw: if 'ustcomm_recv_app_reply' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:406:15: danger: 'buf' leaks here; was allocated at [(12)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/11)
#  404|   		}
#  405|   	}
#  406|-> 	ret = ustcomm_recv_app_reply(sock, &lur, lum.handle, lum.cmd);
#  407|   	if (ret < 0) {
#  408|   		if (ret == -EINVAL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:413:32: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:337:5: enter_function: entry to 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:348:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:353:24: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:354:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:358:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:378:23: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:379:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:383:17: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:393:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:395:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:395:12: branch_true: following 'true' branch (when 'buf' is non-NULL)...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:397:23: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:398:20: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:401:21: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:401:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:406:15: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:407:12: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:408:20: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:408:20: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:413:32: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:413:32: throw: if 'ustcomm_shutdown_unix_sock' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:413:32: danger: 'buf' leaks here; was allocated at [(12)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/11)
#  411|   			 * now out-of-sync and needs to be shutdown.
#  412|   			 */
#  413|-> 			(void) ustcomm_shutdown_unix_sock(sock);
#  414|   		}
#  415|   		goto end;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:418:9: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:337:5: enter_function: entry to 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:348:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:353:24: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:354:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:358:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:378:23: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_add_context'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:379:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:383:17: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:393:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:395:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:395:12: branch_true: following 'true' branch (when 'buf' is non-NULL)...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:397:23: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:398:20: branch_false: following 'false' branch (when 'ret >= 0')...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:401:21: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:401:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:406:15: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:407:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:417:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:418:9: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:418:9: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:418:9: throw: if 'ust_safe_snprintf' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:418:9: danger: 'buf' leaks here; was allocated at [(12)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/11)
#  416|   	}
#  417|   	context_data->handle = -1;
#  418|-> 	DBG("Context created successfully");
#  419|   	*_context_data = context_data;
#  420|   	context_data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:655:15: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(336, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:633:5: enter_function: entry to 'lttng_ust_ctl_create_event_notifier_group'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:642:12: branch_false: following 'false' branch (when '_event_notifier_group_data' is non-NULL)...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:645:37: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_create_event_notifier_group'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:646:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:649:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:655:15: throw: if 'ustcomm_send_app_cmd' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:655:15: danger: 'calloc(336, 1)' leaks here; was allocated at [(6)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/5)
#  653|   	lum.cmd = LTTNG_UST_ABI_EVENT_NOTIFIER_GROUP_CREATE;
#  654|   
#  655|-> 	ret = ustcomm_send_app_cmd(sock, &lum, &lur);
#  656|   	if (ret)
#  657|   		goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:660:15: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(336, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:633:5: enter_function: entry to 'lttng_ust_ctl_create_event_notifier_group'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:642:12: branch_false: following 'false' branch (when '_event_notifier_group_data' is non-NULL)...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:645:37: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_create_event_notifier_group'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:646:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:649:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:656:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:660:15: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:660:15: throw: if 'ustcomm_send_fds_unix_sock' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:660:15: danger: 'calloc(336, 1)' leaks here; was allocated at [(6)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/5)
#  658|   
#  659|   	/* Send event_notifier notification pipe. */
#  660|-> 	len = ustcomm_send_fds_unix_sock(sock, &pipe_fd, 1);
#  661|   	if (len <= 0) {
#  662|   		ret = len;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:666:15: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(336, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:633:5: enter_function: entry to 'lttng_ust_ctl_create_event_notifier_group'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:642:12: branch_false: following 'false' branch (when '_event_notifier_group_data' is non-NULL)...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:645:37: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_create_event_notifier_group'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:646:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:649:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:656:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:660:15: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:661:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:666:15: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:666:15: throw: if 'ustcomm_recv_app_reply' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:666:15: danger: 'calloc(336, 1)' leaks here; was allocated at [(6)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/5)
#  664|   	}
#  665|   
#  666|-> 	ret = ustcomm_recv_app_reply(sock, &lur, lum.handle, lum.cmd);
#  667|   	if (ret)
#  668|   		goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:711:22: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(336, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:692:5: enter_function: entry to 'lttng_ust_ctl_create_event_notifier'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:702:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:705:31: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_create_event_notifier'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:706:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:709:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:715:15: throw: if 'ustcomm_send_app_cmd' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:711:22: danger: 'calloc(336, 1)' leaks here; was allocated at [(6)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/5)
#  709|   	event_notifier_data->type = LTTNG_UST_ABI_OBJECT_TYPE_EVENT_NOTIFIER;
#  710|   
#  711|-> 	lum.handle = event_notifier_group->handle;
#  712|   	lum.cmd = LTTNG_UST_ABI_EVENT_NOTIFIER_CREATE;
#  713|   	lum.u.var_len_cmd.cmd_len = sizeof(*event_notifier);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1017:44: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(336, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1000:5: enter_function: entry to 'lttng_ust_ctl_recv_channel_from_consumer'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1008:24: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_recv_channel_from_consumer'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1009:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1014:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1017:15: throw: if 'ustcomm_recv_unix_sock' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1017:44: danger: 'calloc(336, 1)' leaks here; was allocated at [(4)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/3)
# 1015|   
# 1016|   	/* recv mmap size */
# 1017|-> 	len = ustcomm_recv_unix_sock(sock, &channel_data->size,
# 1018|   			sizeof(channel_data->size));
# 1019|   	if (len != sizeof(channel_data->size)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1094:44: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(336, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1076:5: enter_function: entry to 'lttng_ust_ctl_recv_stream_from_consumer'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1084:23: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_recv_stream_from_consumer'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1085:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1090:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1094:15: throw: if 'ustcomm_recv_unix_sock' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1094:44: danger: 'calloc(336, 1)' leaks here; was allocated at [(4)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/3)
# 1092|   
# 1093|   	/* recv mmap size */
# 1094|-> 	len = ustcomm_recv_unix_sock(sock, &stream_data->size,
# 1095|   			sizeof(stream_data->size));
# 1096|   	if (len != sizeof(stream_data->size)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1258:21: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(336, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1241:5: enter_function: entry to 'lttng_ust_ctl_duplicate_ust_object_data'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1247:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1252:15: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_duplicate_ust_object_data'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1253:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1258:21: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1266:20: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1268:33: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1269:28: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1277:47: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1278:20: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1280:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1286:20: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1289:36: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1289:36: throw: if 'close' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1258:21: danger: 'calloc(336, 1)' leaks here; was allocated at [(6)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/5)
# 1256|   	}
# 1257|   
# 1258|-> 	obj->type = src->type;
# 1259|   	obj->handle = src->handle;
# 1260|   	obj->size = src->size;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def124]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1289:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1241:5: enter_function: entry to 'lttng_ust_ctl_duplicate_ust_object_data'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1247:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1252:15: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_duplicate_ust_object_data'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1253:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1258:21: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1266:20: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1268:33: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1268:33: acquire_resource: opened here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1269:28: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1277:47: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1278:20: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1280:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1286:20: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1289:36: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1289:36: throw: if 'close' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1289:36: danger: leaks here; was opened at [(12)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/11)
# 1287|   			int closeret;
# 1288|   
# 1289|-> 			closeret = close(obj->u.channel.wakeup_fd);
# 1290|   			if (closeret) {
# 1291|   				PERROR("close");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def125]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1331:36: warning[-Wanalyzer-fd-leak]: leak of file descriptor
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1241:5: enter_function: entry to 'lttng_ust_ctl_duplicate_ust_object_data'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1247:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1252:15: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_duplicate_ust_object_data'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1253:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1258:21: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1302:20: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1304:33: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1304:33: acquire_resource: opened here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1305:28: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1314:21: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1314:20: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1316:33: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1317:28: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1318:40: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1328:20: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1331:36: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1331:36: throw: if 'close' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1331:36: danger: leaks here; was opened at [(12)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/11)
# 1329|   			int closeret;
# 1330|   
# 1331|-> 			closeret = close(obj->u.stream.wakeup_fd);
# 1332|   			if (closeret) {
# 1333|   				PERROR("close");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1469:22: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(80, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1401:9: enter_function: entry to 'lttng_ust_ctl_create_channel'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1429:20: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1458:21: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1459:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1465:16: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_create_channel'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1466:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1469:22: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1469:22: throw: if the called function throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:1469:22: danger: 'calloc(80, 1)' leaks here; was allocated at [(8)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/7)
# 1467|   		return NULL;
# 1468|   
# 1469|-> 	chan->chan = transport->ops.priv->channel_create(transport_name, NULL,
# 1470|   			attr->subbuf_size, attr->num_subbuf,
# 1471|   			attr->switch_timer_interval,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2846:15: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(signature_len, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2802:5: enter_function: entry to 'lttng_ust_ctl_recv_register_event'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2820:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2822:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2822:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2824:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2824:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2827:25: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2836:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2840:29: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2843:18: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_recv_register_event'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2844:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2846:15: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2846:15: throw: if 'ustcomm_recv_unix_sock' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2846:15: danger: 'calloc(signature_len, 1)' leaks here; was allocated at [(13)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/12)
# 2844|   	if (!a_sign)
# 2845|   		return -ENOMEM;
# 2846|-> 	len = ustcomm_recv_unix_sock(sock, a_sign, signature_len);
# 2847|   	if (len > 0 && len != signature_len) {
# 2848|   		len = -EIO;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2868:23: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(fields_len, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2802:5: enter_function: entry to 'lttng_ust_ctl_recv_register_event'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2820:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2822:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2822:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2824:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2824:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2827:25: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2836:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2840:29: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2844:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2846:15: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2847:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2851:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2851:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2855:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2855:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2859:16: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2862:12: branch_true: following 'true' branch (when 'fields_len != 0')...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2863:28: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_recv_register_event'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2864:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2868:23: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2868:23: throw: if 'ustcomm_recv_unix_sock' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2868:23: danger: 'calloc(fields_len, 1)' leaks here; was allocated at [(23)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/22)
# 2866|   			goto signature_error;
# 2867|   		}
# 2868|-> 		len = ustcomm_recv_unix_sock(sock, a_fields, fields_len);
# 2869|   		if (len > 0 && len != fields_len) {
# 2870|   			len = -EIO;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2889:23: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(model_emf_uri_len, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2802:5: enter_function: entry to 'lttng_ust_ctl_recv_register_event'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2820:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2822:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2822:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2824:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2824:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2827:25: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2836:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2840:29: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2844:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2846:15: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2847:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2851:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2851:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2855:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2855:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2859:16: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2862:12: branch_false: following 'false' branch (when 'fields_len == 0')...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2882:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2882:12: branch_true: following 'true' branch (when 'model_emf_uri_len != 0')...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2884:35: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_recv_register_event'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2885:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2889:23: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2889:23: throw: if 'ustcomm_recv_unix_sock' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:2889:23: danger: 'calloc(model_emf_uri_len, 1)' leaks here; was allocated at [(25)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/24)
# 2887|   			goto fields_error;
# 2888|   		}
# 2889|-> 		len = ustcomm_recv_unix_sock(sock, a_model_emf_uri,
# 2890|   				model_emf_uri_len);
# 2891|   		if (len > 0 && len != model_emf_uri_len) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3113:23: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(entries_len, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3080:5: enter_function: entry to 'lttng_ust_ctl_recv_register_enum'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3092:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3094:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3094:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3096:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3096:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3099:25: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3104:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3109:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3109:12: branch_true: following 'true' branch (when 'entries_len != 0')...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3110:29: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_recv_register_enum'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3111:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3113:23: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3113:23: throw: if 'ustcomm_recv_unix_sock' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3113:23: danger: 'calloc(entries_len, 1)' leaks here; was allocated at [(15)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/14)
# 3111|   		if (!a_entries)
# 3112|   			return -ENOMEM;
# 3113|-> 		len = ustcomm_recv_unix_sock(sock, a_entries, entries_len);
# 3114|   		if (len > 0 && len != entries_len) {
# 3115|   			len = -EIO;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3198:23: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(fields_len, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3164:5: enter_function: entry to 'lttng_ust_ctl_recv_register_channel'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3176:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3178:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3178:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3180:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3180:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3183:25: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3187:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3192:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3192:12: branch_true: following 'true' branch (when 'fields_len != 0')...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3193:28: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_recv_register_channel'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3194:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3198:23: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3198:23: throw: if 'ustcomm_recv_unix_sock' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3198:23: danger: 'calloc(fields_len, 1)' leaks here; was allocated at [(14)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/13)
# 3196|   			goto alloc_error;
# 3197|   		}
# 3198|-> 		len = ustcomm_recv_unix_sock(sock, a_fields, fields_len);
# 3199|   		if (len > 0 && len != fields_len) {
# 3200|   			len = -EIO;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3358:9: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(24, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3285:9: enter_function: entry to 'lttng_ust_ctl_create_counter'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3302:12: branch_false: following 'false' branch (when 'nr_dimensions <= 4')...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3305:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3305:9: branch_true: following 'true' branch (when 'alloc_flags == 1')...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3314:9: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3344:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3350:19: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_create_counter'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3351:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3353:25: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_create_counter'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3354:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3356:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3361:21: branch_false: following 'false' branch (when 'i >= nr_dimensions')...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3361:21: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3364:21: branch_false: following 'false' branch (when 'i >= nr_dimensions')...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3379:28: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3379:28: throw: if the called function throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3358:9: danger: 'calloc(24, 1)' leaks here; was allocated at [(10)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/9)
# 3356|   	counter->attr->bitness = bitness;
# 3357|   	counter->attr->arithmetic = arithmetic;
# 3358|-> 	counter->attr->nr_dimensions = nr_dimensions;
# 3359|   	counter->attr->global_sum_step = global_sum_step;
# 3360|   	counter->attr->coalesce_hits = coalesce_hits;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3358:9: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(288, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3285:9: enter_function: entry to 'lttng_ust_ctl_create_counter'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3302:12: branch_false: following 'false' branch (when 'nr_dimensions <= 4')...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3305:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3305:9: branch_true: following 'true' branch (when 'alloc_flags == 1')...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3314:9: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3344:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3350:19: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_create_counter'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3351:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3353:25: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_create_counter'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3354:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3356:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3361:21: branch_false: following 'false' branch (when 'i >= nr_dimensions')...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3361:21: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3364:21: branch_false: following 'false' branch (when 'i >= nr_dimensions')...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3379:28: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3379:28: throw: if the called function throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3358:9: danger: 'calloc(288, 1)' leaks here; was allocated at [(14)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/13)
# 3356|   	counter->attr->bitness = bitness;
# 3357|   	counter->attr->arithmetic = arithmetic;
# 3358|-> 	counter->attr->nr_dimensions = nr_dimensions;
# 3359|   	counter->attr->global_sum_step = global_sum_step;
# 3360|   	counter->attr->coalesce_hits = coalesce_hits;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3414:9: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(64, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3394:5: enter_function: entry to 'lttng_ust_ctl_create_counter_data'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3404:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3408:24: call_function: inlined call to 'zmalloc' from 'lttng_ust_ctl_create_counter_data'
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3409:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3413:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust-ctl/ustctl.c:3414:9: danger: 'calloc(64, 1)' leaks here; was allocated at [(6)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/5)
# 3412|   	}
# 3413|   	counter_conf->len = sizeof(struct lttng_ust_abi_counter_conf);
# 3414|-> 	counter_conf->flags |= counter->attr->coalesce_hits ? LTTNG_UST_ABI_COUNTER_CONF_FLAG_COALESCE_HITS : 0;
# 3415|   	switch (counter->attr->arithmetic) {
# 3416|   	case LTTNG_UST_CTL_COUNTER_ARITHMETIC_MODULAR:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def135]
lttng-ust-2.14.0/src/lib/lttng-ust/event-notifier-notification.c:219:9: warning[-Wanalyzer-null-dereference]: dereference of NULL 'integer_type'
lttng-ust-2.14.0/src/lib/lttng-ust/event-notifier-notification.c:191:5: enter_function: entry to 'capture_sequence'
lttng-ust-2.14.0/src/lib/lttng-ust/event-notifier-notification.c:201:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/event-notifier-notification.c:204:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/event-notifier-notification.c:212:32: call_function: inlined call to 'lttng_ust_get_type_integer' from 'capture_sequence'
lttng-ust-2.14.0/src/lib/lttng-ust/event-notifier-notification.c:219:9: danger: dereference of NULL 'integer_type'
#  217|   		goto end;
#  218|   	}
#  219|-> 	signedness = integer_type->signedness;
#  220|   	for (i = 0; i < output->u.sequence.nr_elem; i++) {
#  221|   		if (signedness) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def136]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-interpreter.c:262:31: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-interpreter.c:365:12: enter_function: entry to 'dynamic_get_index'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-interpreter.c:426:23: call_function: calling 'context_get_index' from 'dynamic_get_index'
#  260|   			ptr->ptr = &ptr->u.u64;
#  261|   		}
#  262|-> 		ptr->rev_bo = itype->reverse_byte_order;
#  263|   		break;
#  264|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def137]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-interpreter.c:686:58: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-interpreter.c:640:5: enter_function: entry to 'lttng_bytecode_interpret_format_output'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-interpreter.c:686:58: call_function: inlined call to 'lttng_ust_get_type_sequence' from 'lttng_bytecode_interpret_format_output'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-interpreter.c:686:58: danger: dereference of NULL '<unknown>'
#  684|   			output->u.sequence.ptr = *(const char **) (ax->u.ptr.ptr + sizeof(unsigned long));
#  685|   			output->u.sequence.nr_elem = *(unsigned long *) ax->u.ptr.ptr;
#  686|-> 			output->u.sequence.nested_type = lttng_ust_get_type_sequence(ax->u.ptr.field->type)->elem_type;
#  687|   			break;
#  688|   		case OBJECT_TYPE_ARRAY:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def138]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-interpreter.c:692:54: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-interpreter.c:640:5: enter_function: entry to 'lttng_bytecode_interpret_format_output'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-interpreter.c:692:54: call_function: inlined call to 'lttng_ust_get_type_array' from 'lttng_bytecode_interpret_format_output'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-interpreter.c:692:54: danger: dereference of NULL '<unknown>'
#  690|   			output->type = LTTNG_INTERPRETER_TYPE_SEQUENCE;
#  691|   			output->u.sequence.ptr = *(const char **) (ax->u.ptr.ptr + sizeof(unsigned long));
#  692|-> 			output->u.sequence.nr_elem = lttng_ust_get_type_array(ax->u.ptr.field->type)->length;
#  693|   			output->u.sequence.nested_type = lttng_ust_get_type_array(ax->u.ptr.field->type)->elem_type;
#  694|   			break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def139]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-interpreter.c:693:58: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-interpreter.c:640:5: enter_function: entry to 'lttng_bytecode_interpret_format_output'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-interpreter.c:692:54: call_function: inlined call to 'lttng_ust_get_type_array' from 'lttng_bytecode_interpret_format_output'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-interpreter.c:692:54: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-interpreter.c:693:58: call_function: inlined call to 'lttng_ust_get_type_array' from 'lttng_bytecode_interpret_format_output'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-interpreter.c:693:58: danger: dereference of NULL '<unknown>'
#  691|   			output->u.sequence.ptr = *(const char **) (ax->u.ptr.ptr + sizeof(unsigned long));
#  692|   			output->u.sequence.nr_elem = lttng_ust_get_type_array(ax->u.ptr.field->type)->length;
#  693|-> 			output->u.sequence.nested_type = lttng_ust_get_type_array(ax->u.ptr.field->type)->elem_type;
#  694|   			break;
#  695|   		case OBJECT_TYPE_SIGNED_ENUM:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:516:15: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(strlen(orig_name) + 6, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1398:33: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1398:33: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1413:39: call_function: calling 'specialize_app_context_lookup' from 'lttng_bytecode_specialize'
#  514|   	strcpy(name, "$app.");
#  515|   	strcat(name, orig_name);
#  516|-> 	idx = lttng_get_context_index(*pctx, name);
#  517|   	if (idx < 0) {
#  518|   		assert(lttng_context_is_app(name));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def141]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:652:29: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:652:29: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:652:29: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:652:29: danger: dereference of NULL '<unknown>'
#  650|   
#  651|   		case BYTECODE_OP_RETURN:
#  652|-> 			if (vstack_ax(stack)->type == REG_S64 ||
#  653|   					vstack_ax(stack)->type == REG_U64)
#  654|   				*(bytecode_opcode_t *) pc = BYTECODE_OP_RETURN_S64;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def142]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:659:29: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:659:29: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:659:29: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:659:29: danger: dereference of NULL '<unknown>'
#  657|   
#  658|   		case BYTECODE_OP_RETURN_S64:
#  659|-> 			if (vstack_ax(stack)->type != REG_S64 &&
#  660|   					vstack_ax(stack)->type != REG_U64) {
#  661|   				ERR("Unexpected register type\n");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def143]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:683:32: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:683:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:683:32: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:683:32: danger: dereference of NULL '<unknown>'
#  681|   			struct binary_op *insn = (struct binary_op *) pc;
#  682|   
#  683|-> 			switch(vstack_ax(stack)->type) {
#  684|   			default:
#  685|   				ERR("unknown register type\n");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def144]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:690:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1177:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1181:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:683:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:690:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:690:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:690:37: danger: dereference of NULL '<unknown>'
#  688|   
#  689|   			case REG_STRING:
#  690|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  691|   					break;
#  692|   				if (vstack_bx(stack)->type == REG_STAR_GLOB_STRING)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def145]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:698:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1226:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1230:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:683:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:698:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:698:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:698:37: danger: dereference of NULL '<unknown>'
#  696|   				break;
#  697|   			case REG_STAR_GLOB_STRING:
#  698|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  699|   					break;
#  700|   				insn->op = BYTECODE_OP_EQ_STAR_GLOB_STRING;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def146]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:704:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1237:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1241:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:683:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:704:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:704:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:704:37: danger: dereference of NULL '<unknown>'
#  702|   			case REG_S64:
#  703|   			case REG_U64:
#  704|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  705|   					break;
#  706|   				if (vstack_bx(stack)->type == REG_S64 ||

Error: GCC_ANALYZER_WARNING (CWE-476): [#def147]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:713:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1249:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1253:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:683:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:713:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:713:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:713:37: danger: dereference of NULL '<unknown>'
#  711|   				break;
#  712|   			case REG_DOUBLE:
#  713|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  714|   					break;
#  715|   				if (vstack_bx(stack)->type == REG_S64 ||

Error: GCC_ANALYZER_WARNING (CWE-476): [#def148]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:738:32: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:738:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:738:32: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:738:32: danger: dereference of NULL '<unknown>'
#  736|   			struct binary_op *insn = (struct binary_op *) pc;
#  737|   
#  738|-> 			switch(vstack_ax(stack)->type) {
#  739|   			default:
#  740|   				ERR("unknown register type\n");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def149]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:745:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1177:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1181:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:738:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:745:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:745:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:745:37: danger: dereference of NULL '<unknown>'
#  743|   
#  744|   			case REG_STRING:
#  745|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  746|   					break;
#  747|   				if (vstack_bx(stack)->type == REG_STAR_GLOB_STRING)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def150]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:753:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1226:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1230:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:738:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:753:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:753:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:753:37: danger: dereference of NULL '<unknown>'
#  751|   				break;
#  752|   			case REG_STAR_GLOB_STRING:
#  753|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  754|   					break;
#  755|   				insn->op = BYTECODE_OP_NE_STAR_GLOB_STRING;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def151]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:759:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1237:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1241:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:738:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:759:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:759:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:759:37: danger: dereference of NULL '<unknown>'
#  757|   			case REG_S64:
#  758|   			case REG_U64:
#  759|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  760|   					break;
#  761|   				if (vstack_bx(stack)->type == REG_S64 ||

Error: GCC_ANALYZER_WARNING (CWE-476): [#def152]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:768:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1249:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1253:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:738:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:768:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:768:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:768:37: danger: dereference of NULL '<unknown>'
#  766|   				break;
#  767|   			case REG_DOUBLE:
#  768|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  769|   					break;
#  770|   				if (vstack_bx(stack)->type == REG_S64 ||

Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:793:32: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:793:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:793:32: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:793:32: danger: dereference of NULL '<unknown>'
#  791|   			struct binary_op *insn = (struct binary_op *) pc;
#  792|   
#  793|-> 			switch(vstack_ax(stack)->type) {
#  794|   			default:
#  795|   				ERR("unknown register type\n");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def154]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:804:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1177:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1181:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:793:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:804:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:804:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:804:37: danger: dereference of NULL '<unknown>'
#  802|   				goto end;
#  803|   			case REG_STRING:
#  804|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  805|   					break;
#  806|   				insn->op = BYTECODE_OP_GT_STRING;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def155]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:810:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1237:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1241:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:793:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:810:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:810:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:810:37: danger: dereference of NULL '<unknown>'
#  808|   			case REG_S64:
#  809|   			case REG_U64:
#  810|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  811|   					break;
#  812|   				if (vstack_bx(stack)->type == REG_S64 ||

Error: GCC_ANALYZER_WARNING (CWE-476): [#def156]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:819:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1249:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1253:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:793:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:819:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:819:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:819:37: danger: dereference of NULL '<unknown>'
#  817|   				break;
#  818|   			case REG_DOUBLE:
#  819|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  820|   					break;
#  821|   				if (vstack_bx(stack)->type == REG_S64 ||

Error: GCC_ANALYZER_WARNING (CWE-476): [#def157]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:844:32: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:844:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:844:32: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:844:32: danger: dereference of NULL '<unknown>'
#  842|   			struct binary_op *insn = (struct binary_op *) pc;
#  843|   
#  844|-> 			switch(vstack_ax(stack)->type) {
#  845|   			default:
#  846|   				ERR("unknown register type\n");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def158]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:855:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1177:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1181:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:844:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:855:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:855:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:855:37: danger: dereference of NULL '<unknown>'
#  853|   				goto end;
#  854|   			case REG_STRING:
#  855|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  856|   					break;
#  857|   				insn->op = BYTECODE_OP_LT_STRING;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def159]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:861:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1237:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1241:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:844:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:861:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:861:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:861:37: danger: dereference of NULL '<unknown>'
#  859|   			case REG_S64:
#  860|   			case REG_U64:
#  861|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  862|   					break;
#  863|   				if (vstack_bx(stack)->type == REG_S64 ||

Error: GCC_ANALYZER_WARNING (CWE-476): [#def160]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:870:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1249:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1253:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:844:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:870:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:870:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:870:37: danger: dereference of NULL '<unknown>'
#  868|   				break;
#  869|   			case REG_DOUBLE:
#  870|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  871|   					break;
#  872|   				if (vstack_bx(stack)->type == REG_S64 ||

Error: GCC_ANALYZER_WARNING (CWE-476): [#def161]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:895:32: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:895:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:895:32: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:895:32: danger: dereference of NULL '<unknown>'
#  893|   			struct binary_op *insn = (struct binary_op *) pc;
#  894|   
#  895|-> 			switch(vstack_ax(stack)->type) {
#  896|   			default:
#  897|   				ERR("unknown register type\n");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def162]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:906:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1177:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1181:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:895:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:906:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:906:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:906:37: danger: dereference of NULL '<unknown>'
#  904|   				goto end;
#  905|   			case REG_STRING:
#  906|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  907|   					break;
#  908|   				insn->op = BYTECODE_OP_GE_STRING;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def163]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:912:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1237:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1241:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:895:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:912:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:912:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:912:37: danger: dereference of NULL '<unknown>'
#  910|   			case REG_S64:
#  911|   			case REG_U64:
#  912|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  913|   					break;
#  914|   				if (vstack_bx(stack)->type == REG_S64 ||

Error: GCC_ANALYZER_WARNING (CWE-476): [#def164]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:921:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1249:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1253:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:895:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:921:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:921:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:921:37: danger: dereference of NULL '<unknown>'
#  919|   				break;
#  920|   			case REG_DOUBLE:
#  921|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  922|   					break;
#  923|   				if (vstack_bx(stack)->type == REG_S64 ||

Error: GCC_ANALYZER_WARNING (CWE-476): [#def165]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:945:32: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:945:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:945:32: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:945:32: danger: dereference of NULL '<unknown>'
#  943|   			struct binary_op *insn = (struct binary_op *) pc;
#  944|   
#  945|-> 			switch(vstack_ax(stack)->type) {
#  946|   			default:
#  947|   				ERR("unknown register type\n");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def166]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:956:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1177:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1181:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:945:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:956:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:956:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:956:37: danger: dereference of NULL '<unknown>'
#  954|   				goto end;
#  955|   			case REG_STRING:
#  956|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  957|   					break;
#  958|   				insn->op = BYTECODE_OP_LE_STRING;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def167]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:962:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1237:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1241:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:945:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:962:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:962:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:962:37: danger: dereference of NULL '<unknown>'
#  960|   			case REG_S64:
#  961|   			case REG_U64:
#  962|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  963|   					break;
#  964|   				if (vstack_bx(stack)->type == REG_S64 ||

Error: GCC_ANALYZER_WARNING (CWE-476): [#def168]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:971:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1249:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1253:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:945:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:971:37: call_function: inlined call to 'vstack_bx' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:971:37: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:971:37: danger: dereference of NULL '<unknown>'
#  969|   				break;
#  970|   			case REG_DOUBLE:
#  971|-> 				if (vstack_bx(stack)->type == REG_UNKNOWN)
#  972|   					break;
#  973|   				if (vstack_bx(stack)->type == REG_S64 ||

Error: GCC_ANALYZER_WARNING (CWE-476): [#def169]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1025:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1165:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1169:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1021:29: call_function: inlined call to 'vstack_pop' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1025:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1025:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1025:25: danger: dereference of NULL '<unknown>'
# 1023|   				goto end;
# 1024|   			}
# 1025|-> 			vstack_ax(stack)->type = REG_S64;
# 1026|   			next_pc += sizeof(struct binary_op);
# 1027|   			break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def170]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1041:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1165:29: call_function: inlined call to 'vstack_push' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1169:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1037:29: call_function: inlined call to 'vstack_pop' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1041:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1041:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1041:25: danger: dereference of NULL '<unknown>'
# 1039|   				goto end;
# 1040|   			}
# 1041|-> 			vstack_ax(stack)->type = REG_S64;
# 1042|   			next_pc += sizeof(struct binary_op);
# 1043|   			break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def171]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1051:32: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1051:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1051:32: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1051:32: danger: dereference of NULL '<unknown>'
# 1049|   			struct unary_op *insn = (struct unary_op *) pc;
# 1050|   
# 1051|-> 			switch(vstack_ax(stack)->type) {
# 1052|   			default:
# 1053|   				ERR("unknown register type\n");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def172]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1076:32: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1076:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1076:32: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1076:32: danger: dereference of NULL '<unknown>'
# 1074|   			struct unary_op *insn = (struct unary_op *) pc;
# 1075|   
# 1076|-> 			switch(vstack_ax(stack)->type) {
# 1077|   			default:
# 1078|   				ERR("unknown register type\n");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def173]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1101:32: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1101:32: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1101:32: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1101:32: danger: dereference of NULL '<unknown>'
# 1099|   			struct unary_op *insn = (struct unary_op *) pc;
# 1100|   
# 1101|-> 			switch(vstack_ax(stack)->type) {
# 1102|   			default:
# 1103|   				ERR("unknown register type\n");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def174]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1264:33: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1264:33: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1264:33: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1264:33: danger: dereference of NULL '<unknown>'
# 1262|   			struct cast_op *insn = (struct cast_op *) pc;
# 1263|   
# 1264|-> 			switch (vstack_ax(stack)->type) {
# 1265|   			default:
# 1266|   				ERR("unknown register type\n");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def175]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1293:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1293:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1293:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1293:25: danger: dereference of NULL '<unknown>'
# 1291|   		{
# 1292|   			/* Pop 1, push 1 */
# 1293|-> 			vstack_ax(stack)->type = REG_S64;
# 1294|   			next_pc += sizeof(struct cast_op);
# 1295|   			break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def176]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1344:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1344:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1344:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1344:25: danger: dereference of NULL '<unknown>'
# 1342|   			struct load_op *insn = (struct load_op *) pc;
# 1343|   
# 1344|-> 			assert(vstack_ax(stack)->type == REG_PTR);
# 1345|   			/* Pop 1, push 1 */
# 1346|   			ret = specialize_load_field(vstack_ax(stack), insn);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def177]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1360:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1360:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1360:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1360:25: danger: dereference of NULL '<unknown>'
# 1358|   		{
# 1359|   			/* Pop 1, push 1 */
# 1360|-> 			vstack_ax(stack)->type = REG_S64;
# 1361|   			next_pc += sizeof(struct load_op);
# 1362|   			break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def178]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1371:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1371:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1371:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1371:25: danger: dereference of NULL '<unknown>'
# 1369|   		{
# 1370|   			/* Pop 1, push 1 */
# 1371|-> 			vstack_ax(stack)->type = REG_U64;
# 1372|   			next_pc += sizeof(struct load_op);
# 1373|   			break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def179]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1380:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1380:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1380:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1380:25: danger: dereference of NULL '<unknown>'
# 1378|   		{
# 1379|   			/* Pop 1, push 1 */
# 1380|-> 			vstack_ax(stack)->type = REG_STRING;
# 1381|   			next_pc += sizeof(struct load_op);
# 1382|   			break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def180]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1388:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:629:5: enter_function: entry to 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:641:39: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:643:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1388:25: call_function: inlined call to 'vstack_ax' from 'lttng_bytecode_specialize'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1388:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-specialize.c:1388:25: danger: dereference of NULL '<unknown>'
# 1386|   		{
# 1387|   			/* Pop 1, push 1 */
# 1388|-> 			vstack_ax(stack)->type = REG_DOUBLE;
# 1389|   			next_pc += sizeof(struct load_op);
# 1390|   			break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:92:16: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(352, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:77:5: enter_function: entry to 'merge_point_add_check'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:81:30: call_function: calling 'lttng_hash_mix' from 'merge_point_add_check'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:81:30: return_function: returning to 'merge_point_add_check' from 'lttng_hash_mix'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:88:16: call_function: inlined call to 'zmalloc' from 'merge_point_add_check'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:89:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:91:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:93:15: throw: if 'lttng_ust_lfht_add_unique' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:92:16: danger: 'calloc(352, 1)' leaks here; was allocated at [(16)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/15)
#   90|   		return -ENOMEM;
#   91|   	node->target_pc = target_pc;
#   92|-> 	memcpy(&node->stack, stack, sizeof(node->stack));
#   93|   	ret = lttng_ust_lfht_add_unique(ht, hash, lttng_hash_match,
#   94|   		(const char *) target_pc, &node->node);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def182]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1485:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1471:22: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1476:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1485:25: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1485:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1485:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1485:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1485:25: danger: dereference of NULL '<unknown>'
# 1483|   			break;
# 1484|   		default:
# 1485|-> 			ERR("Unexpected register type %d at end of bytecode\n",
# 1486|   				(int) vstack_ax(stack)->type);
# 1487|   			ret = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def183]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1507:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1496:22: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1501:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1501:17: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1505:17: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1507:25: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1507:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1507:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1507:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1507:25: danger: dereference of NULL '<unknown>'
# 1505|   		default:
# 1506|   		case REG_UNKNOWN:
# 1507|-> 			ERR("Unexpected register type %d at end of bytecode\n",
# 1508|   				(int) vstack_ax(stack)->type);
# 1509|   			ret = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def184]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1588:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1570:21: call_function: inlined call to 'vstack_pop' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1574:22: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1579:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1579:17: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1587:17: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1588:25: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1588:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1588:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1588:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1588:25: danger: dereference of NULL '<unknown>'
# 1586|   			break;
# 1587|   		default:
# 1588|-> 			ERR("Unexpected register type %d for operation\n",
# 1589|   				(int) vstack_ax(stack)->type);
# 1590|   			ret = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def185]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1624:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1606:21: call_function: inlined call to 'vstack_pop' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1610:22: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1615:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1615:17: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1623:17: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1624:25: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1624:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1624:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1624:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1624:25: danger: dereference of NULL '<unknown>'
# 1622|   			break;
# 1623|   		default:
# 1624|-> 			ERR("Unexpected register type %d for operation\n",
# 1625|   				(int) vstack_ax(stack)->type);
# 1626|   			ret = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def186]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1652:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1640:22: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1645:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1652:25: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1652:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1652:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1652:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1652:25: danger: dereference of NULL '<unknown>'
# 1650|   			break;
# 1651|   		default:
# 1652|-> 			ERR("Unexpected register type %d for operation\n",
# 1653|   				(int) vstack_ax(stack)->type);
# 1654|   			ret = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def187]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1677:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1667:22: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1672:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1672:17: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1676:17: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1677:25: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1677:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1677:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1677:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1677:25: danger: dereference of NULL '<unknown>'
# 1675|   			break;
# 1676|   		default:
# 1677|-> 			ERR("Unexpected register type %d for operation\n",
# 1678|   				(int) vstack_ax(stack)->type);
# 1679|   			ret = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def188]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1702:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1690:22: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1695:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1702:25: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1702:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1702:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1702:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1702:25: danger: dereference of NULL '<unknown>'
# 1700|   			break;
# 1701|   		default:
# 1702|-> 			ERR("Unexpected register type %d for operation\n",
# 1703|   				(int) vstack_ax(stack)->type);
# 1704|   			ret = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def189]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1727:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1715:22: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1720:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1727:25: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1727:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1727:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1727:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1727:25: danger: dereference of NULL '<unknown>'
# 1725|   		case REG_DOUBLE:
# 1726|   		default:
# 1727|-> 			ERR("Unexpected register type %d for operation\n",
# 1728|   				(int) vstack_ax(stack)->type);
# 1729|   			ret = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def190]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1750:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1741:22: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1746:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1746:17: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1749:17: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1750:25: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1750:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1750:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1750:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1750:25: danger: dereference of NULL '<unknown>'
# 1748|   			break;
# 1749|   		default:
# 1750|-> 			ERR("Incorrect register type %d for operation\n",
# 1751|   				(int) vstack_ax(stack)->type);
# 1752|   			ret = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def191]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1774:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1765:22: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1770:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1770:17: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1773:17: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1774:25: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1774:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1774:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1774:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1774:25: danger: dereference of NULL '<unknown>'
# 1772|   			break;
# 1773|   		default:
# 1774|-> 			ERR("Incorrect register type %d for operation\n",
# 1775|   				(int) vstack_ax(stack)->type);
# 1776|   			ret = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def192]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1811:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1793:29: call_function: calling 'merge_point_add_check' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1793:29: return_function: returning to 'exec_insn' from 'merge_point_add_check'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1795:20: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1800:22: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1806:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1806:17: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1810:17: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1811:25: call_function: calling 'lttng_ust_logging_debug_enabled' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1811:25: return_function: returning to 'exec_insn' from 'lttng_ust_logging_debug_enabled'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1811:25: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1811:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1811:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1811:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1811:25: danger: dereference of NULL '<unknown>'
# 1809|   			break;
# 1810|   		default:
# 1811|-> 			ERR("Incorrect register type %d for operation\n",
# 1812|   				(int) vstack_ax(stack)->type);
# 1813|   			ret = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def193]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1841:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1837:21: call_function: inlined call to 'vstack_push' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1841:17: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1841:17: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1841:17: danger: dereference of NULL '<unknown>'
# 1839|   			goto end;
# 1840|   		}
# 1841|-> 		vstack_ax(stack)->type = REG_UNKNOWN;
# 1842|   		next_pc += sizeof(struct load_op) + sizeof(struct field_ref);
# 1843|   		break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def194]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1853:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1849:21: call_function: inlined call to 'vstack_push' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1853:17: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1853:17: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1853:17: danger: dereference of NULL '<unknown>'
# 1851|   			goto end;
# 1852|   		}
# 1853|-> 		vstack_ax(stack)->type = REG_STRING;
# 1854|   		next_pc += sizeof(struct load_op) + sizeof(struct field_ref);
# 1855|   		break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def195]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1864:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1860:21: call_function: inlined call to 'vstack_push' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1864:17: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1864:17: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1864:17: danger: dereference of NULL '<unknown>'
# 1862|   			goto end;
# 1863|   		}
# 1864|-> 		vstack_ax(stack)->type = REG_S64;
# 1865|   		next_pc += sizeof(struct load_op) + sizeof(struct field_ref);
# 1866|   		break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def196]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1875:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1871:21: call_function: inlined call to 'vstack_push' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1875:17: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1875:17: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1875:17: danger: dereference of NULL '<unknown>'
# 1873|   			goto end;
# 1874|   		}
# 1875|-> 		vstack_ax(stack)->type = REG_DOUBLE;
# 1876|   		next_pc += sizeof(struct load_op) + sizeof(struct field_ref);
# 1877|   		break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def197]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1889:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1885:21: call_function: inlined call to 'vstack_push' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1889:17: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1889:17: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1889:17: danger: dereference of NULL '<unknown>'
# 1887|   			goto end;
# 1888|   		}
# 1889|-> 		vstack_ax(stack)->type = REG_STRING;
# 1890|   		next_pc += sizeof(struct load_op) + strlen(insn->data) + 1;
# 1891|   		break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def198]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1902:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1898:21: call_function: inlined call to 'vstack_push' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1902:17: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1902:17: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1902:17: danger: dereference of NULL '<unknown>'
# 1900|   			goto end;
# 1901|   		}
# 1902|-> 		vstack_ax(stack)->type = REG_STAR_GLOB_STRING;
# 1903|   		next_pc += sizeof(struct load_op) + strlen(insn->data) + 1;
# 1904|   		break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def199]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1913:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1909:21: call_function: inlined call to 'vstack_push' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1913:17: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1913:17: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1913:17: danger: dereference of NULL '<unknown>'
# 1911|   			goto end;
# 1912|   		}
# 1913|-> 		vstack_ax(stack)->type = REG_S64;
# 1914|   		next_pc += sizeof(struct load_op)
# 1915|   				+ sizeof(struct literal_numeric);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def200]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1925:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1921:21: call_function: inlined call to 'vstack_push' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1925:17: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1925:17: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1925:17: danger: dereference of NULL '<unknown>'
# 1923|   			goto end;
# 1924|   		}
# 1925|-> 		vstack_ax(stack)->type = REG_DOUBLE;
# 1926|   		next_pc += sizeof(struct load_op)
# 1927|   				+ sizeof(struct literal_double);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def201]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1947:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1935:22: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1940:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1947:25: branch_true: following 'true' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1947:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1947:25: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1947:25: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1947:25: danger: dereference of NULL '<unknown>'
# 1945|   			break;
# 1946|   		default:
# 1947|-> 			ERR("Incorrect register type %d for cast\n",
# 1948|   				(int) vstack_ax(stack)->type);
# 1949|   			ret = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def202]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1973:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1450:5: enter_function: entry to 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1969:21: call_function: inlined call to 'vstack_push' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1973:17: call_function: inlined call to 'vstack_ax' from 'exec_insn'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1973:17: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode-validator.c:1973:17: danger: dereference of NULL '<unknown>'
# 1971|   			goto end;
# 1972|   		}
# 1973|-> 		vstack_ax(stack)->type = REG_PTR;
# 1974|   		next_pc += sizeof(struct load_op);
# 1975|   		break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode.c:455:27: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(runtime_alloc_len, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode.c:430:5: enter_function: entry to 'link_bytecode'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode.c:440:12: branch_false: following 'false' branch (when 'bytecode' is non-NULL)...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode.c:443:13: call_function: inlined call to 'bytecode_is_linked' from 'link_bytecode'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode.c:443:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode.c:449:48: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode.c:450:19: call_function: inlined call to 'zmalloc' from 'link_bytecode'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode.c:451:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode.c:455:27: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode.c:462:15: throw: if 'lttng_bytecode_validate_load' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-bytecode.c:455:27: danger: 'calloc(runtime_alloc_len, 1)' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  453|   		goto alloc_error;
#  454|   	}
#  455|-> 	runtime->p.type = bytecode->type;
#  456|   	runtime->p.bc = bytecode;
#  457|   	runtime->p.pctx = ctx;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-events.c:458:15: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(56, 1)'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-events.c:2252:6: enter_function: entry to 'lttng_session_lazy_sync_event_enablers'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-events.c:2257:9: call_function: inlined call to 'lttng_session_sync_event_enablers' from 'lttng_session_lazy_sync_event_enablers'
#  456|   	_enum->desc = desc;
#  457|   
#  458|-> 	ret = ustcomm_register_enum(notify_socket,
#  459|   		session->priv->objd,
#  460|   		enum_name,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def205]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-events.c:505:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-events.c:2252:6: enter_function: entry to 'lttng_session_lazy_sync_event_enablers'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-events.c:2257:9: call_function: inlined call to 'lttng_session_sync_event_enablers' from 'lttng_session_lazy_sync_event_enablers'
#  503|   
#  504|   		tag_field_generic = lttng_ust_dynamic_type_tag_field();
#  505|-> 		enum_desc = lttng_ust_get_type_enum(tag_field_generic->type)->desc;
#  506|   		ret = lttng_enum_create(enum_desc, session);
#  507|   		if (ret && ret != -EEXIST) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-ust-comm.c:1006:15: warning[-Wanalyzer-malloc-leak]: leak of 'bytecode'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-ust-comm.c:950:5: enter_function: entry to 'handle_bytecode_recv'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-ust-comm.c:980:12: branch_false: following 'false' branch (when 'data_size <= 65536')...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-ust-comm.c:987:12: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-ust-comm.c:987:12: branch_false: following 'false' branch (when 'data_size >= reloc_offset')...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-ust-comm.c:995:20: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-ust-comm.c:995:20: call_function: inlined call to 'zmalloc' from 'handle_bytecode_recv'
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-ust-comm.c:996:12: branch_false: following 'false' branch...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-ust-comm.c:1001:9: branch_false: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-ust-comm.c:1006:15: throw: if 'ustcomm_recv_unix_sock' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust/lttng-ust-comm.c:1006:15: danger: 'bytecode' leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
# 1004|   	bytecode->type = type;
# 1005|   
# 1006|-> 	len = ustcomm_recv_unix_sock(sock, bytecode->bc.data, bytecode->bc.len);
# 1007|   	switch (handle_error(sock_info, len, bytecode->bc.len, bytecode_type_str(lum->cmd), &ret)) {
# 1008|   	case MSG_OK:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
lttng-ust-2.14.0/src/lib/lttng-ust/rculfhash-internal.h:165:17: warning[-Wanalyzer-malloc-leak]: leak of 'ht'
lttng-ust-2.14.0/src/lib/lttng-ust/rculfhash-internal.h:158:14: acquire_memory: allocated here
lttng-ust-2.14.0/src/lib/lttng-ust/rculfhash-internal.h:159:9: branch_true: following 'true' branch (when 'ht' is non-NULL)...
lttng-ust-2.14.0/src/lib/lttng-ust/rculfhash-internal.h:161:9: branch_true: ...to here
lttng-ust-2.14.0/src/lib/lttng-ust/rculfhash-internal.h:165:17: throw: if 'lttng_ust_lfht_get_count_order_ulong' throws an exception...
lttng-ust-2.14.0/src/lib/lttng-ust/rculfhash-internal.h:165:17: danger: 'ht' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  163|   	ht->min_nr_alloc_buckets = min_nr_alloc_buckets;
#  164|   	ht->min_alloc_buckets_order =
#  165|-> 		lttng_ust_lfht_get_count_order_ulong(min_nr_alloc_buckets);
#  166|   	ht->max_nr_buckets = max_nr_buckets;
#  167|   

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-140.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelttng-ust-2.14.0-4.fc44
store-results-to/tmp/tmpf4i1sn02/lttng-ust-2.14.0-4.fc44.tar.xz
time-created2026-01-08 19:34:19
time-finished2026-01-08 19:36:59
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpf4i1sn02/lttng-ust-2.14.0-4.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpf4i1sn02/lttng-ust-2.14.0-4.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9