libX11-1.8.12-2.fc44

List of Findings

Error: COMPILER_WARNING: [#def1]
libX11-1.8.12/include/X11/Xlibint.h:447:20: warning[-Wuse-after-free]: pointer may be used after 'reallocarray'
#  447 | #define Xfree(ptr) free((ptr))
#      |                    ^~~~~~~~~~~
libX11-1.8.12/src/xkb/XKBlibint.h:32: included_from: Included from here.
libX11-1.8.12/src/xkb/XKBMAlloc.c:36: included_from: Included from here.
libX11-1.8.12/src/reallocarray.h:39:5: note: call to 'reallocarray' here
#   39 |     reallocarray((ptr), ((n) == 0 ? 1 : (n)), size)
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  445|   #endif
#  446|   
#  447|-> #define Xfree(ptr) free((ptr))
#  448|   
#  449|   /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libX11-1.8.12/modules/im/ximcp/imCallbk.c:342:9: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:294:9: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:297:13: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:331:13: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:333:24: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:339:19: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:342:9: throw: if '_XimSetHeader' throws an exception...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:342:9: danger: 'buf' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  340|   	    buf_len = (INT16) blen;
#  341|   	}
#  342|-> 	_XimSetHeader((XPointer)buf, XIM_STR_CONVERSION_REPLY, 0, &buf_len);
#  343|   	buf_len -= XIM_HEADER_SIZE; /* added by _XimSetHeader (HACK) */
#  344|   	p = XIM_HEADER_SIZE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
libX11-1.8.12/modules/im/ximcp/imCallbk.c:472:28: warning[-Wanalyzer-malloc-leak]: leak of 'cbs.data.text'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:694:1: enter_function: entry to '_XimStatusDrawCallback'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:704:9: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:705:20: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:706:12: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:707:13: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:707:13: call_function: calling '_read_text_from_packet' from '_XimStatusDrawCallback'
#  470|   
#  471|   	    text->encoding_is_wchar = False;
#  472|-> 	    text->length = im->methods->ctstombs((XIM)im,
#  473|   					tmp_buf, tmp_len,
#  474|   					NULL, 0, &s); /* CT? HM */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
libX11-1.8.12/modules/im/ximcp/imCallbk.c:472:28: warning[-Wanalyzer-malloc-leak]: leak of 'cbs.text'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:565:1: enter_function: entry to '_XimPreeditDrawCallback'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:579:9: call_function: calling '_read_text_from_packet' from '_XimPreeditDrawCallback'
#  470|   
#  471|   	    text->encoding_is_wchar = False;
#  472|-> 	    text->length = im->methods->ctstombs((XIM)im,
#  473|   					tmp_buf, tmp_len,
#  474|   					NULL, 0, &s); /* CT? HM */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
libX11-1.8.12/modules/im/ximcp/imCallbk.c:472:28: warning[-Wanalyzer-malloc-leak]: leak of 'tmp_buf'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:455:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:462:24: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:463:8: branch_false: following 'false' branch (when 'text' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:465:24: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:467:24: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:467:12: branch_true: following 'true' branch (when 'tmp_buf' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:468:13: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:472:28: throw: if the called function throws an exception...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:472:28: danger: 'tmp_buf' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  470|   
#  471|   	    text->encoding_is_wchar = False;
#  472|-> 	    text->length = im->methods->ctstombs((XIM)im,
#  473|   					tmp_buf, tmp_len,
#  474|   					NULL, 0, &s); /* CT? HM */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
libX11-1.8.12/modules/im/ximcp/imCallbk.c:488:31: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:694:1: enter_function: entry to '_XimStatusDrawCallback'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:704:9: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:705:20: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:706:12: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:707:13: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:707:13: call_function: calling '_read_text_from_packet' from '_XimStatusDrawCallback'
#  486|                           int char_len;
#  487|   #endif
#  488|-> 			tmp = im->methods->ctstombs((XIM)im,
#  489|   					   tmp_buf, tmp_len,
#  490|   #ifndef NO_DEC_I18N_FIX

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
libX11-1.8.12/modules/im/ximcp/imCallbk.c:488:31: warning[-Wanalyzer-malloc-leak]: leak of 'cbs.data.text'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:694:1: enter_function: entry to '_XimStatusDrawCallback'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:704:9: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:705:20: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:706:12: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:707:13: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:707:13: call_function: calling '_read_text_from_packet' from '_XimStatusDrawCallback'
#  486|                           int char_len;
#  487|   #endif
#  488|-> 			tmp = im->methods->ctstombs((XIM)im,
#  489|   					   tmp_buf, tmp_len,
#  490|   #ifndef NO_DEC_I18N_FIX

Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
libX11-1.8.12/modules/im/ximcp/imCallbk.c:488:31: warning[-Wanalyzer-malloc-leak]: leak of 'cbs.text'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:565:1: enter_function: entry to '_XimPreeditDrawCallback'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:579:9: call_function: calling '_read_text_from_packet' from '_XimPreeditDrawCallback'
#  486|                           int char_len;
#  487|   #endif
#  488|-> 			tmp = im->methods->ctstombs((XIM)im,
#  489|   					   tmp_buf, tmp_len,
#  490|   #ifndef NO_DEC_I18N_FIX

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
libX11-1.8.12/modules/im/ximcp/imCallbk.c:533:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '*text.feedback + (long unsigned int)j * 8'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:455:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:462:24: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:463:8: branch_false: following 'false' branch (when 'text' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:465:24: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:467:12: branch_false: following 'false' branch (when 'tmp_buf' is NULL)...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:516:13: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:522:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:528:18: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:530:26: acquire_memory: this call could return NULL
libX11-1.8.12/modules/im/ximcp/imCallbk.c:532:16: branch_true: following 'true' branch (when 'i > 0')...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:533:46: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:533:13: danger: '*text.feedback + (long unsigned int)j * 8' could be NULL: unchecked value from [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
#  531|   	j = 0;
#  532|   	while (i > 0) {
#  533|-> 	    text->feedback[j] = (XIMFeedback)*(CARD32*)buf;
#  534|   	    buf += sz_CARD32;
#  535|   	    i -= sz_CARD32;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
libX11-1.8.12/modules/im/ximcp/imCallbk.c:581:9: warning[-Wanalyzer-malloc-leak]: leak of 'cbs.text'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:565:1: enter_function: entry to '_XimPreeditDrawCallback'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:579:9: call_function: calling '_read_text_from_packet' from '_XimPreeditDrawCallback'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:579:9: return_function: returning to '_XimPreeditDrawCallback' from '_read_text_from_packet'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:581:9: throw: if the called function throws an exception...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:581:9: danger: 'cbs.text' leaks here; was allocated at [(6)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/5)
#  579|   	_read_text_from_packet(im, proto, &cbs.text);
#  580|   
#  581|-> 	(*cb->callback)((XIC)ic, cb->client_data, (XPointer)&cbs);
#  582|   
#  583|   	_free_memory_for_text((XIMText*)cbs.text);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
libX11-1.8.12/modules/im/ximcp/imCallbk.c:713:9: warning[-Wanalyzer-malloc-leak]: leak of 'cbs.data.text'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:694:1: enter_function: entry to '_XimStatusDrawCallback'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:704:9: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:705:20: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:706:12: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:707:13: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imCallbk.c:707:13: call_function: calling '_read_text_from_packet' from '_XimStatusDrawCallback'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:707:13: return_function: returning to '_XimStatusDrawCallback' from '_read_text_from_packet'
libX11-1.8.12/modules/im/ximcp/imCallbk.c:713:9: throw: if the called function throws an exception...
libX11-1.8.12/modules/im/ximcp/imCallbk.c:713:9: danger: 'cbs.data.text' leaks here; was allocated at [(10)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/9)
#  711|   	}
#  712|   
#  713|-> 	(*cb->callback)((XIC)ic, cb->client_data, (XPointer)&cbs);
#  714|   
#  715|   	if (cbs.type == XIMTextType)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
libX11-1.8.12/modules/im/ximcp/imDefIc.c:357:19: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/modules/im/ximcp/imDefIc.c:314:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:314:8: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:343:8: branch_false: following 'false' branch (when 'n != 0')...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:346:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:353:17: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:353:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:357:19: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:357:19: throw: if '_XimMakeICAttrIDList' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:357:19: danger: 'buf' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  355|       buf_s = (CARD16 *)&buf[XIM_HEADER_SIZE];
#  356|   
#  357|->     makeid_name = _XimMakeICAttrIDList(ic, ic->private.proto.ic_resources,
#  358|   				ic->private.proto.ic_num_resources, arg,
#  359|   				&buf_s[3], &len, XIM_GETICVALUES);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
libX11-1.8.12/modules/im/ximcp/imDefIc.c:388:28: warning[-Wanalyzer-malloc-leak]: leak of 'preply'
libX11-1.8.12/modules/im/ximcp/imDefIc.c:314:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:314:8: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:343:8: branch_false: following 'false' branch (when 'n != 0')...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:346:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:353:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:357:19: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:361:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:362:20: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:371:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:375:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:380:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:382:19: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:382:19: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:383:17: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:383:16: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:386:17: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:387:26: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:388:28: throw: if '_XimRead' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:388:28: danger: 'preply' leaks here; was allocated at [(17)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/16)
#  386|   		buf_size = (int)len;
#  387|   		preply = Xmalloc(len);
#  388|-> 		ret_code = _XimRead(im, &len, preply, buf_size,
#  389|   				_XimGetICValuesCheck, (XPointer)ic);
#  390|   		if (ret_code != XIM_TRUE) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
libX11-1.8.12/modules/im/ximcp/imDefIc.c:720:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/modules/im/ximcp/imDefIc.c:685:37: branch_false: following 'false' branch (when 'arg' is NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:688:10: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:688:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:710:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:720:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:727:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:728:12: branch_false: following 'false' branch (when 'arg' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:732:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:733:12: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:734:25: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:734:25: branch_true: following 'true' branch (when 'buf_size != -2036')...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:734:25: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:734:25: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:734:16: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:737:13: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:720:21: throw: if '_XimEncodeICATTRIBUTE' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:720:21: danger: 'buf' leaks here; was allocated at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
#  718|       for (;;) {
#  719|   	data = &buf[buf_size];
#  720|-> 	if ((name = _XimEncodeICATTRIBUTE(ic, ic->private.proto.ic_resources,
#  721|   			ic->private.proto.ic_num_resources, arg, &arg_ret,
#  722|   			data, data_len, &ret_len, (XPointer)&ic_values,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
libX11-1.8.12/modules/im/ximcp/imDefIc.c:786:20: warning[-Wanalyzer-malloc-leak]: leak of 'preply'
libX11-1.8.12/modules/im/ximcp/imDefIc.c:685:37: branch_false: following 'false' branch (when 'arg' is NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:688:10: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:688:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:710:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:720:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:727:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:728:12: branch_true: following 'true' branch (when 'arg' is NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:748:5: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:750:8: branch_false: following 'false' branch (when 'total != 0')...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:761:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:769:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:774:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:775:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:777:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:781:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:783:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:783:15: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:784:20: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:785:18: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:786:20: throw: if '_XimRead' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:786:20: danger: 'preply' leaks here; was allocated at [(19)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/18)
#  784|   	buf_size = (int)len;
#  785|   	preply = Xmalloc(buf_size);
#  786|-> 	ret_code = _XimRead(im, &len, preply, buf_size,
#  787|   					_XimSetICValuesCheck, (XPointer)ic);
#  788|   	if (ret_code != XIM_TRUE) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
libX11-1.8.12/modules/im/ximcp/imDefIc.c:920:19: warning[-Wanalyzer-malloc-leak]: leak of 'preply'
libX11-1.8.12/modules/im/ximcp/imDefIc.c:904:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:905:20: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:917:12: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:918:13: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:919:22: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:920:19: throw: if '_XimRead' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:920:19: danger: 'preply' leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  918|   	    buf_size = len;
#  919|   	    preply = Xmalloc(buf_size);
#  920|-> 	    (void)_XimRead(im, &len, preply, buf_size,
#  921|   					_XimDestroyICCheck, (XPointer)ic);
#  922|   	    Xfree(preply);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1120:24: warning[-Wanalyzer-malloc-leak]: leak of 'preply'
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1095:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1098:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1105:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1107:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1112:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1114:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1114:15: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1115:13: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1115:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1118:13: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1119:22: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1120:24: throw: if '_XimRead' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1120:24: danger: 'preply' leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
# 1118|       	    buf_size = len;
# 1119|   	    preply = Xmalloc(buf_size);
# 1120|->     	    ret_code = _XimRead(im, &len, preply, buf_size,
# 1121|       					_XimResetICCheck, (XPointer)ic);
# 1122|       	    if (ret_code != XIM_TRUE) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1187:15: warning[-Wanalyzer-malloc-leak]: leak of 'new_commit'
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1167:8: branch_false: following 'false' branch (when 'len != 0')...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1170:20: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1170:8: branch_false: following 'false' branch (when 'commit' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1170:8: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1182:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1183:28: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1183:28: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1183:28: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1183:28: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1183:12: branch_false: following 'false' branch (when 'new_commit' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1187:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1187:15: throw: if the called function throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1187:15: danger: 'new_commit' leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
# 1185|   	    goto Error_On_Reset;
# 1186|   	}
# 1187|-> 	(void)im->methods->ctstombs((XIM)im, commit, len,
# 1188|   						new_commit, new_len, NULL);
# 1189|   	new_commit[new_len] = '\0';

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1245:15: warning[-Wanalyzer-malloc-leak]: leak of 'new_commit'
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1224:8: branch_false: following 'false' branch (when 'len != 0')...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1227:20: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1227:8: branch_false: following 'false' branch (when 'commit' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1227:8: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1239:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1241:33: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1241:33: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1240:12: branch_false: following 'false' branch (when 'new_commit' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1245:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1245:15: throw: if the called function throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1245:15: danger: 'new_commit' leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
# 1243|   	    goto Error_On_Reset;
# 1244|   	}
# 1245|-> 	(void)im->methods->ctstowcs((XIM)im, commit, len,
# 1246|   						new_commit, new_len, NULL);
# 1247|   	new_commit[new_len] = (wchar_t)'\0';

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1303:15: warning[-Wanalyzer-malloc-leak]: leak of 'new_commit'
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1283:8: branch_false: following 'false' branch (when 'len != 0')...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1286:20: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1286:8: branch_false: following 'false' branch (when 'commit' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1286:8: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1298:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1299:28: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1299:28: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1299:28: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1299:28: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1299:12: branch_false: following 'false' branch (when 'new_commit' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1303:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1303:15: throw: if the called function throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1303:15: danger: 'new_commit' leaks here; was allocated at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
# 1301|   	    goto Error_On_Reset;
# 1302|   	}
# 1303|-> 	(void)im->methods->ctstoutf8((XIM)im, commit, len,
# 1304|   						new_commit, new_len, NULL);
# 1305|   	new_commit[new_len] = '\0';

Error: GCC_ANALYZER_WARNING (CWE-131): [#def21]
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1461:17: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1445:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1449:10: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1449:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1452:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1452:8: branch_false: following 'false' branch (when 'ic' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1455:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1461:17: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1461:17: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1461:17: danger: assigned to 'XIMResourceList' {{aka 'struct <anonymous> *'}} here; 'sizeof (struct <anonymous>)' is '32'
# 1459|       num = im->core.ic_num_resources;
# 1460|       len = sizeof(XIMResource) * num;
# 1461|->     if (!(res = Xmalloc(len)))
# 1462|   	goto ErrorOnCreatingIC;
# 1463|       (void)memcpy((char *)res, (char *)im->core.ic_resources, len);

Error: GCC_ANALYZER_WARNING (CWE-131): [#def22]
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1489:17: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1445:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1449:10: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1449:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1452:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1452:8: branch_false: following 'false' branch (when 'ic' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1455:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1461:17: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1489:17: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1489:17: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1489:17: danger: assigned to 'XIMResourceList' {{aka 'struct <anonymous> *'}} here; 'sizeof (struct <anonymous>)' is '32'
# 1487|       num = im->private.proto.ic_num_inner_resources;
# 1488|       len = sizeof(XIMResource) * num;
# 1489|->     if (!(res = Xmalloc(len)))
# 1490|   	goto ErrorOnCreatingIC;
# 1491|       (void)memcpy((char *)res,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1496:5: warning[-Wanalyzer-malloc-leak]: leak of 'ic'
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1445:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1449:10: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1449:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1452:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1452:15: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1452:8: branch_false: following 'false' branch (when 'ic' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1455:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1461:17: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1489:17: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1496:5: throw: if '_XimSetICMode' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1496:5: danger: 'ic' leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
# 1494|       ic->private.proto.ic_num_inner_resources = num;
# 1495|   
# 1496|->     _XimSetICMode(ic->private.proto.ic_resources,
# 1497|   			ic->private.proto.ic_num_resources, input_style);
# 1498|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1496:5: warning[-Wanalyzer-malloc-leak]: leak of 'res'
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1445:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1449:10: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1449:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1452:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1452:8: branch_false: following 'false' branch (when 'ic' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1455:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1461:17: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1461:17: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1461:17: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1461:8: branch_false: following 'false' branch (when 'res' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1463:11: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1489:17: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1496:5: throw: if '_XimSetICMode' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1496:5: danger: 'res' leaks here; was allocated at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
# 1494|       ic->private.proto.ic_num_inner_resources = num;
# 1495|   
# 1496|->     _XimSetICMode(ic->private.proto.ic_resources,
# 1497|   			ic->private.proto.ic_num_resources, input_style);
# 1498|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1598:5: warning[-Wanalyzer-malloc-leak]: leak of 'ic'
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1445:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1449:10: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1449:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1452:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1452:15: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1452:8: branch_false: following 'false' branch (when 'ic' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1455:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1461:8: branch_true: following 'true' branch (when 'res' is NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1462:9: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1598:5: throw: if '_XimUnregisterFilter' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1598:5: danger: 'ic' leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
# 1596|   
# 1597|   ErrorOnCreatingIC:
# 1598|->     _XimUnregisterFilter(ic);
# 1599|   
# 1600|       Xfree(ic->private.proto.ic_resources);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1598:5: warning[-Wanalyzer-malloc-leak]: leak of 'res'
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1445:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1449:10: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1449:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1452:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1452:8: branch_false: following 'false' branch (when 'ic' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1455:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1461:17: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1461:17: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1461:17: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1461:8: branch_false: following 'false' branch (when 'res' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1463:11: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1489:8: branch_true: following 'true' branch (when 'res' is NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1490:9: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1598:5: throw: if '_XimUnregisterFilter' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIc.c:1598:5: danger: 'res' leaks here; was allocated at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
# 1596|   
# 1597|   ErrorOnCreatingIC:
# 1598|->     _XimUnregisterFilter(ic);
# 1599|   
# 1600|       Xfree(ic->private.proto.ic_resources);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:260:9: warning[-Wanalyzer-malloc-leak]: leak of 'locale_name[1]'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:392:1: enter_function: entry to '_XimPreConnect'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:407:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:36: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:423:16: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:58: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: call_function: calling '_XimPreConnectionIM' from '_XimPreConnect'
#  258|   
#  259|       for(;;) {
#  260|-> 	XIfEvent(display, &event, _CheckSNEvent, (XPointer)&window);
#  261|   	if((ev->type == SelectionNotify) && (window == ev->requestor))
#  262|   	    break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:260:9: warning[-Wanalyzer-malloc-leak]: leak of 'locale_name[3]'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:392:1: enter_function: entry to '_XimPreConnect'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:407:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:36: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:423:16: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:58: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: call_function: calling '_XimPreConnectionIM' from '_XimPreConnect'
#  258|   
#  259|       for(;;) {
#  260|-> 	XIfEvent(display, &event, _CheckSNEvent, (XPointer)&window);
#  261|   	if((ev->type == SelectionNotify) && (window == ev->requestor))
#  262|   	    break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:267:9: warning[-Wanalyzer-malloc-leak]: leak of 'locale_name[1]'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:392:1: enter_function: entry to '_XimPreConnect'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:407:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:36: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:423:16: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:58: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: call_function: calling '_XimPreConnectionIM' from '_XimPreConnect'
#  265|       if(ev->property == (Atom)None)
#  266|   	return False;
#  267|->     if( XGetWindowProperty( display, window, target, 0L, 1000000L,
#  268|   			    True, target, &actual_type, &actual_format,
#  269|   			    &nitems, &bytes_after,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:267:9: warning[-Wanalyzer-malloc-leak]: leak of 'locale_name[3]'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:392:1: enter_function: entry to '_XimPreConnect'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:407:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:36: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:423:16: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:58: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: call_function: calling '_XimPreConnectionIM' from '_XimPreConnect'
#  265|       if(ev->property == (Atom)None)
#  266|   	return False;
#  267|->     if( XGetWindowProperty( display, window, target, 0L, 1000000L,
#  268|   			    True, target, &actual_type, &actual_format,
#  269|   			    &nitems, &bytes_after,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:338:19: warning[-Wanalyzer-malloc-leak]: leak of 'locale_name[1]'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:392:1: enter_function: entry to '_XimPreConnect'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:407:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:36: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:423:16: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:58: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: call_function: calling '_XimPreConnectionIM' from '_XimPreConnect'
#  336|       if( (locale_name[3] = strdup(language)) == NULL )
#  337|   	goto Error;
#  338|->     if((locales = XInternAtom(display, XIM_LOCALES, True)) == (Atom)None)
#  339|   	goto Error;
#  340|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:338:19: warning[-Wanalyzer-malloc-leak]: leak of 'locale_name[2]'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:392:1: enter_function: entry to '_XimPreConnect'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:407:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:36: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:423:16: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:58: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: call_function: calling '_XimPreConnectionIM' from '_XimPreConnect'
#  336|       if( (locale_name[3] = strdup(language)) == NULL )
#  337|   	goto Error;
#  338|->     if((locales = XInternAtom(display, XIM_LOCALES, True)) == (Atom)None)
#  339|   	goto Error;
#  340|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:338:19: warning[-Wanalyzer-malloc-leak]: leak of 'locale_name[3]'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:392:1: enter_function: entry to '_XimPreConnect'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:407:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:36: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:423:16: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:58: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: call_function: calling '_XimPreConnectionIM' from '_XimPreConnect'
#  336|       if( (locale_name[3] = strdup(language)) == NULL )
#  337|   	goto Error;
#  338|->     if((locales = XInternAtom(display, XIM_LOCALES, True)) == (Atom)None)
#  339|   	goto Error;
#  340|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:341:5: warning[-Wanalyzer-malloc-leak]: leak of 'locale_name[1]'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:392:1: enter_function: entry to '_XimPreConnect'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:407:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:36: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:423:16: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:58: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: call_function: calling '_XimPreConnectionIM' from '_XimPreConnect'
#  339|   	goto Error;
#  340|   
#  341|->     XConvertSelection(display, selection, locales, locales, window,
#  342|   		      CurrentTime);
#  343|       if(!(_XimGetSelectionNotify(display, window, locales, &address)))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:341:5: warning[-Wanalyzer-malloc-leak]: leak of 'locale_name[2]'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:392:1: enter_function: entry to '_XimPreConnect'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:407:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:36: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:423:16: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:58: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: call_function: calling '_XimPreConnectionIM' from '_XimPreConnect'
#  339|   	goto Error;
#  340|   
#  341|->     XConvertSelection(display, selection, locales, locales, window,
#  342|   		      CurrentTime);
#  343|       if(!(_XimGetSelectionNotify(display, window, locales, &address)))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:341:5: warning[-Wanalyzer-malloc-leak]: leak of 'locale_name[3]'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:392:1: enter_function: entry to '_XimPreConnect'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:407:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:36: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:423:16: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:58: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: call_function: calling '_XimPreConnectionIM' from '_XimPreConnect'
#  339|   	goto Error;
#  340|   
#  341|->     XConvertSelection(display, selection, locales, locales, window,
#  342|   		      CurrentTime);
#  343|       if(!(_XimGetSelectionNotify(display, window, locales, &address)))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:348:9: warning[-Wanalyzer-malloc-leak]: leak of 'locale_name[3]'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:392:1: enter_function: entry to '_XimPreConnect'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:407:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:36: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:423:16: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:58: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: call_function: calling '_XimPreConnectionIM' from '_XimPreConnect'
#  346|       if((locale = _XimCheckLocaleName(im, address, strlen(address), locale_name,
#  347|   				     4)) == NULL) {
#  348|-> 	XFree((XPointer)address);
#  349|   	goto Error;
#  350|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:386:13: warning[-Wanalyzer-malloc-leak]: leak of 'locale_name[1]'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:392:1: enter_function: entry to '_XimPreConnect'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:407:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:36: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:423:16: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:58: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: call_function: calling '_XimPreConnectionIM' from '_XimPreConnect'
#  384|       for( i = 0; i < 4; i++ )
#  385|   	if( locale_name[i] != NULL )
#  386|-> 	    XFree( locale_name[i] );
#  387|       XDestroyWindow(display, window);
#  388|       return False;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:386:13: warning[-Wanalyzer-malloc-leak]: leak of 'locale_name[i]'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:392:1: enter_function: entry to '_XimPreConnect'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:407:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:36: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:410:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:416:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:423:16: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:58: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:424:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:427:12: call_function: calling '_XimPreConnectionIM' from '_XimPreConnect'
#  384|       for( i = 0; i < 4; i++ )
#  385|   	if( locale_name[i] != NULL )
#  386|-> 	    XFree( locale_name[i] );
#  387|       XDestroyWindow(display, window);
#  388|       return False;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:632:28: warning[-Wanalyzer-malloc-leak]: leak of 'preply'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:589:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:592:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:592:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:595:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:619:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:621:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:624:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:626:18: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:626:18: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:627:16: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:627:15: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:630:17: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:631:26: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:632:28: throw: if '_XimRead' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:632:28: danger: 'preply' leaks here; was allocated at [(13)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/12)
#  630|   		buf_size = len;
#  631|   		preply = Xmalloc(buf_size);
#  632|-> 		ret_code = _XimRead(im, &len, preply, buf_size, _XimAllRecv, 0);
#  633|   		if(ret_code != XIM_TRUE) {
#  634|   		    Xfree(preply);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:775:28: warning[-Wanalyzer-malloc-leak]: leak of 'preply'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:763:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:764:9: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:765:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:767:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:771:11: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:772:16: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:772:15: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:773:17: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:774:26: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:775:28: throw: if '_XimRead' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:775:28: danger: 'preply' leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
#  773|   		buf_size = len;
#  774|   		preply = Xmalloc(buf_size);
#  775|-> 		ret_code = _XimRead(im, &len, preply, buf_size,
#  776|   						 _XimDisconnectCheck, 0);
#  777|   		Xfree(preply);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:851:24: warning[-Wanalyzer-malloc-leak]: leak of 'preply'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:828:8: branch_false: following 'false' branch (when 'locale_len <= 255')...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:830:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:837:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:839:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:843:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:845:14: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:845:14: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:846:12: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:846:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:849:13: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:850:22: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:851:24: throw: if '_XimRead' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:851:24: danger: 'preply' leaks here; was allocated at [(11)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/10)
#  849|   	    buf_size = len;
#  850|   	    preply = Xmalloc(buf_size);
#  851|-> 	    ret_code = _XimRead(im, &len, preply, buf_size,
#  852|   					_XimOpenCheck, 0);
#  853|   	    if(ret_code != XIM_TRUE) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:970:24: warning[-Wanalyzer-malloc-leak]: leak of 'preply'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:947:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:950:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:956:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:958:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:962:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:964:14: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:964:14: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:965:12: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:965:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:968:13: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:969:22: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:970:24: throw: if '_XimRead' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:970:24: danger: 'preply' leaks here; was allocated at [(11)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/10)
#  968|   	    buf_size = len;
#  969|   	    preply = Xmalloc(buf_size);
#  970|-> 	    ret_code = _XimRead(im, &len, preply, buf_size, _XimCloseCheck, 0);
#  971|   	    if(ret_code != XIM_TRUE) {
#  972|   		Xfree(preply);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1301:21: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1301:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1307:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1308:12: branch_false: following 'false' branch (when 'arg' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1312:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1313:12: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1314:25: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1314:25: branch_false: following 'false' branch (when 'buf_size == -2040')...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1314:25: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1314:25: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1314:16: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1317:13: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1301:21: throw: if '_XimEncodeIMATTRIBUTE' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1301:21: danger: 'buf' leaks here; was allocated at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
# 1299|       for (;;) {
# 1300|   	data = &buf[buf_size];
# 1301|-> 	if ((name = _XimEncodeIMATTRIBUTE(im, im->core.im_resources,
# 1302|   		im->core.im_num_resources, arg, &arg_ret, data, data_len,
# 1303|   		&ret_len, (XPointer)&im_values, XIM_SETIMVALUES))) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1345:16: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1301:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1307:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1308:12: branch_true: following 'true' branch (when 'arg' is NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1328:5: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1330:8: branch_false: following 'false' branch (when 'total != 0')...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1337:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1342:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1343:12: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1343:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1345:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1345:16: danger: dereference of NULL 'arg'
# 1343|   	if (buf != tmp_buf)
# 1344|   	    Xfree(buf);
# 1345|-> 	return arg->name;
# 1346|       }
# 1347|       _XimFlush(im);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1361:24: warning[-Wanalyzer-malloc-leak]: leak of 'preply'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1301:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1307:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1330:8: branch_false: following 'false' branch (when 'total != 0')...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1337:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1342:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1347:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1348:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1351:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1353:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1355:14: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1355:14: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1356:12: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1356:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1359:13: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1360:22: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1361:24: throw: if '_XimRead' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1361:24: danger: 'preply' leaks here; was allocated at [(15)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/14)
# 1359|   	    buf_size = (int)len;
# 1360|   	    preply = Xmalloc(buf_size);
# 1361|-> 	    ret_code = _XimRead(im, &len, reply, buf_size,
# 1362|   					_XimSetIMValuesCheck, 0);
# 1363|   	    if(ret_code != XIM_TRUE) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1365:24: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1301:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1307:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1330:8: branch_false: following 'false' branch (when 'total != 0')...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1337:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1342:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1347:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1348:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1351:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1353:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1355:14: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1355:14: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1356:12: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1356:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1359:13: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1363:15: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1364:17: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1365:24: danger: dereference of NULL 'arg'
# 1363|   	    if(ret_code != XIM_TRUE) {
# 1364|   		Xfree(preply);
# 1365|-> 		return arg->name;
# 1366|   	    }
# 1367|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1369:16: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1301:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1307:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1330:8: branch_false: following 'false' branch (when 'total != 0')...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1337:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1342:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1347:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1348:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1351:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1353:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1355:14: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1355:14: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1369:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1369:16: danger: dereference of NULL 'arg'
# 1367|   	}
# 1368|       } else
# 1369|-> 	return arg->name;
# 1370|       buf_s = (CARD16 *)((char *)preply + XIM_HEADER_SIZE);
# 1371|       if (*((CARD8 *)preply) == XIM_ERROR) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1371:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'preply'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1301:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1307:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1330:8: branch_false: following 'false' branch (when 'total != 0')...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1337:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1342:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1347:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1348:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1351:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1353:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1355:14: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1355:14: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1356:12: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1356:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1359:13: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1360:22: acquire_memory: this call could return NULL
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1363:15: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1371:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1371:9: danger: 'preply' could be NULL: unchecked value from [(15)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/14)
# 1369|   	return arg->name;
# 1370|       buf_s = (CARD16 *)((char *)preply + XIM_HEADER_SIZE);
# 1371|->     if (*((CARD8 *)preply) == XIM_ERROR) {
# 1372|   	_XimProcError(im, 0, (XPointer)&buf_s[3]);
# 1373|   	if(reply != preply)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def50]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1371:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*(CARD8 *)preply'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1301:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1307:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1330:8: branch_false: following 'false' branch (when 'total != 0')...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1337:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1342:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1347:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1348:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1351:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1353:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1355:14: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1355:14: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1356:12: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1356:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1359:13: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1363:15: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1371:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1371:9: danger: use of uninitialized value '*(CARD8 *)preply' here
# 1369|   	return arg->name;
# 1370|       buf_s = (CARD16 *)((char *)preply + XIM_HEADER_SIZE);
# 1371|->     if (*((CARD8 *)preply) == XIM_ERROR) {
# 1372|   	_XimProcError(im, 0, (XPointer)&buf_s[3]);
# 1373|   	if(reply != preply)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1375:16: warning[-Wanalyzer-null-dereference]: dereference of NULL 'arg'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1301:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1307:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1330:8: branch_false: following 'false' branch (when 'total != 0')...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1337:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1342:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1347:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1348:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1351:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1371:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1372:40: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1373:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1375:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1375:16: danger: dereference of NULL 'arg'
# 1373|   	if(reply != preply)
# 1374|   	    Xfree(preply);
# 1375|-> 	return arg->name;
# 1376|       }
# 1377|       if(reply != preply)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1473:19: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1460:8: branch_false: following 'false' branch (when 'n != 0')...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1463:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1469:17: branch_true: following 'true' branch (when 'buf_size != 0')...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1469:17: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1469:17: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1469:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1473:19: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1473:19: throw: if '_XimMakeIMAttrIDList' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1473:19: danger: 'buf' leaks here; was allocated at [(5)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/4)
# 1471|       buf_s = (CARD16 *)&buf[XIM_HEADER_SIZE];
# 1472|   
# 1473|->     makeid_name = _XimMakeIMAttrIDList(im, im->core.im_resources,
# 1474|   				im->core.im_num_resources, arg,
# 1475|   				&buf_s[2], &len, XIM_GETIMVALUES);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1502:28: warning[-Wanalyzer-malloc-leak]: leak of 'preply'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1460:8: branch_false: following 'false' branch (when 'n != 0')...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1463:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1469:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1473:19: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1477:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1478:20: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1485:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1489:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1494:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1496:18: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1496:18: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1497:16: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1497:15: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1500:17: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1501:26: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1502:28: throw: if '_XimRead' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1502:28: danger: 'preply' leaks here; was allocated at [(15)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/14)
# 1500|   		buf_size = len;
# 1501|   		preply = Xmalloc(buf_size);
# 1502|-> 		ret_code = _XimRead(im, &len, preply, buf_size,
# 1503|   						_XimGetIMValuesCheck, 0);
# 1504|   		if(ret_code != XIM_TRUE) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1748:10: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1701:1: enter_function: entry to '_XimEncodingNegotiation'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1717:10: call_function: calling '_XimSetEncodingByName' from '_XimEncodingNegotiation'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1717:10: return_function: returning to '_XimEncodingNegotiation' from '_XimSetEncodingByName'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1717:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1723:11: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1731:17: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1731:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1734:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1738:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1738:8: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1740:5: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1741:42: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1748:10: throw: if '_XimWrite' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1748:10: danger: 'buf' leaks here; was allocated at [(9)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/8)
# 1746|   
# 1747|       _XimSetHeader((XPointer)buf, XIM_ENCODING_NEGOTIATION, 0, &len);
# 1748|->     if (!(_XimWrite(im, len, (XPointer)buf))) {
# 1749|   	Xfree(buf);
# 1750|   	goto free_detail_ptr;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1748:10: warning[-Wanalyzer-malloc-leak]: leak of 'name_ptr'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1701:1: enter_function: entry to '_XimEncodingNegotiation'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1717:10: call_function: calling '_XimSetEncodingByName' from '_XimEncodingNegotiation'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1717:10: return_function: returning to '_XimEncodingNegotiation' from '_XimSetEncodingByName'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1717:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1723:11: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1731:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1734:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1738:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1739:15: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1740:5: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1741:42: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1748:10: throw: if '_XimWrite' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1748:10: danger: 'name_ptr' leaks here; was allocated at [(8)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/7)
# 1746|   
# 1747|       _XimSetHeader((XPointer)buf, XIM_ENCODING_NEGOTIATION, 0, &len);
# 1748|->     if (!(_XimWrite(im, len, (XPointer)buf))) {
# 1749|   	Xfree(buf);
# 1750|   	goto free_detail_ptr;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1752:5: warning[-Wanalyzer-malloc-leak]: leak of 'name_ptr'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1701:1: enter_function: entry to '_XimEncodingNegotiation'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1717:10: call_function: calling '_XimSetEncodingByName' from '_XimEncodingNegotiation'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1717:10: return_function: returning to '_XimEncodingNegotiation' from '_XimSetEncodingByName'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1717:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1723:11: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1731:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1734:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1738:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1739:15: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1740:5: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1741:42: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1748:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1752:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1752:5: throw: if '_XimFlush' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1752:5: danger: 'name_ptr' leaks here; was allocated at [(8)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/7)
# 1750|   	goto free_detail_ptr;
# 1751|       }
# 1752|->     _XimFlush(im);
# 1753|       Xfree(buf);
# 1754|       buf_size = BUFSIZE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1755:16: warning[-Wanalyzer-malloc-leak]: leak of 'name_ptr'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1701:1: enter_function: entry to '_XimEncodingNegotiation'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1717:10: call_function: calling '_XimSetEncodingByName' from '_XimEncodingNegotiation'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1717:10: return_function: returning to '_XimEncodingNegotiation' from '_XimSetEncodingByName'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1717:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1723:11: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1731:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1734:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1738:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1739:15: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1740:5: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1741:42: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1748:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1752:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1755:16: throw: if '_XimRead' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1755:16: danger: 'name_ptr' leaks here; was allocated at [(8)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/7)
# 1753|       Xfree(buf);
# 1754|       buf_size = BUFSIZE;
# 1755|->     ret_code = _XimRead(im, &len, (XPointer)reply, buf_size,
# 1756|   					_XimEncodingNegoCheck, 0);
# 1757|       if(ret_code == XIM_TRUE) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1765:24: warning[-Wanalyzer-malloc-leak]: leak of 'name_ptr'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1701:1: enter_function: entry to '_XimEncodingNegotiation'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1717:10: call_function: calling '_XimSetEncodingByName' from '_XimEncodingNegotiation'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1717:10: return_function: returning to '_XimEncodingNegotiation' from '_XimSetEncodingByName'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1717:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1723:11: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1731:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1734:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1738:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1739:15: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1740:5: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1741:42: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1748:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1752:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1757:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1759:14: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1759:14: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1760:12: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1760:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1763:13: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1765:24: throw: if '_XimRead' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1765:24: danger: 'name_ptr' leaks here; was allocated at [(8)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/7)
# 1763|   	    buf_size = len;
# 1764|   	    preply = Xmalloc(buf_size);
# 1765|-> 	    ret_code = _XimRead(im, &len, preply, buf_size,
# 1766|   					_XimEncodingNegoCheck, 0);
# 1767|   	    if(ret_code != XIM_TRUE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1765:24: warning[-Wanalyzer-malloc-leak]: leak of 'preply'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1701:1: enter_function: entry to '_XimEncodingNegotiation'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1717:10: call_function: calling '_XimSetEncodingByName' from '_XimEncodingNegotiation'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1717:10: return_function: returning to '_XimEncodingNegotiation' from '_XimSetEncodingByName'
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1717:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1723:11: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1731:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1734:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1738:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1738:8: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1740:5: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1741:42: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1748:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1752:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1757:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1759:14: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1759:14: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1760:12: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1760:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1763:13: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1764:22: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1765:24: throw: if '_XimRead' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefIm.c:1765:24: danger: 'preply' leaks here; was allocated at [(23)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/22)
# 1763|   	    buf_size = len;
# 1764|   	    preply = Xmalloc(buf_size);
# 1765|-> 	    ret_code = _XimRead(im, &len, preply, buf_size,
# 1766|   					_XimEncodingNegoCheck, 0);
# 1767|   	    if(ret_code != XIM_TRUE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:167:24: warning[-Wanalyzer-malloc-leak]: leak of 'preply'
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:153:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:155:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:159:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:161:14: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:161:14: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:162:12: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:162:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:165:13: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:166:22: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:167:24: throw: if '_XimRead' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:167:24: danger: 'preply' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  165|   	    buf_size = len;
#  166|   	    preply = Xmalloc(len);
#  167|-> 	    ret_code = _XimRead(im, &len, preply, buf_size,
#  168|   					_XimSyncCheck, (XPointer)ic);
#  169|   	    if(ret_code != XIM_TRUE) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:307:28: warning[-Wanalyzer-malloc-leak]: leak of 'preply'
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:257:1: enter_function: entry to '_XimForwardEventCore'
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:275:17: call_function: calling '_XimSetEventToWire' from '_XimForwardEventCore'
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:275:17: return_function: returning to '_XimForwardEventCore' from '_XimSetEventToWire'
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:275:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:278:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:291:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:293:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:295:8: branch_true: following 'true' branch (when 'sync != 0')...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:297:20: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:299:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:301:18: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:301:18: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:302:16: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:302:15: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:305:17: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:306:26: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:307:28: throw: if '_XimRead' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:307:28: danger: 'preply' leaks here; was allocated at [(19)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/18)
#  305|   		buf_size = len;
#  306|   		preply = Xmalloc(len);
#  307|-> 		ret_code = _XimRead(im, &len, preply, buf_size,
#  308|   					_XimSyncCheck, (XPointer)ic);
#  309|   		if(ret_code != XIM_TRUE) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:649:24: warning[-Wanalyzer-malloc-leak]: leak of 'preply'
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:635:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:637:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:641:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:643:14: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:643:14: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:644:12: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:644:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:647:13: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:648:22: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:649:24: throw: if '_XimRead' throws an exception...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:649:24: danger: 'preply' leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
#  647|   	    buf_size = len;
#  648|   	    preply = Xmalloc(len);
#  649|-> 	    ret_code = _XimRead(im, &len, preply, buf_size,
#  650|   				_XimTriggerNotifyCheck, (XPointer)ic);
#  651|   	    if(ret_code != XIM_TRUE) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:979:5: warning[-Wanalyzer-malloc-leak]: leak of 'keysym'
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:814:1: enter_function: entry to '_XimCommitRecv'
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:827:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:832:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:832:15: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:836:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:836:15: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:837:14: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:837:14: call_function: calling '_XimProcKeySym' from '_XimCommitRecv'
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:837:14: return_function: returning to '_XimCommitRecv' from '_XimProcKeySym'
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:837:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:841:46: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:840:14: call_function: calling '_XimProcCommit' from '_XimCommitRecv'
#  977|   	 + sizeof(CARD16);		/* sizeof type */
#  978|   
#  979|->     _XimSetHeader((XPointer)buf, XIM_ERROR, 0, &len);
#  980|       if (!(_XimWrite(im, len, (XPointer)buf)))
#  981|   	return False;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:980:10: warning[-Wanalyzer-malloc-leak]: leak of 'keysym'
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:814:1: enter_function: entry to '_XimCommitRecv'
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:827:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:832:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:832:15: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:836:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:836:15: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:837:14: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:837:14: call_function: calling '_XimProcKeySym' from '_XimCommitRecv'
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:837:14: return_function: returning to '_XimCommitRecv' from '_XimProcKeySym'
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:837:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:841:46: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:840:14: call_function: calling '_XimProcCommit' from '_XimCommitRecv'
#  978|   
#  979|       _XimSetHeader((XPointer)buf, XIM_ERROR, 0, &len);
#  980|->     if (!(_XimWrite(im, len, (XPointer)buf)))
#  981|   	return False;
#  982|       _XimFlush(im);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:982:5: warning[-Wanalyzer-malloc-leak]: leak of 'keysym'
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:814:1: enter_function: entry to '_XimCommitRecv'
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:827:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:832:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:832:15: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:836:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:836:15: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:837:14: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:837:14: call_function: calling '_XimProcKeySym' from '_XimCommitRecv'
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:837:14: return_function: returning to '_XimCommitRecv' from '_XimProcKeySym'
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:837:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:841:46: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imDefLkup.c:840:14: call_function: calling '_XimProcCommit' from '_XimCommitRecv'
#  980|       if (!(_XimWrite(im, len, (XPointer)buf)))
#  981|   	return False;
#  982|->     _XimFlush(im);
#  983|       return True;
#  984|   }

Error: GCC_ANALYZER_WARNING (CWE-122): [#def66]
libX11-1.8.12/modules/im/ximcp/imExten.c:325:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libX11-1.8.12/modules/im/ximcp/imExten.c:416:1: enter_function: entry to '_XimExtension'
libX11-1.8.12/modules/im/ximcp/imExten.c:430:17: call_function: calling '_XimCheckExtensionListSize' from '_XimExtension'
libX11-1.8.12/modules/im/ximcp/imExten.c:430:17: return_function: returning to '_XimExtension' from '_XimCheckExtensionListSize'
libX11-1.8.12/modules/im/ximcp/imExten.c:430:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imExten.c:433:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:439:17: branch_false: following 'false' branch (when 'buf_len == 0')...
libX11-1.8.12/modules/im/ximcp/imExten.c:439:17: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:439:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imExten.c:443:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:445:5: call_function: calling '_XimSetExtensionList' from '_XimExtension'
#  323|       for (i = 0; i < n; i++) {
#  324|   	len = extensions[i].name_len;
#  325|-> 	buf[0] = (BYTE)len;
#  326|   	(void)strcpy((char *)&buf[1], extensions[i].name);
#  327|   	len += sizeof(BYTE);

Error: GCC_ANALYZER_WARNING (CWE-122): [#def67]
libX11-1.8.12/modules/im/ximcp/imExten.c:443:5: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libX11-1.8.12/modules/im/ximcp/imExten.c:416:1: enter_function: entry to '_XimExtension'
libX11-1.8.12/modules/im/ximcp/imExten.c:430:17: call_function: calling '_XimCheckExtensionListSize' from '_XimExtension'
libX11-1.8.12/modules/im/ximcp/imExten.c:430:17: return_function: returning to '_XimExtension' from '_XimCheckExtensionListSize'
libX11-1.8.12/modules/im/ximcp/imExten.c:430:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imExten.c:433:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:439:17: branch_false: following 'false' branch (when 'buf_len == 0')...
libX11-1.8.12/modules/im/ximcp/imExten.c:439:17: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:439:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imExten.c:443:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:443:5: danger: out-of-bounds write from byte 4 till byte 5 but region ends at byte 1
#  441|       buf_s = (CARD16 *)&buf[XIM_HEADER_SIZE];
#  442|   
#  443|->     buf_s[0] = im->private.proto.imid;	/* imid */
#  444|       buf_s[1] = len;			/* length of Extensions */
#  445|       _XimSetExtensionList((CARD8 *)&buf_s[2]);

Error: GCC_ANALYZER_WARNING (CWE-122): [#def68]
libX11-1.8.12/modules/im/ximcp/imExten.c:444:5: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
libX11-1.8.12/modules/im/ximcp/imExten.c:416:1: enter_function: entry to '_XimExtension'
libX11-1.8.12/modules/im/ximcp/imExten.c:430:17: call_function: calling '_XimCheckExtensionListSize' from '_XimExtension'
libX11-1.8.12/modules/im/ximcp/imExten.c:430:17: return_function: returning to '_XimExtension' from '_XimCheckExtensionListSize'
libX11-1.8.12/modules/im/ximcp/imExten.c:430:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imExten.c:433:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:439:17: branch_false: following 'false' branch (when 'buf_len == 0')...
libX11-1.8.12/modules/im/ximcp/imExten.c:439:17: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:439:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imExten.c:443:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:444:5: danger: out-of-bounds write from byte 6 till byte 7 but region ends at byte 1
#  442|   
#  443|       buf_s[0] = im->private.proto.imid;	/* imid */
#  444|->     buf_s[1] = len;			/* length of Extensions */
#  445|       _XimSetExtensionList((CARD8 *)&buf_s[2]);
#  446|   					/* extensions supported */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
libX11-1.8.12/modules/im/ximcp/imExten.c:451:5: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/modules/im/ximcp/imExten.c:416:1: enter_function: entry to '_XimExtension'
libX11-1.8.12/modules/im/ximcp/imExten.c:430:17: call_function: calling '_XimCheckExtensionListSize' from '_XimExtension'
libX11-1.8.12/modules/im/ximcp/imExten.c:430:17: return_function: returning to '_XimExtension' from '_XimCheckExtensionListSize'
libX11-1.8.12/modules/im/ximcp/imExten.c:430:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imExten.c:433:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:439:17: branch_false: following 'false' branch (when 'buf_len == 0')...
libX11-1.8.12/modules/im/ximcp/imExten.c:439:17: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:439:17: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imExten.c:439:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imExten.c:443:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:445:5: call_function: calling '_XimSetExtensionList' from '_XimExtension'
libX11-1.8.12/modules/im/ximcp/imExten.c:445:5: return_function: returning to '_XimExtension' from '_XimSetExtensionList'
libX11-1.8.12/modules/im/ximcp/imExten.c:447:5: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imExten.c:448:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:451:5: throw: if '_XimSetHeader' throws an exception...
libX11-1.8.12/modules/im/ximcp/imExten.c:451:5: danger: 'buf' leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
#  449|   	 + sizeof(INT16);		/* sizeof length of extensions */
#  450|   
#  451|->     _XimSetHeader((XPointer)buf, XIM_QUERY_EXTENSION, 0, &len);
#  452|       if (!(_XimWrite(im, len, (XPointer)buf))) {
#  453|           XFree(buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
libX11-1.8.12/modules/im/ximcp/imExten.c:469:24: warning[-Wanalyzer-malloc-leak]: leak of 'preply'
libX11-1.8.12/modules/im/ximcp/imExten.c:416:1: enter_function: entry to '_XimExtension'
libX11-1.8.12/modules/im/ximcp/imExten.c:430:17: call_function: calling '_XimCheckExtensionListSize' from '_XimExtension'
libX11-1.8.12/modules/im/ximcp/imExten.c:430:17: return_function: returning to '_XimExtension' from '_XimCheckExtensionListSize'
libX11-1.8.12/modules/im/ximcp/imExten.c:430:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imExten.c:433:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:439:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imExten.c:443:16: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:445:5: call_function: calling '_XimSetExtensionList' from '_XimExtension'
libX11-1.8.12/modules/im/ximcp/imExten.c:445:5: return_function: returning to '_XimExtension' from '_XimSetExtensionList'
libX11-1.8.12/modules/im/ximcp/imExten.c:452:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imExten.c:456:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:461:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imExten.c:463:14: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:463:14: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imExten.c:464:12: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:464:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imExten.c:467:13: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imExten.c:468:22: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imExten.c:469:24: throw: if '_XimRead' throws an exception...
libX11-1.8.12/modules/im/ximcp/imExten.c:469:24: danger: 'preply' leaks here; was allocated at [(26)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/25)
#  467|       	    buf_size = len;
#  468|   	    preply = Xmalloc(buf_size);
#  469|->     	    ret_code = _XimRead(im, &len, preply, buf_size,
#  470|       					_XimQueryExtensionCheck, 0);
#  471|       	    if(ret_code != XIM_TRUE) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:64:5: warning[-Wanalyzer-malloc-leak]: leak of 'icb'
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:154:1: enter_function: entry to '_XimRegisterIMInstantiateCallback'
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:169:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:172:11: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:172:11: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:173:7: branch_false: following 'false' branch (when 'icb' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:175:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:175:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:182:17: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:185:5: call_function: calling 'MakeLocale' from '_XimRegisterIMInstantiateCallback'
#   62|       char	*language, *territory, *codeset;
#   63|   
#   64|->     _XGetLCValues( lcd, XlcNLanguage, &language, XlcNTerritory, &territory,
#   65|   		     XlcNCodeset, &codeset, NULL );
#   66|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:64:5: warning[-Wanalyzer-malloc-leak]: leak of 'modifiers'
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:154:1: enter_function: entry to '_XimRegisterIMInstantiateCallback'
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:169:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:172:11: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:173:7: branch_false: following 'false' branch (when 'icb' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:175:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:175:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:176:21: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:176:21: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:177:12: branch_false: following 'false' branch (when 'modifiers' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:182:17: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imInsClbk.c:185:5: call_function: calling 'MakeLocale' from '_XimRegisterIMInstantiateCallback'
#   62|       char	*language, *territory, *codeset;
#   63|   
#   64|->     _XGetLCValues( lcd, XlcNLanguage, &language, XlcNTerritory, &territory,
#   65|   		     XlcNCodeset, &codeset, NULL );
#   66|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
libX11-1.8.12/modules/im/ximcp/imInt.c:228:12: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/modules/im/ximcp/imInt.c:197:1: enter_function: entry to '_XimOpenIM'
libX11-1.8.12/modules/im/ximcp/imInt.c:207:8: branch_false: following 'false' branch (when 'im' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imInt.c:210:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imInt.c:224:29: call_function: calling '_XimMakeImName' from '_XimOpenIM'
libX11-1.8.12/modules/im/ximcp/imInt.c:224:29: return_function: returning to '_XimOpenIM' from '_XimMakeImName'
libX11-1.8.12/modules/im/ximcp/imInt.c:224:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imInt.c:224:7: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imInt.c:228:12: throw: if the called function throws an exception...
libX11-1.8.12/modules/im/ximcp/imInt.c:228:12: danger: '<unknown>' leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
#  226|   
#  227|       for(i= 0; ; i++) {
#  228|-> 	if(_XimImSportRec[i].checkprocessing(im)) {
#  229|   	    if(!(_XimImSportRec[i].im_open(im)))
#  230|   		goto Error4;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
libX11-1.8.12/modules/im/ximcp/imInt.c:228:12: warning[-Wanalyzer-malloc-leak]: leak of 'im'
libX11-1.8.12/modules/im/ximcp/imInt.c:197:1: enter_function: entry to '_XimOpenIM'
libX11-1.8.12/modules/im/ximcp/imInt.c:207:16: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imInt.c:207:8: branch_false: following 'false' branch (when 'im' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imInt.c:210:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imInt.c:224:29: call_function: calling '_XimMakeImName' from '_XimOpenIM'
libX11-1.8.12/modules/im/ximcp/imInt.c:224:29: return_function: returning to '_XimOpenIM' from '_XimMakeImName'
libX11-1.8.12/modules/im/ximcp/imInt.c:224:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imInt.c:224:7: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imInt.c:228:12: throw: if the called function throws an exception...
libX11-1.8.12/modules/im/ximcp/imInt.c:228:12: danger: 'im' leaks here; was allocated at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
#  226|   
#  227|       for(i= 0; ; i++) {
#  228|-> 	if(_XimImSportRec[i].checkprocessing(im)) {
#  229|   	    if(!(_XimImSportRec[i].im_open(im)))
#  230|   		goto Error4;

Error: GCC_ANALYZER_WARNING (CWE-131): [#def75]
libX11-1.8.12/modules/im/ximcp/imLcIc.c:168:11: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
libX11-1.8.12/modules/im/ximcp/imLcIc.c:153:7: branch_false: following 'false' branch (when 'ic' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIc.c:157:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIc.c:168:11: branch_false: following 'false' branch (when 'len == 0')...
libX11-1.8.12/modules/im/ximcp/imLcIc.c:168:11: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIc.c:168:11: danger: assigned to 'XIMResourceList' {{aka 'struct <anonymous> *'}} here; 'sizeof (struct <anonymous>)' is '32'
#  166|       num = im->core.ic_num_resources;
#  167|       len = sizeof(XIMResource) * num;
#  168|->     res = Xmalloc(len);
#  169|       if( res  == (XIMResourceList)NULL) {
#  170|   	goto Set_Error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
libX11-1.8.12/modules/im/ximcp/imLcIc.c:176:9: warning[-Wanalyzer-malloc-leak]: leak of 'ic'
libX11-1.8.12/modules/im/ximcp/imLcIc.c:152:10: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imLcIc.c:153:7: branch_false: following 'false' branch (when 'ic' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIc.c:157:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIc.c:168:11: branch_false: following 'false' branch (when 'len == 0')...
libX11-1.8.12/modules/im/ximcp/imLcIc.c:168:11: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIc.c:169:7: branch_false: following 'false' branch (when 'res' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIc.c:172:11: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIc.c:176:9: throw: if '_XimCheckLocalInputStyle' throws an exception...
libX11-1.8.12/modules/im/ximcp/imLcIc.c:176:9: danger: 'ic' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  174|       ic->private.local.ic_num_resources = num;
#  175|   
#  176|->      if(_XimCheckLocalInputStyle(ic, (XPointer)&ic_values, values,
#  177|   				 im->core.styles, res, num) == False) {
#  178|   	goto Set_Error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
libX11-1.8.12/modules/im/ximcp/imLcIc.c:176:9: warning[-Wanalyzer-malloc-leak]: leak of 'res'
libX11-1.8.12/modules/im/ximcp/imLcIc.c:153:7: branch_false: following 'false' branch (when 'ic' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIc.c:157:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIc.c:168:11: branch_false: following 'false' branch (when 'len == 0')...
libX11-1.8.12/modules/im/ximcp/imLcIc.c:168:11: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIc.c:168:11: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imLcIc.c:169:7: branch_false: following 'false' branch (when 'res' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIc.c:172:11: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIc.c:176:9: throw: if '_XimCheckLocalInputStyle' throws an exception...
libX11-1.8.12/modules/im/ximcp/imLcIc.c:176:9: danger: 'res' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  174|       ic->private.local.ic_num_resources = num;
#  175|   
#  176|->      if(_XimCheckLocalInputStyle(ic, (XPointer)&ic_values, values,
#  177|   				 im->core.styles, res, num) == False) {
#  178|   	goto Set_Error;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def78]
libX11-1.8.12/modules/im/ximcp/imLcIm.c:343:11: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'dir' where non-null expected
libX11-1.8.12/modules/im/ximcp/imLcIm.c:509:1: enter_function: entry to '_XimCreateDefaultTree'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:11: branch_true: following 'true' branch (when 'home' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:23: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:529:8: branch_false: following 'false' branch (when 'name' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:557:12: branch_true: following 'true' branch (when 'cachedir' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:557:30: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:557:13: branch_true: following 'true' branch (when 'c' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:558:27: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:558:27: acquire_memory: this call could return NULL
libX11-1.8.12/modules/im/ximcp/imLcIm.c:565:8: branch_false: following 'false' branch (when 'tmpcachedir' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:582:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:582:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:584:12: branch_false: following 'false' branch (when 'cachedir' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:589:19: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:589:19: call_function: calling '_XimCachedFileName' from '_XimCreateDefaultTree'
#  341|   /* fprintf (stderr, "XimCachedFileName for dir %s name %s intname %s encoding %s uid %d\n", dir, name, intname, encoding, uid); */
#  342|       if (stat (name, &st_name) == -1 || ! S_ISREG (st_name.st_mode)
#  343|->        || stat (dir, &st) == -1 || ! S_ISDIR (st.st_mode) || st.st_uid != uid
#  344|          || (st.st_mode & 0022) != 0000) {
#  345|          *res = NULL;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def79]
libX11-1.8.12/modules/im/ximcp/imLcIm.c:354:8: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'cachename' where non-null expected
libX11-1.8.12/modules/im/ximcp/imLcIm.c:509:1: enter_function: entry to '_XimCreateDefaultTree'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:11: branch_true: following 'true' branch (when 'home' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:23: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:529:8: branch_false: following 'false' branch (when 'name' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:557:12: branch_true: following 'true' branch (when 'cachedir' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:557:30: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:557:13: branch_false: following 'false' branch (when 'c' is NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:582:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:582:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:584:12: branch_false: following 'false' branch (when 'cachedir' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:589:19: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:589:19: call_function: calling '_XimCachedFileName' from '_XimCreateDefaultTree'
#  352|   
#  353|       if (len == 0 || dir [len-1] != '/')
#  354|->        sprintf (*res, "%s/%c%d_%03x_%08x_%08x", dir, _XimGetMyEndian(),
#  355|   		XIM_CACHE_VERSION, (unsigned int)sizeof (DefTree), hash, hash2);
#  356|       else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
libX11-1.8.12/modules/im/ximcp/imLcIm.c:354:54: warning[-Wanalyzer-malloc-leak]: leak of 'cachename'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:509:1: enter_function: entry to '_XimCreateDefaultTree'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:11: branch_true: following 'true' branch (when 'home' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:23: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:529:8: branch_false: following 'false' branch (when 'name' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:557:12: branch_true: following 'true' branch (when 'cachedir' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:557:30: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:557:13: branch_false: following 'false' branch (when 'c' is NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:582:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:582:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:584:12: branch_false: following 'false' branch (when 'cachedir' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:589:19: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:589:19: call_function: calling '_XimCachedFileName' from '_XimCreateDefaultTree'
#  352|   
#  353|       if (len == 0 || dir [len-1] != '/')
#  354|->        sprintf (*res, "%s/%c%d_%03x_%08x_%08x", dir, _XimGetMyEndian(),
#  355|   		XIM_CACHE_VERSION, (unsigned int)sizeof (DefTree), hash, hash2);
#  356|       else

Error: GCC_ANALYZER_WARNING (CWE-688): [#def81]
libX11-1.8.12/modules/im/ximcp/imLcIm.c:357:8: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'cachename' where non-null expected
libX11-1.8.12/modules/im/ximcp/imLcIm.c:509:1: enter_function: entry to '_XimCreateDefaultTree'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:11: branch_false: following 'false' branch (when 'home' is NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:521:28: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:529:8: branch_false: following 'false' branch (when 'name' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:566:19: call_function: calling '_XimCachedFileName' from '_XimCreateDefaultTree'
#  355|   		XIM_CACHE_VERSION, (unsigned int)sizeof (DefTree), hash, hash2);
#  356|       else
#  357|->        sprintf (*res, "%s%c%d_%03x_%08x_%08x", dir, _XimGetMyEndian(),
#  358|   		XIM_CACHE_VERSION, (unsigned int)sizeof (DefTree), hash, hash2);
#  359|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
libX11-1.8.12/modules/im/ximcp/imLcIm.c:357:53: warning[-Wanalyzer-malloc-leak]: leak of 'cachename'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:509:1: enter_function: entry to '_XimCreateDefaultTree'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:11: branch_false: following 'false' branch (when 'home' is NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:521:28: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:529:8: branch_false: following 'false' branch (when 'name' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:566:19: call_function: calling '_XimCachedFileName' from '_XimCreateDefaultTree'
#  355|   		XIM_CACHE_VERSION, (unsigned int)sizeof (DefTree), hash, hash2);
#  356|       else
#  357|->        sprintf (*res, "%s%c%d_%03x_%08x_%08x", dir, _XimGetMyEndian(),
#  358|   		XIM_CACHE_VERSION, (unsigned int)sizeof (DefTree), hash, hash2);
#  359|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
libX11-1.8.12/modules/im/ximcp/imLcIm.c:361:16: warning[-Wanalyzer-malloc-leak]: leak of 'cachename'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:509:1: enter_function: entry to '_XimCreateDefaultTree'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:11: branch_false: following 'false' branch (when 'home' is NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:521:28: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:529:8: branch_false: following 'false' branch (when 'name' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:566:19: call_function: calling '_XimCachedFileName' from '_XimCreateDefaultTree'
#  359|   
#  360|   /* fprintf (stderr, "-> %s\n", *res); */
#  361|->     if ( (fd = _XOpenFile (*res, O_RDONLY)) == -1)
#  362|          return -1;
#  363|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
libX11-1.8.12/modules/im/ximcp/imLcIm.c:376:8: warning[-Wanalyzer-malloc-leak]: leak of 'cachename'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:509:1: enter_function: entry to '_XimCreateDefaultTree'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:11: branch_false: following 'false' branch (when 'home' is NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:521:28: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:529:8: branch_false: following 'false' branch (when 'name' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:566:19: call_function: calling '_XimCachedFileName' from '_XimCreateDefaultTree'
#  374|          || (st.st_mtime < time (NULL) - 24*60*60 && ! isglobal)) {
#  375|   
#  376|->        close (fd);
#  377|          if (unlink (*res) != 0) {
#  378|              Xfree (*res);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
libX11-1.8.12/modules/im/ximcp/imLcIm.c:387:9: warning[-Wanalyzer-malloc-leak]: leak of 'cachename'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:509:1: enter_function: entry to '_XimCreateDefaultTree'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:11: branch_false: following 'false' branch (when 'home' is NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:521:28: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:529:8: branch_false: following 'false' branch (when 'name' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:566:19: call_function: calling '_XimCachedFileName' from '_XimCreateDefaultTree'
#  385|   	      fd, 0);
#  386|       if (m == NULL || m == MAP_FAILED) {
#  387|-> 	close (fd);
#  388|   	Xfree (*res);
#  389|   	*res = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
libX11-1.8.12/modules/im/ximcp/imLcIm.c:394:9: warning[-Wanalyzer-malloc-leak]: leak of 'cachename'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:509:1: enter_function: entry to '_XimCreateDefaultTree'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:11: branch_false: following 'false' branch (when 'home' is NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:521:28: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:529:8: branch_false: following 'false' branch (when 'name' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:566:19: call_function: calling '_XimCachedFileName' from '_XimCreateDefaultTree'
#  392|       if (*size < sizeof (struct _XimCacheStruct) || m->id != XIM_CACHE_MAGIC) {
#  393|   	munmap (m, sizeof (struct _XimCacheStruct));
#  394|-> 	close (fd);
#  395|   	fprintf (stderr, "Ignoring broken XimCache %s\n", *res);
#  396|   	Xfree (*res);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
libX11-1.8.12/modules/im/ximcp/imLcIm.c:402:9: warning[-Wanalyzer-malloc-leak]: leak of 'cachename'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:509:1: enter_function: entry to '_XimCreateDefaultTree'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:11: branch_false: following 'false' branch (when 'home' is NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:521:28: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:529:8: branch_false: following 'false' branch (when 'name' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:566:19: call_function: calling '_XimCachedFileName' from '_XimCreateDefaultTree'
#  400|       if (m->version != XIM_CACHE_VERSION) {
#  401|   	munmap (m, sizeof (struct _XimCacheStruct));
#  402|-> 	close (fd);
#  403|   	if (unlink (*res) != 0) {
#  404|   	    Xfree (*res);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
libX11-1.8.12/modules/im/ximcp/imLcIm.c:536:28: warning[-Wanalyzer-malloc-leak]: leak of 'name'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:11: branch_true: following 'true' branch (when 'home' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:23: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:529:8: branch_true: following 'true' branch (when 'name' is NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:530:12: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:530:12: branch_true: following 'true' branch (when 'home' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:531:30: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:531:30: branch_false: following 'false' branch (when 'hl == -11')...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:531:30: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:531:30: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:532:16: branch_true: following 'true' branch (when 'name' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:534:17: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:536:28: throw: if 'open' throws an exception...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:536:28: danger: 'name' leaks here; was allocated at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
#  534|               	strcpy(name, home);
#  535|               	strcpy(name + hl, "/.XCompose");
#  536|-> 		if ( (fd = _XOpenFile (name, O_RDONLY)) < 0) {
#  537|   		    Xfree (name);
#  538|   		    name = tmpname = NULL;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def89]
libX11-1.8.12/modules/im/ximcp/imLcIm.c:540:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(name, 0)'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:11: branch_true: following 'true' branch (when 'home' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:23: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:529:8: branch_true: following 'true' branch (when 'name' is NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:530:12: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:530:12: branch_true: following 'true' branch (when 'home' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:531:30: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:531:30: branch_false: following 'false' branch (when 'hl == -11')...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:531:30: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:532:16: branch_true: following 'true' branch (when 'name' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:534:17: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:536:28: acquire_resource: opened here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:536:20: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:540:21: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:540:21: danger: 'open(name, 0)' leaks here; was opened at [(11)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/10)
#  538|   		    name = tmpname = NULL;
#  539|   		} else
#  540|-> 		    close (fd);
#  541|               }
#  542|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
libX11-1.8.12/modules/im/ximcp/imLcIm.c:540:21: warning[-Wanalyzer-malloc-leak]: leak of 'name'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:11: branch_true: following 'true' branch (when 'home' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:519:23: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:529:8: branch_true: following 'true' branch (when 'name' is NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:530:12: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:530:12: branch_true: following 'true' branch (when 'home' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:531:30: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:531:30: branch_false: following 'false' branch (when 'hl == -11')...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:531:30: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:531:30: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:532:16: branch_true: following 'true' branch (when 'name' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:534:17: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:536:20: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:540:21: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:540:21: throw: if 'close' throws an exception...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:540:21: danger: 'name' leaks here; was allocated at [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8)
#  538|   		    name = tmpname = NULL;
#  539|   		} else
#  540|-> 		    close (fd);
#  541|               }
#  542|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def91]
libX11-1.8.12/modules/im/ximcp/imLcIm.c:610:5: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(name, "r")'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:529:8: branch_false: following 'false' branch (when 'name' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:557:12: branch_true: following 'true' branch (when 'cachedir' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:557:30: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:557:13: branch_false: following 'false' branch (when 'c' is NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:582:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:604:17: acquire_resource: opened here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:604:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:610:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:610:5: throw: if '_XimParseStringFile' throws an exception...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:610:5: danger: 'fopen(name, "r")' leaks here; was opened at [(10)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/9)
#  608|           return;
#  609|       }
#  610|->     _XimParseStringFile(fp, im);
#  611|       fclose(fp);
#  612|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
libX11-1.8.12/modules/im/ximcp/imLcIm.c:610:5: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(name, "r")'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:529:8: branch_false: following 'false' branch (when 'name' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:557:12: branch_true: following 'true' branch (when 'cachedir' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:557:30: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:557:13: branch_false: following 'false' branch (when 'c' is NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:582:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:604:17: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:604:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:610:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:610:5: throw: if '_XimParseStringFile' throws an exception...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:610:5: danger: 'fopen(name, "r")' leaks here; was allocated at [(10)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/9)
#  608|           return;
#  609|       }
#  610|->     _XimParseStringFile(fp, im);
#  611|       fclose(fp);
#  612|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
libX11-1.8.12/modules/im/ximcp/imLcIm.c:610:5: warning[-Wanalyzer-malloc-leak]: leak of 'tmpcachedir'
libX11-1.8.12/modules/im/ximcp/imLcIm.c:529:8: branch_false: following 'false' branch (when 'name' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:551:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:557:12: branch_true: following 'true' branch (when 'cachedir' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:557:30: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:557:13: branch_true: following 'true' branch (when 'c' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:558:27: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:558:27: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:565:8: branch_false: following 'false' branch (when 'tmpcachedir' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:582:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:604:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:610:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imLcIm.c:610:5: throw: if '_XimParseStringFile' throws an exception...
libX11-1.8.12/modules/im/ximcp/imLcIm.c:610:5: danger: 'tmpcachedir' leaks here; was allocated at [(10)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/9)
#  608|           return;
#  609|       }
#  610|->     _XimParseStringFile(fp, im);
#  611|       fclose(fp);
#  612|   

Error: COMPILER_WARNING: [#def94]
libX11-1.8.12/modules/im/ximcp/imLcPrs.c:681:32: warning[-Wuse-after-free]: pointer 'old_178' may be used after 'realloc'
#  681 |                 if (old && top >= (DTIndex *) old && top < (DTIndex *) &old[oldsize])
#      |                            ~~~~^~~~~~~~~~~~~~~~~~
libX11-1.8.12/modules/im/ximcp/imLcPrs.c:39: included_from: Included from here.
libX11-1.8.12/include/X11/Xlibint.h:458:30: note: call to 'realloc' here
#  458 | # define Xrealloc(ptr, size) realloc((ptr), (size_t)((size) == 0 ? 1 : (size)))
#      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  679|   		/* Re-derive top after realloc() to avoid undefined behaviour
#  680|   		   (and crashes on architectures that track pointer bounds). */
#  681|-> 		if (old && top >= (DTIndex *) old && top < (DTIndex *) &old[oldsize])
#  682|   		    top = (DTIndex *) (((char *)new) + (((char *)top)-(char *)old));
#  683|   	    }

Error: COMPILER_WARNING: [#def95]
libX11-1.8.12/modules/im/ximcp/imLcPrs.c:681:72: warning[-Wuse-after-free]: pointer 'old_178' may be used after 'realloc'
#  681 |                 if (old && top >= (DTIndex *) old && top < (DTIndex *) &old[oldsize])
#      |                                                                        ^~~~~~~~~~~~~
libX11-1.8.12/include/X11/Xlibint.h:458:30: note: call to 'realloc' here
#  458 | # define Xrealloc(ptr, size) realloc((ptr), (size_t)((size) == 0 ? 1 : (size)))
#      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  679|   		/* Re-derive top after realloc() to avoid undefined behaviour
#  680|   		   (and crashes on architectures that track pointer bounds). */
#  681|-> 		if (old && top >= (DTIndex *) old && top < (DTIndex *) &old[oldsize])
#  682|   		    top = (DTIndex *) (((char *)new) + (((char *)top)-(char *)old));
#  683|   	    }

Error: COMPILER_WARNING: [#def96]
libX11-1.8.12/modules/im/ximcp/imLcPrs.c:682:70: warning[-Wuse-after-free]: pointer 'old_178' may be used after 'realloc'
#  682 |                     top = (DTIndex *) (((char *)new) + (((char *)top)-(char *)old));
#      |                                                        ~~~~~~~~~~~~~~^~~~~~~~~~~~~
libX11-1.8.12/include/X11/Xlibint.h:458:30: note: call to 'realloc' here
#  458 | # define Xrealloc(ptr, size) realloc((ptr), (size_t)((size) == 0 ? 1 : (size)))
#      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  680|   		   (and crashes on architectures that track pointer bounds). */
#  681|   		if (old && top >= (DTIndex *) old && top < (DTIndex *) &old[oldsize])
#  682|-> 		    top = (DTIndex *) (((char *)new) + (((char *)top)-(char *)old));
#  683|   	    }
#  684|   	    p = &b->tree[b->treeused];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1475:5: warning[-Wanalyzer-malloc-leak]: leak of 'res'
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1443:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1446:17: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1446:17: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1446:8: branch_false: following 'false' branch (when 'res' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1449:18: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1450:8: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1456:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1463:17: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1475:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1475:5: throw: if '_XIMCompileResourceList' throws an exception...
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1475:5: danger: 'res' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
# 1473|   	buf = (CARD16 *)((char *)buf + len);
# 1474|       }
# 1475|->     _XIMCompileResourceList(res, n);
# 1476|   
# 1477|       Xfree(im->core.im_resources);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1475:5: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1443:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1446:17: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1446:8: branch_false: following 'false' branch (when 'res' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1449:18: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1450:17: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1450:8: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1456:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1463:17: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1475:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1475:5: throw: if '_XIMCompileResourceList' throws an exception...
libX11-1.8.12/modules/im/ximcp/imRmAttr.c:1475:5: danger: 'tmp' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 1473|   	buf = (CARD16 *)((char *)buf + len);
# 1474|       }
# 1475|->     _XIMCompileResourceList(res, n);
# 1476|   
# 1477|       Xfree(im->core.im_resources);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:173:9: warning[-Wanalyzer-malloc-leak]: leak of 'tree'
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:162:7: branch_false: following 'false' branch (when 'ic' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:166:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:170:49: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:170:8: branch_false: following 'false' branch (when 'tree' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:172:40: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:224:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:227:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:173:9: danger: 'tree' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  171|   	goto Set_Error;
#  172|       if (! (ic->private.local.base.mb = Xmalloc(21)) )
#  173|-> 	goto Set_Error;
#  174|       if (! (ic->private.local.base.wc = Xmalloc(sizeof(wchar_t)*21)) )
#  175|   	goto Set_Error;

Error: GCC_ANALYZER_WARNING (CWE-131): [#def100]
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:193:15: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:162:7: branch_false: following 'false' branch (when 'ic' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:166:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:170:8: branch_false: following 'false' branch (when 'tree' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:172:40: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:172:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:174:40: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:174:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:176:42: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:176:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:178:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:193:15: branch_false: following 'false' branch (when 'len == 0')...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:193:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:193:15: danger: assigned to 'XIMResourceList' {{aka 'struct <anonymous> *'}} here; 'sizeof (struct <anonymous>)' is '32'
#  191|       num = im->core.ic_num_resources;
#  192|       len = sizeof(XIMResource) * num;
#  193|->     if((res = Xmalloc(len)) == (XIMResourceList)NULL) {
#  194|   	goto Set_Error;
#  195|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:201:8: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:162:7: branch_false: following 'false' branch (when 'ic' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:166:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:170:8: branch_false: following 'false' branch (when 'tree' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:172:40: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:172:40: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:172:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:174:40: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:174:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:176:42: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:176:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:178:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:193:15: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:201:8: throw: if '_XimCheckLocalInputStyle' throws an exception...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:201:8: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  199|   
#  200|       bzero((char *)&ic_values, sizeof(XimDefICValues));
#  201|->     if(_XimCheckLocalInputStyle(ic, (XPointer)&ic_values, values,
#  202|   				 im->core.styles, res, num) == False) {
#  203|   	goto Set_Error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:201:8: warning[-Wanalyzer-malloc-leak]: leak of 'ic'
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:162:14: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:162:7: branch_false: following 'false' branch (when 'ic' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:166:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:170:8: branch_false: following 'false' branch (when 'tree' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:172:40: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:172:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:174:40: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:174:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:176:42: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:176:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:178:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:193:15: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:201:8: throw: if '_XimCheckLocalInputStyle' throws an exception...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:201:8: danger: 'ic' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  199|   
#  200|       bzero((char *)&ic_values, sizeof(XimDefICValues));
#  201|->     if(_XimCheckLocalInputStyle(ic, (XPointer)&ic_values, values,
#  202|   				 im->core.styles, res, num) == False) {
#  203|   	goto Set_Error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:201:8: warning[-Wanalyzer-malloc-leak]: leak of 'res'
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:162:7: branch_false: following 'false' branch (when 'ic' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:166:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:170:8: branch_false: following 'false' branch (when 'tree' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:172:40: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:172:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:174:40: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:174:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:176:42: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:176:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:178:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:193:15: branch_false: following 'false' branch (when 'len == 0')...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:193:15: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:193:15: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:193:7: branch_false: following 'false' branch (when 'res' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:196:11: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:201:8: throw: if '_XimCheckLocalInputStyle' throws an exception...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:201:8: danger: 'res' leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
#  199|   
#  200|       bzero((char *)&ic_values, sizeof(XimDefICValues));
#  201|->     if(_XimCheckLocalInputStyle(ic, (XPointer)&ic_values, values,
#  202|   				 im->core.styles, res, num) == False) {
#  203|   	goto Set_Error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:201:8: warning[-Wanalyzer-malloc-leak]: leak of 'tree'
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:162:7: branch_false: following 'false' branch (when 'ic' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:166:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:170:49: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:170:8: branch_false: following 'false' branch (when 'tree' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:172:40: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:172:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:174:40: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:174:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:176:42: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:176:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:178:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:193:15: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:201:8: throw: if '_XimCheckLocalInputStyle' throws an exception...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:201:8: danger: 'tree' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  199|   
#  200|       bzero((char *)&ic_values, sizeof(XimDefICValues));
#  201|->     if(_XimCheckLocalInputStyle(ic, (XPointer)&ic_values, values,
#  202|   				 im->core.styles, res, num) == False) {
#  203|   	goto Set_Error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:227:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:162:7: branch_false: following 'false' branch (when 'ic' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:166:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:170:8: branch_false: following 'false' branch (when 'tree' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:172:40: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:172:40: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:172:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:174:40: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:174:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:175:9: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:224:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:227:5: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imThaiIc.c:227:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#  225|   	Xfree(ic->private.local.ic_resources);
#  226|       }
#  227|->     Xfree(ic);
#  228|       return((XIC)NULL);
#  229|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
libX11-1.8.12/modules/im/ximcp/imTrX.c:503:26: warning[-Wanalyzer-malloc-leak]: leak of 'spec'
libX11-1.8.12/modules/im/ximcp/imTrX.c:500:18: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imTrX.c:500:8: branch_false: following 'false' branch (when 'spec' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imTrX.c:503:26: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imTrX.c:503:26: throw: if 'XInternAtom' throws an exception...
libX11-1.8.12/modules/im/ximcp/imTrX.c:503:26: danger: 'spec' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  501|   	return False;
#  502|   
#  503|->     spec->improtocolid = XInternAtom(im->core.display, _XIM_PROTOCOL, False);
#  504|       spec->imconnectid  = XInternAtom(im->core.display, _XIM_XCONNECT, False);
#  505|       spec->immoredataid = XInternAtom(im->core.display, _XIM_MOREDATA, False);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
libX11-1.8.12/modules/im/ximcp/imTrX.c:504:26: warning[-Wanalyzer-malloc-leak]: leak of 'spec'
libX11-1.8.12/modules/im/ximcp/imTrX.c:500:18: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imTrX.c:500:8: branch_false: following 'false' branch (when 'spec' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imTrX.c:503:26: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imTrX.c:504:26: throw: if 'XInternAtom' throws an exception...
libX11-1.8.12/modules/im/ximcp/imTrX.c:504:26: danger: 'spec' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  502|   
#  503|       spec->improtocolid = XInternAtom(im->core.display, _XIM_PROTOCOL, False);
#  504|->     spec->imconnectid  = XInternAtom(im->core.display, _XIM_XCONNECT, False);
#  505|       spec->immoredataid = XInternAtom(im->core.display, _XIM_MOREDATA, False);
#  506|       spec->major_code = MAJOR_TRANSPORT_VERSION;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
libX11-1.8.12/modules/im/ximcp/imTrX.c:505:26: warning[-Wanalyzer-malloc-leak]: leak of 'spec'
libX11-1.8.12/modules/im/ximcp/imTrX.c:500:18: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imTrX.c:500:8: branch_false: following 'false' branch (when 'spec' is non-NULL)...
libX11-1.8.12/modules/im/ximcp/imTrX.c:503:26: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imTrX.c:505:26: throw: if 'XInternAtom' throws an exception...
libX11-1.8.12/modules/im/ximcp/imTrX.c:505:26: danger: 'spec' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  503|       spec->improtocolid = XInternAtom(im->core.display, _XIM_PROTOCOL, False);
#  504|       spec->imconnectid  = XInternAtom(im->core.display, _XIM_XCONNECT, False);
#  505|->     spec->immoredataid = XInternAtom(im->core.display, _XIM_MOREDATA, False);
#  506|       spec->major_code = MAJOR_TRANSPORT_VERSION;
#  507|       spec->minor_code = MINOR_TRANSPORT_VERSION;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
libX11-1.8.12/modules/im/ximcp/imTransR.c:188:14: warning[-Wanalyzer-malloc-leak]: leak of 'preply'
libX11-1.8.12/modules/im/ximcp/imTransR.c:268:1: enter_function: entry to '_XimFilterWaitEvent'
libX11-1.8.12/modules/im/ximcp/imTransR.c:278:16: call_function: inlined call to '_XimReadData' from '_XimFilterWaitEvent'
libX11-1.8.12/modules/im/ximcp/imTransR.c:278:16: call_function: inlined call to '_XimReadData' from '_XimFilterWaitEvent'
libX11-1.8.12/modules/im/ximcp/imTransR.c:279:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imTransR.c:281:14: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imTransR.c:281:14: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imTransR.c:282:12: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imTransR.c:282:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imTransR.c:285:13: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imTransR.c:286:22: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imTransR.c:287:24: call_function: inlined call to '_XimReadData' from '_XimFilterWaitEvent'
#  186|   
#  187|       while (data_len < packet_size) {
#  188|-> 	if (!(im->private.proto.read(im,
#  189|   			(XPointer)&buf[data_len], buf_size, &ret_len))) {
#  190|   	    return XIM_FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
libX11-1.8.12/modules/im/ximcp/imTransR.c:224:12: warning[-Wanalyzer-malloc-leak]: leak of 'preply'
libX11-1.8.12/modules/im/ximcp/imTransR.c:268:1: enter_function: entry to '_XimFilterWaitEvent'
libX11-1.8.12/modules/im/ximcp/imTransR.c:278:16: call_function: inlined call to '_XimReadData' from '_XimFilterWaitEvent'
libX11-1.8.12/modules/im/ximcp/imTransR.c:278:16: call_function: inlined call to '_XimReadData' from '_XimFilterWaitEvent'
libX11-1.8.12/modules/im/ximcp/imTransR.c:279:7: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imTransR.c:281:14: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imTransR.c:281:14: branch_true: following 'true' branch...
libX11-1.8.12/modules/im/ximcp/imTransR.c:282:12: branch_true: ...to here
libX11-1.8.12/modules/im/ximcp/imTransR.c:282:11: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imTransR.c:285:13: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imTransR.c:286:22: acquire_memory: allocated here
libX11-1.8.12/modules/im/ximcp/imTransR.c:287:24: call_function: inlined call to '_XimReadData' from '_XimFilterWaitEvent'
libX11-1.8.12/modules/im/ximcp/imTransR.c:287:24: call_function: inlined call to '_XimReadData' from '_XimFilterWaitEvent'
libX11-1.8.12/modules/im/ximcp/imTransR.c:288:15: branch_false: following 'false' branch...
libX11-1.8.12/modules/im/ximcp/imTransR.c:297:9: branch_false: ...to here
libX11-1.8.12/modules/im/ximcp/imTransR.c:297:9: call_function: inlined call to '_XimCallDispatcher' from '_XimFilterWaitEvent'
#  222|       XPointer	 data)
#  223|   {
#  224|->     return im->private.proto.call_dispatcher(im, len, data);
#  225|   }
#  226|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def111]
libX11-1.8.12/modules/lc/gen/lcGenConv.c:394:9: warning[-Wanalyzer-null-dereference]: dereference of NULL 'charset'
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2265:1: enter_function: entry to 'stdc_wcstocs'
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2275:29: release_memory: 'charset' is NULL
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2284:11: call_function: calling 'stdc_wctocs' from 'stdc_wcstocs'
#  392|   	return(NULL);
#  393|   
#  394|->     if (charset->source != CSsrcStd)
#  395|           return (charset);
#  396|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
libX11-1.8.12/modules/lc/gen/lcGenConv.c:1260:5: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2315:1: enter_function: entry to 'ctstombs'
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2324:20: acquire_memory: allocated here
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2331:19: call_function: calling 'ctstowcs' from 'ctstombs'
# 1258|       int from_size = *from_left;
# 1259|   
# 1260|->     _XlcResetConverter(conv); /* ??? */
# 1261|   
# 1262|       if (from == NULL || *from == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
libX11-1.8.12/modules/lc/gen/lcGenConv.c:1263:9: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2315:1: enter_function: entry to 'ctstombs'
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2324:20: acquire_memory: allocated here
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2331:19: call_function: calling 'ctstowcs' from 'ctstombs'
# 1261|   
# 1262|       if (from == NULL || *from == NULL) {
# 1263|-> 	_XlcResetConverter(conv);
# 1264|           return( 0 );
# 1265|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2634:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2618:8: branch_false: following 'false' branch (when 'conv' is non-NULL)...
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2621:21: branch_false: ...to here
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2621:21: acquire_memory: allocated here
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2622:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2624:5: branch_false: ...to here
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2628:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2632:5: branch_false: ...to here
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2634:5: throw: if '_XlcResetConverter' throws an exception...
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2634:5: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
# 2632|       state->lcd = lcd;
# 2633|   
# 2634|->     _XlcResetConverter(conv);
# 2635|   
# 2636|       return conv;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2634:5: warning[-Wanalyzer-malloc-leak]: leak of 'conv'
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2617:12: acquire_memory: allocated here
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2618:8: branch_false: following 'false' branch (when 'conv' is non-NULL)...
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2621:21: branch_false: ...to here
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2622:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2624:5: branch_false: ...to here
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2628:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2632:5: branch_false: ...to here
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2634:5: throw: if '_XlcResetConverter' throws an exception...
libX11-1.8.12/modules/lc/gen/lcGenConv.c:2634:5: danger: 'conv' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 2632|       state->lcd = lcd;
# 2633|   
# 2634|->     _XlcResetConverter(conv);
# 2635|   
# 2636|       return conv;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
libX11-1.8.12/modules/om/generic/omDefault.c:54:12: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/modules/om/generic/omDefault.c:414:1: enter_function: entry to '_XwcDefaultDrawImageString'
libX11-1.8.12/modules/om/generic/omDefault.c:418:17: branch_true: following 'true' branch (when 'length > 8192')...
libX11-1.8.12/modules/om/generic/omDefault.c:418:17: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omDefault.c:418:17: acquire_memory: allocated here
libX11-1.8.12/modules/om/generic/omDefault.c:420:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/om/generic/omDefault.c:423:9: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omDefault.c:423:9: call_function: calling 'wcs_to_mbs' from '_XwcDefaultDrawImageString'
#   52|       int to_left, ret;
#   53|   
#   54|->     conv = _XomInitConverter(oc, XOMWideChar);
#   55|       if (conv == NULL)
#   56|   	return False;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
libX11-1.8.12/modules/om/generic/omDefault.c:59:11: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/modules/om/generic/omDefault.c:414:1: enter_function: entry to '_XwcDefaultDrawImageString'
libX11-1.8.12/modules/om/generic/omDefault.c:418:17: branch_true: following 'true' branch (when 'length > 8192')...
libX11-1.8.12/modules/om/generic/omDefault.c:418:17: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omDefault.c:418:17: acquire_memory: allocated here
libX11-1.8.12/modules/om/generic/omDefault.c:420:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/om/generic/omDefault.c:423:9: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omDefault.c:423:9: call_function: calling 'wcs_to_mbs' from '_XwcDefaultDrawImageString'
#   57|   
#   58|       to_left = length;
#   59|->     ret = _XlcConvert(conv, (XPointer *) &from, &length, (XPointer *) &to,
#   60|   		      &to_left, NULL, 0);
#   61|       if (ret != 0 || length > 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
libX11-1.8.12/modules/om/generic/omDefault.c:77:12: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/modules/om/generic/omDefault.c:433:1: enter_function: entry to '_Xutf8DefaultDrawImageString'
libX11-1.8.12/modules/om/generic/omDefault.c:437:17: branch_true: following 'true' branch (when 'length > 8192')...
libX11-1.8.12/modules/om/generic/omDefault.c:437:17: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omDefault.c:437:17: acquire_memory: allocated here
libX11-1.8.12/modules/om/generic/omDefault.c:439:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/om/generic/omDefault.c:442:9: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omDefault.c:442:9: call_function: calling 'utf8_to_mbs' from '_Xutf8DefaultDrawImageString'
#   75|       int to_left, ret;
#   76|   
#   77|->     conv = _XomInitConverter(oc, XOMUtf8String);
#   78|       if (conv == NULL)
#   79|   	return False;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
libX11-1.8.12/modules/om/generic/omDefault.c:82:11: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/modules/om/generic/omDefault.c:433:1: enter_function: entry to '_Xutf8DefaultDrawImageString'
libX11-1.8.12/modules/om/generic/omDefault.c:437:17: branch_true: following 'true' branch (when 'length > 8192')...
libX11-1.8.12/modules/om/generic/omDefault.c:437:17: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omDefault.c:437:17: acquire_memory: allocated here
libX11-1.8.12/modules/om/generic/omDefault.c:439:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/modules/om/generic/omDefault.c:442:9: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omDefault.c:442:9: call_function: calling 'utf8_to_mbs' from '_Xutf8DefaultDrawImageString'
#   80|   
#   81|       to_left = length;
#   82|->     ret = _XlcConvert(conv, (XPointer *) &from, &length, (XPointer *) &to,
#   83|   		      &to_left, NULL, 0);
#   84|       if (ret != 0 || length > 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
libX11-1.8.12/modules/om/generic/omGeneric.c:489:23: warning[-Wanalyzer-malloc-leak]: leak of 'get_font_name(oc,  pattern)'
libX11-1.8.12/modules/om/generic/omGeneric.c:795:1: enter_function: entry to 'parse_fontdata'
libX11-1.8.12/modules/om/generic/omGeneric.c:821:13: branch_true: following 'true' branch (when 'font_data_count != 0')...
libX11-1.8.12/modules/om/generic/omGeneric.c:821:13: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:831:16: branch_true: following 'true' branch (when 'count != 0')...
libX11-1.8.12/modules/om/generic/omGeneric.c:832:24: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:845:16: branch_true: following 'true' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:846:30: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:846:30: call_function: calling 'get_font_name' from 'parse_fontdata'
libX11-1.8.12/modules/om/generic/omGeneric.c:846:30: return_function: returning to 'parse_fontdata' from 'get_font_name'
libX11-1.8.12/modules/om/generic/omGeneric.c:845:17: branch_true: following 'true' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:853:23: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:853:23: call_function: calling 'parse_all_name' from 'parse_fontdata'
#  487|       int count = 0;
#  488|   
#  489|->     list = XListFonts(oc->core.om->core.display, pattern, 1, &count);
#  490|       if (list == NULL)
#  491|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
libX11-1.8.12/modules/om/generic/omGeneric.c:495:5: warning[-Wanalyzer-malloc-leak]: leak of 'name'
libX11-1.8.12/modules/om/generic/omGeneric.c:795:1: enter_function: entry to 'parse_fontdata'
libX11-1.8.12/modules/om/generic/omGeneric.c:821:13: branch_true: following 'true' branch (when 'font_data_count != 0')...
libX11-1.8.12/modules/om/generic/omGeneric.c:821:13: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:831:16: branch_true: following 'true' branch (when 'count != 0')...
libX11-1.8.12/modules/om/generic/omGeneric.c:832:24: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:833:16: branch_false: following 'false' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:845:16: branch_true: following 'true' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:846:30: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:846:30: call_function: calling 'get_font_name' from 'parse_fontdata'
#  493|       name = strdup(*list);
#  494|   
#  495|->     XFreeFontNames(list);
#  496|   
#  497|       return name;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
libX11-1.8.12/modules/om/generic/omGeneric.c:1579:9: warning[-Wanalyzer-malloc-leak]: leak of 'oc'
libX11-1.8.12/modules/om/generic/omGeneric.c:1572:10: acquire_memory: allocated here
libX11-1.8.12/modules/om/generic/omGeneric.c:1573:8: branch_false: following 'false' branch (when 'oc' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1576:5: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1578:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:1579:9: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1579:9: throw: if '_XlcCompileResourceList' throws an exception...
libX11-1.8.12/modules/om/generic/omGeneric.c:1579:9: danger: 'oc' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
# 1577|   
# 1578|       if (oc_resources[0].xrm_name == NULLQUARK)
# 1579|-> 	_XlcCompileResourceList(oc_resources, XlcNumber(oc_resources));
# 1580|   
# 1581|       if (_XlcSetValues((XPointer) oc, oc_resources, XlcNumber(oc_resources),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
libX11-1.8.12/modules/om/generic/omGeneric.c:1581:9: warning[-Wanalyzer-malloc-leak]: leak of 'oc'
libX11-1.8.12/modules/om/generic/omGeneric.c:1572:10: acquire_memory: allocated here
libX11-1.8.12/modules/om/generic/omGeneric.c:1573:8: branch_false: following 'false' branch (when 'oc' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1576:5: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1581:9: throw: if '_XlcSetValues' throws an exception...
libX11-1.8.12/modules/om/generic/omGeneric.c:1581:9: danger: 'oc' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
# 1579|   	_XlcCompileResourceList(oc_resources, XlcNumber(oc_resources));
# 1580|   
# 1581|->     if (_XlcSetValues((XPointer) oc, oc_resources, XlcNumber(oc_resources),
# 1582|   		      args, num_args, XlcCreateMask | XlcDefaultMask))
# 1583|   	goto err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
libX11-1.8.12/modules/om/generic/omGeneric.c:1766:9: warning[-Wanalyzer-malloc-leak]: leak of 'create_om(lcd,  dpy,  rdb,  res_name,  res_class)'
libX11-1.8.12/modules/om/generic/omGeneric.c:2062:1: enter_function: entry to '_XomGenericOpenOM'
libX11-1.8.12/modules/om/generic/omGeneric.c:2067:10: call_function: calling 'create_om' from '_XomGenericOpenOM'
libX11-1.8.12/modules/om/generic/omGeneric.c:2067:10: return_function: returning to '_XomGenericOpenOM' from 'create_om'
libX11-1.8.12/modules/om/generic/omGeneric.c:2068:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:2071:9: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:2071:9: call_function: calling 'init_om' from '_XomGenericOpenOM'
# 1764|       }
# 1765|   
# 1766|->     if (om_resources[0].xrm_name == NULLQUARK)
# 1767|   	_XlcCompileResourceList(om_resources, XlcNumber(om_resources));
# 1768|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
libX11-1.8.12/modules/om/generic/omGeneric.c:1767:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/modules/om/generic/omGeneric.c:1748:8: branch_false: following 'false' branch (when 'om' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1751:5: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1755:8: branch_true: following 'true' branch (when 'res_name' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1756:29: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1756:29: acquire_memory: allocated here
libX11-1.8.12/modules/om/generic/omGeneric.c:1757:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:1760:8: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1760:8: branch_false: following 'false' branch (when 'res_class' is NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1766:9: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1766:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:1767:9: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1767:9: throw: if '_XlcCompileResourceList' throws an exception...
libX11-1.8.12/modules/om/generic/omGeneric.c:1767:9: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
# 1765|   
# 1766|       if (om_resources[0].xrm_name == NULLQUARK)
# 1767|-> 	_XlcCompileResourceList(om_resources, XlcNumber(om_resources));
# 1768|   
# 1769|       om->core.resources = om_resources;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
libX11-1.8.12/modules/om/generic/omGeneric.c:1767:9: warning[-Wanalyzer-malloc-leak]: leak of 'om'
libX11-1.8.12/modules/om/generic/omGeneric.c:1747:10: acquire_memory: allocated here
libX11-1.8.12/modules/om/generic/omGeneric.c:1748:8: branch_false: following 'false' branch (when 'om' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1751:5: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1755:8: branch_false: following 'false' branch (when 'res_name' is NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1760:8: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1760:8: branch_false: following 'false' branch (when 'res_class' is NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1766:9: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1766:8: branch_true: following 'true' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:1767:9: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1767:9: throw: if '_XlcCompileResourceList' throws an exception...
libX11-1.8.12/modules/om/generic/omGeneric.c:1767:9: danger: 'om' leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
# 1765|   
# 1766|       if (om_resources[0].xrm_name == NULLQUARK)
# 1767|-> 	_XlcCompileResourceList(om_resources, XlcNumber(om_resources));
# 1768|   
# 1769|       om->core.resources = om_resources;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
libX11-1.8.12/modules/om/generic/omGeneric.c:1838:23: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/modules/om/generic/omGeneric.c:1816:8: branch_false: following 'false' branch (when 'font_data' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1816:8: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1820:17: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/modules/om/generic/omGeneric.c:1824:9: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1825:12: branch_true: following 'true' branch (when 'bufptr' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1826:24: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1830:27: branch_true: following 'true' branch (when 'len != -1')...
libX11-1.8.12/modules/om/generic/omGeneric.c:1830:27: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1830:27: acquire_memory: allocated here
libX11-1.8.12/modules/om/generic/omGeneric.c:1831:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:1836:9: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1838:12: branch_true: following 'true' branch (when 'bufptr' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1838:23: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1838:23: throw: if '_XlcCompareISOLatin1' throws an exception...
libX11-1.8.12/modules/om/generic/omGeneric.c:1838:23: danger: '<unknown>' leaks here; was allocated at [(10)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/9)
# 1836|           strncpy(font_data->name, buf,len);
# 1837|   	font_data->name[len] = 0;
# 1838|->         if (bufptr && _XlcCompareISOLatin1(bufptr, "GL") == 0)
# 1839|               font_data->side = XlcGL;
# 1840|           else if (bufptr && _XlcCompareISOLatin1(bufptr, "GR") == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
libX11-1.8.12/modules/om/generic/omGeneric.c:1838:23: warning[-Wanalyzer-malloc-leak]: leak of 'font_data'
libX11-1.8.12/modules/om/generic/omGeneric.c:1815:17: acquire_memory: allocated here
libX11-1.8.12/modules/om/generic/omGeneric.c:1816:8: branch_false: following 'false' branch (when 'font_data' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1816:8: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1820:17: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/modules/om/generic/omGeneric.c:1824:9: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1825:12: branch_true: following 'true' branch (when 'bufptr' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1826:24: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1830:27: branch_true: following 'true' branch (when 'len != -1')...
libX11-1.8.12/modules/om/generic/omGeneric.c:1830:27: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1831:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:1836:9: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1838:12: branch_true: following 'true' branch (when 'bufptr' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1838:23: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1838:23: throw: if '_XlcCompareISOLatin1' throws an exception...
libX11-1.8.12/modules/om/generic/omGeneric.c:1838:23: danger: 'font_data' leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
# 1836|           strncpy(font_data->name, buf,len);
# 1837|   	font_data->name[len] = 0;
# 1838|->         if (bufptr && _XlcCompareISOLatin1(bufptr, "GL") == 0)
# 1839|               font_data->side = XlcGL;
# 1840|           else if (bufptr && _XlcCompareISOLatin1(bufptr, "GR") == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
libX11-1.8.12/modules/om/generic/omGeneric.c:1840:28: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/modules/om/generic/omGeneric.c:1816:8: branch_false: following 'false' branch (when 'font_data' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1816:8: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1820:17: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/modules/om/generic/omGeneric.c:1824:9: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1825:12: branch_true: following 'true' branch (when 'bufptr' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1826:24: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1830:27: branch_true: following 'true' branch (when 'len != -1')...
libX11-1.8.12/modules/om/generic/omGeneric.c:1830:27: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1830:27: acquire_memory: allocated here
libX11-1.8.12/modules/om/generic/omGeneric.c:1831:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:1836:9: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1838:12: branch_true: following 'true' branch (when 'bufptr' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1838:23: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1838:13: branch_false: following 'false' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:1840:28: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1840:28: throw: if '_XlcCompareISOLatin1' throws an exception...
libX11-1.8.12/modules/om/generic/omGeneric.c:1840:28: danger: '<unknown>' leaks here; was allocated at [(10)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/9)
# 1838|           if (bufptr && _XlcCompareISOLatin1(bufptr, "GL") == 0)
# 1839|               font_data->side = XlcGL;
# 1840|->         else if (bufptr && _XlcCompareISOLatin1(bufptr, "GR") == 0)
# 1841|               font_data->side = XlcGR;
# 1842|           else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
libX11-1.8.12/modules/om/generic/omGeneric.c:1840:28: warning[-Wanalyzer-malloc-leak]: leak of 'font_data'
libX11-1.8.12/modules/om/generic/omGeneric.c:1815:17: acquire_memory: allocated here
libX11-1.8.12/modules/om/generic/omGeneric.c:1816:8: branch_false: following 'false' branch (when 'font_data' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1816:8: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1820:17: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/modules/om/generic/omGeneric.c:1824:9: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1825:12: branch_true: following 'true' branch (when 'bufptr' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1826:24: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1830:27: branch_true: following 'true' branch (when 'len != -1')...
libX11-1.8.12/modules/om/generic/omGeneric.c:1830:27: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1831:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:1836:9: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1838:12: branch_true: following 'true' branch (when 'bufptr' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1838:23: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1838:13: branch_false: following 'false' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:1840:28: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1840:28: throw: if '_XlcCompareISOLatin1' throws an exception...
libX11-1.8.12/modules/om/generic/omGeneric.c:1840:28: danger: 'font_data' leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
# 1838|           if (bufptr && _XlcCompareISOLatin1(bufptr, "GL") == 0)
# 1839|               font_data->side = XlcGL;
# 1840|->         else if (bufptr && _XlcCompareISOLatin1(bufptr, "GR") == 0)
# 1841|               font_data->side = XlcGR;
# 1842|           else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
libX11-1.8.12/modules/om/generic/omGeneric.c:1846:33: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/modules/om/generic/omGeneric.c:1816:8: branch_false: following 'false' branch (when 'font_data' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1816:8: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1820:17: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/modules/om/generic/omGeneric.c:1824:9: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1825:12: branch_true: following 'true' branch (when 'bufptr' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1826:24: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1830:27: branch_true: following 'true' branch (when 'len != -1')...
libX11-1.8.12/modules/om/generic/omGeneric.c:1830:27: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1830:27: acquire_memory: allocated here
libX11-1.8.12/modules/om/generic/omGeneric.c:1831:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:1836:9: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1838:12: branch_true: following 'true' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:1845:12: branch_true: following 'true' branch (when 'bufptr' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1845:30: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1845:13: branch_true: following 'true' branch (when 'scp' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1846:33: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1846:33: throw: if '_XlcParse_scopemaps' throws an exception...
libX11-1.8.12/modules/om/generic/omGeneric.c:1846:33: danger: '<unknown>' leaks here; was allocated at [(10)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/9)
# 1844|   
# 1845|           if (bufptr && (scp = strchr(bufptr, '['))){
# 1846|->             font_data->scopes = _XlcParse_scopemaps(scp,&(font_data->scopes_num));
# 1847|           }
# 1848|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
libX11-1.8.12/modules/om/generic/omGeneric.c:1846:33: warning[-Wanalyzer-malloc-leak]: leak of 'font_data'
libX11-1.8.12/modules/om/generic/omGeneric.c:1815:17: acquire_memory: allocated here
libX11-1.8.12/modules/om/generic/omGeneric.c:1816:8: branch_false: following 'false' branch (when 'font_data' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1816:8: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1820:17: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/modules/om/generic/omGeneric.c:1824:9: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1825:12: branch_true: following 'true' branch (when 'bufptr' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1826:24: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1830:27: branch_true: following 'true' branch (when 'len != -1')...
libX11-1.8.12/modules/om/generic/omGeneric.c:1830:27: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1831:12: branch_false: following 'false' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:1836:9: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1838:12: branch_true: following 'true' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:1845:12: branch_true: following 'true' branch (when 'bufptr' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1845:30: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1845:13: branch_true: following 'true' branch (when 'scp' is non-NULL)...
libX11-1.8.12/modules/om/generic/omGeneric.c:1846:33: branch_true: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:1846:33: throw: if '_XlcParse_scopemaps' throws an exception...
libX11-1.8.12/modules/om/generic/omGeneric.c:1846:33: danger: 'font_data' leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
# 1844|   
# 1845|           if (bufptr && (scp = strchr(bufptr, '['))){
# 1846|->             font_data->scopes = _XlcParse_scopemaps(scp,&(font_data->scopes_num));
# 1847|           }
# 1848|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
libX11-1.8.12/modules/om/generic/omGeneric.c:1928:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/modules/om/generic/omGeneric.c:2062:1: enter_function: entry to '_XomGenericOpenOM'
libX11-1.8.12/modules/om/generic/omGeneric.c:2067:10: call_function: calling 'create_om' from '_XomGenericOpenOM'
libX11-1.8.12/modules/om/generic/omGeneric.c:2067:10: return_function: returning to '_XomGenericOpenOM' from 'create_om'
libX11-1.8.12/modules/om/generic/omGeneric.c:2068:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:2071:9: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:2071:9: call_function: calling 'init_om' from '_XomGenericOpenOM'
# 1926|   
# 1927|           snprintf(buf, sizeof(buf), "fs%d.charset.name", num);
# 1928|->         _XlcGetResource(lcd, "XLC_FONTSET", buf, &value, &count);
# 1929|   
# 1930|           if( count < 1){

Error: GCC_ANALYZER_WARNING (CWE-131): [#def134]
libX11-1.8.12/modules/om/generic/omGeneric.c:2015:21: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
libX11-1.8.12/modules/om/generic/omGeneric.c:2062:1: enter_function: entry to '_XomGenericOpenOM'
libX11-1.8.12/modules/om/generic/omGeneric.c:2067:10: call_function: calling 'create_om' from '_XomGenericOpenOM'
libX11-1.8.12/modules/om/generic/omGeneric.c:2067:10: return_function: returning to '_XomGenericOpenOM' from 'create_om'
libX11-1.8.12/modules/om/generic/omGeneric.c:2068:8: branch_false: following 'false' branch...
libX11-1.8.12/modules/om/generic/omGeneric.c:2071:9: branch_false: ...to here
libX11-1.8.12/modules/om/generic/omGeneric.c:2071:9: call_function: calling 'init_om' from '_XomGenericOpenOM'
# 2013|   
# 2014|       /* required charset list */
# 2015|->     required_list = Xmalloc(sizeof(char *) * gen->data_num);
# 2016|       if (required_list == NULL)
# 2017|   	return False;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
libX11-1.8.12/src/Context.c:194:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/src/Context.c:183:8: branch_true: following 'true' branch (when 'db' is NULL)...
libX11-1.8.12/src/Context.c:184:14: branch_true: ...to here
libX11-1.8.12/src/Context.c:185:12: branch_false: following 'false' branch (when 'db' is non-NULL)...
libX11-1.8.12/src/Context.c:187:9: branch_false: ...to here
libX11-1.8.12/src/Context.c:188:21: acquire_memory: allocated here
libX11-1.8.12/src/Context.c:189:12: branch_false: following 'false' branch...
libX11-1.8.12/src/Context.c:193:9: branch_false: ...to here
libX11-1.8.12/src/Context.c:194:9: branch_true: following 'true' branch...
libX11-1.8.12/src/Context.c:194:9: branch_true: ...to here
libX11-1.8.12/src/Context.c:194:9: throw: if the called function throws an exception...
libX11-1.8.12/src/Context.c:194:9: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  192|   	}
#  193|   	db->numentries = 0;
#  194|-> 	_XCreateMutex(&db->linfo);
#  195|   #ifdef MOTIFBC
#  196|   	if (!display) *pdb = db; else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
libX11-1.8.12/src/Context.c:194:9: warning[-Wanalyzer-malloc-leak]: leak of 'db'
libX11-1.8.12/src/Context.c:183:8: branch_true: following 'true' branch (when 'db' is NULL)...
libX11-1.8.12/src/Context.c:184:14: branch_true: ...to here
libX11-1.8.12/src/Context.c:184:14: acquire_memory: allocated here
libX11-1.8.12/src/Context.c:185:12: branch_false: following 'false' branch (when 'db' is non-NULL)...
libX11-1.8.12/src/Context.c:187:9: branch_false: ...to here
libX11-1.8.12/src/Context.c:189:12: branch_false: following 'false' branch...
libX11-1.8.12/src/Context.c:193:9: branch_false: ...to here
libX11-1.8.12/src/Context.c:194:9: branch_true: following 'true' branch...
libX11-1.8.12/src/Context.c:194:9: branch_true: ...to here
libX11-1.8.12/src/Context.c:194:9: throw: if the called function throws an exception...
libX11-1.8.12/src/Context.c:194:9: danger: 'db' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  192|   	}
#  193|   	db->numentries = 0;
#  194|-> 	_XCreateMutex(&db->linfo);
#  195|   #ifdef MOTIFBC
#  196|   	if (!display) *pdb = db; else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
libX11-1.8.12/src/Context.c:199:13: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/src/Context.c:183:8: branch_true: following 'true' branch (when 'db' is NULL)...
libX11-1.8.12/src/Context.c:184:14: branch_true: ...to here
libX11-1.8.12/src/Context.c:185:12: branch_false: following 'false' branch (when 'db' is non-NULL)...
libX11-1.8.12/src/Context.c:187:9: branch_false: ...to here
libX11-1.8.12/src/Context.c:188:21: acquire_memory: allocated here
libX11-1.8.12/src/Context.c:189:12: branch_false: following 'false' branch...
libX11-1.8.12/src/Context.c:193:9: branch_false: ...to here
libX11-1.8.12/src/Context.c:194:9: branch_false: following 'false' branch...
libX11-1.8.12/src/Context.c:199:13: branch_false: ...to here
libX11-1.8.12/src/Context.c:199:13: branch_true: following 'true' branch...
libX11-1.8.12/src/Context.c:199:13: branch_true: ...to here
libX11-1.8.12/src/Context.c:199:13: throw: if the called function throws an exception...
libX11-1.8.12/src/Context.c:199:13: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#  197|   #endif
#  198|   	{
#  199|-> 	    LockDisplay(display);
#  200|   	    *pdb = db;
#  201|   	    display->free_funcs->context_db = _XFreeContextDB;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
libX11-1.8.12/src/Context.c:199:13: warning[-Wanalyzer-malloc-leak]: leak of 'db'
libX11-1.8.12/src/Context.c:183:8: branch_true: following 'true' branch (when 'db' is NULL)...
libX11-1.8.12/src/Context.c:184:14: branch_true: ...to here
libX11-1.8.12/src/Context.c:184:14: acquire_memory: allocated here
libX11-1.8.12/src/Context.c:185:12: branch_false: following 'false' branch (when 'db' is non-NULL)...
libX11-1.8.12/src/Context.c:187:9: branch_false: ...to here
libX11-1.8.12/src/Context.c:189:12: branch_false: following 'false' branch...
libX11-1.8.12/src/Context.c:193:9: branch_false: ...to here
libX11-1.8.12/src/Context.c:194:9: branch_false: following 'false' branch...
libX11-1.8.12/src/Context.c:199:13: branch_false: ...to here
libX11-1.8.12/src/Context.c:199:13: branch_true: following 'true' branch...
libX11-1.8.12/src/Context.c:199:13: branch_true: ...to here
libX11-1.8.12/src/Context.c:199:13: throw: if the called function throws an exception...
libX11-1.8.12/src/Context.c:199:13: danger: 'db' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  197|   #endif
#  198|   	{
#  199|-> 	    LockDisplay(display);
#  200|   	    *pdb = db;
#  201|   	    display->free_funcs->context_db = _XFreeContextDB;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
libX11-1.8.12/src/CrGC.c:89:5: warning[-Wanalyzer-malloc-leak]: leak of 'gc'
libX11-1.8.12/src/CrGC.c:75:15: acquire_memory: allocated here
libX11-1.8.12/src/CrGC.c:75:8: branch_false: following 'false' branch (when 'gc' is non-NULL)...
libX11-1.8.12/src/CrGC.c:80:5: branch_false: ...to here
libX11-1.8.12/src/CrGC.c:89:5: throw: if '_XGetRequest' throws an exception...
libX11-1.8.12/src/CrGC.c:89:5: danger: 'gc' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   87|       if (valuemask) _XUpdateGCCache (gc, valuemask, values);
#   88|   
#   89|->     GetReq(CreateGC, req);
#   90|       req->drawable = d;
#   91|       req->gc = gc->gid = XAllocID(dpy);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
libX11-1.8.12/src/CrGC.c:91:25: warning[-Wanalyzer-malloc-leak]: leak of 'gc'
libX11-1.8.12/src/CrGC.c:75:15: acquire_memory: allocated here
libX11-1.8.12/src/CrGC.c:75:8: branch_false: following 'false' branch (when 'gc' is non-NULL)...
libX11-1.8.12/src/CrGC.c:80:5: branch_false: ...to here
libX11-1.8.12/src/CrGC.c:91:25: throw: if the called function throws an exception...
libX11-1.8.12/src/CrGC.c:91:25: danger: 'gc' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   89|       GetReq(CreateGC, req);
#   90|       req->drawable = d;
#   91|->     req->gc = gc->gid = XAllocID(dpy);
#   92|   
#   93|       if ((req->mask = gc->dirty))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
libX11-1.8.12/src/CrGC.c:97:29: warning[-Wanalyzer-malloc-leak]: leak of 'gc'
libX11-1.8.12/src/CrGC.c:75:15: acquire_memory: allocated here
libX11-1.8.12/src/CrGC.c:75:8: branch_false: following 'false' branch (when 'gc' is non-NULL)...
libX11-1.8.12/src/CrGC.c:80:5: branch_false: ...to here
libX11-1.8.12/src/CrGC.c:93:8: branch_false: following 'false' branch...
libX11-1.8.12/src/CrGC.c:96:10: branch_false: ...to here
libX11-1.8.12/src/CrGC.c:96:32: branch_true: following 'true' branch (when 'ext' is non-NULL)...
libX11-1.8.12/src/CrGC.c:97:13: branch_true: ...to here
libX11-1.8.12/src/CrGC.c:97:29: throw: if the called function throws an exception...
libX11-1.8.12/src/CrGC.c:97:29: danger: 'gc' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   95|       /* call out to any extensions interested */
#   96|       for (ext = dpy->ext_procs; ext; ext = ext->next)
#   97|-> 	if (ext->create_GC) (*ext->create_GC)(dpy, gc, &ext->codes);
#   98|       gc->dirty = 0L; /* allow extensions to see dirty bits */
#   99|       UnlockDisplay(dpy);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
libX11-1.8.12/src/CrGC.c:99:5: warning[-Wanalyzer-malloc-leak]: leak of 'gc'
libX11-1.8.12/src/CrGC.c:75:15: acquire_memory: allocated here
libX11-1.8.12/src/CrGC.c:75:8: branch_false: following 'false' branch (when 'gc' is non-NULL)...
libX11-1.8.12/src/CrGC.c:80:5: branch_false: ...to here
libX11-1.8.12/src/CrGC.c:99:5: branch_true: following 'true' branch...
libX11-1.8.12/src/CrGC.c:99:5: branch_true: ...to here
libX11-1.8.12/src/CrGC.c:99:5: throw: if the called function throws an exception...
libX11-1.8.12/src/CrGC.c:99:5: danger: 'gc' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   97|   	if (ext->create_GC) (*ext->create_GC)(dpy, gc, &ext->codes);
#   98|       gc->dirty = 0L; /* allow extensions to see dirty bits */
#   99|->     UnlockDisplay(dpy);
#  100|       SyncHandle();
#  101|       return (gc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
libX11-1.8.12/src/CrGC.c:100:5: warning[-Wanalyzer-malloc-leak]: leak of 'gc'
libX11-1.8.12/src/CrGC.c:75:15: acquire_memory: allocated here
libX11-1.8.12/src/CrGC.c:75:8: branch_false: following 'false' branch (when 'gc' is non-NULL)...
libX11-1.8.12/src/CrGC.c:80:5: branch_false: ...to here
libX11-1.8.12/src/CrGC.c:100:5: branch_true: following 'true' branch...
libX11-1.8.12/src/CrGC.c:100:5: branch_true: ...to here
libX11-1.8.12/src/CrGC.c:100:5: throw: if the called function throws an exception...
libX11-1.8.12/src/CrGC.c:100:5: danger: 'gc' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#   98|       gc->dirty = 0L; /* allow extensions to see dirty bits */
#   99|       UnlockDisplay(dpy);
#  100|->     SyncHandle();
#  101|       return (gc);
#  102|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
libX11-1.8.12/src/CrGC.c:158:5: warning[-Wanalyzer-malloc-leak]: leak of 'gc'
libX11-1.8.12/src/CrGC.c:64:4: enter_function: entry to 'XCreateGC'
libX11-1.8.12/src/CrGC.c:75:15: acquire_memory: allocated here
libX11-1.8.12/src/CrGC.c:75:8: branch_false: following 'false' branch (when 'gc' is non-NULL)...
libX11-1.8.12/src/CrGC.c:80:5: branch_false: ...to here
libX11-1.8.12/src/CrGC.c:93:8: branch_true: following 'true' branch...
libX11-1.8.12/src/CrGC.c:94:9: branch_true: ...to here
libX11-1.8.12/src/CrGC.c:94:9: call_function: calling '_XGenerateGCList' from 'XCreateGC'
#  156|   
#  157|       nvalues <<= 2;
#  158|->     Data32 (dpy, (long *) values, nvalues);
#  159|   
#  160|       }

Error: COMPILER_WARNING: [#def145]
libX11-1.8.12/src/ErrDes.c: scope_hint: In function 'XGetErrorDatabaseText.part.0'
libX11-1.8.12/src/ErrDes.c:194:38: warning[-Wformat-truncation=]: '%s' directive output may be truncated writing up to 8190 bytes into a region of size between 1 and 8191
#  194 |             snprintf(tptr, tlen, "%s.%s", name, type);
#      |                                      ^~
/usr/include/bits/stdio2.h:68:10: note: '__snprintf_chk' output between 2 and 16382 bytes into a destination of size 8192
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
#  192|   	    tptr = Xmalloc (tlen);
#  193|   	if (tptr) {
#  194|-> 	    snprintf(tptr, tlen, "%s.%s", name, type);
#  195|   	    XrmGetResource(db, tptr, "ErrorType.ErrorNumber",
#  196|   	      &type_str, &result);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
libX11-1.8.12/src/Font.c:259:13: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/src/Font.c:211:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:217:8: branch_false: ...to here
libX11-1.8.12/src/Font.c:221:8: branch_false: following 'false' branch (when 'fs' is non-NULL)...
libX11-1.8.12/src/Font.c:225:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:247:8: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:249:22: branch_true: ...to here
libX11-1.8.12/src/Font.c:250:16: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:251:34: branch_true: ...to here
libX11-1.8.12/src/Font.c:251:34: acquire_memory: allocated here
libX11-1.8.12/src/Font.c:254:16: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:259:13: branch_false: ...to here
libX11-1.8.12/src/Font.c:259:13: throw: if '_XRead32' throws an exception...
libX11-1.8.12/src/Font.c:259:13: danger: '<unknown>' leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  257|   		return (XFontStruct *)NULL;
#  258|   	    }
#  259|-> 	    _XRead32 (dpy, (long *)fs->properties, nbytes);
#  260|   	    reply_left -= (nbytes >> 2);
#  261|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
libX11-1.8.12/src/Font.c:259:13: warning[-Wanalyzer-malloc-leak]: leak of 'fs'
libX11-1.8.12/src/Font.c:211:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:217:8: branch_false: ...to here
libX11-1.8.12/src/Font.c:221:17: acquire_memory: allocated here
libX11-1.8.12/src/Font.c:221:8: branch_false: following 'false' branch (when 'fs' is non-NULL)...
libX11-1.8.12/src/Font.c:225:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:247:8: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:249:22: branch_true: ...to here
libX11-1.8.12/src/Font.c:250:16: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:251:34: branch_true: ...to here
libX11-1.8.12/src/Font.c:254:16: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:259:13: branch_false: ...to here
libX11-1.8.12/src/Font.c:259:13: throw: if '_XRead32' throws an exception...
libX11-1.8.12/src/Font.c:259:13: danger: 'fs' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  257|   		return (XFontStruct *)NULL;
#  258|   	    }
#  259|-> 	    _XRead32 (dpy, (long *)fs->properties, nbytes);
#  260|   	    reply_left -= (nbytes >> 2);
#  261|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
libX11-1.8.12/src/Font.c:288:31: warning[-Wanalyzer-malloc-leak]: leak of 'fs'
libX11-1.8.12/src/Font.c:211:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:217:8: branch_false: ...to here
libX11-1.8.12/src/Font.c:221:17: acquire_memory: allocated here
libX11-1.8.12/src/Font.c:221:8: branch_false: following 'false' branch (when 'fs' is non-NULL)...
libX11-1.8.12/src/Font.c:225:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:247:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:266:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:267:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:287:10: branch_false: ...to here
libX11-1.8.12/src/Font.c:287:32: branch_true: following 'true' branch (when 'ext' is non-NULL)...
libX11-1.8.12/src/Font.c:288:13: branch_true: ...to here
libX11-1.8.12/src/Font.c:288:31: throw: if the called function throws an exception...
libX11-1.8.12/src/Font.c:288:31: danger: 'fs' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  286|       /* call out to any extensions interested */
#  287|       for (ext = dpy->ext_procs; ext; ext = ext->next)
#  288|-> 	if (ext->create_Font) (*ext->create_Font)(dpy, fs, &ext->codes);
#  289|       return fs;
#  290|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
libX11-1.8.12/src/Font.c:340:28: warning[-Wanalyzer-malloc-leak]: leak of 'pData'
libX11-1.8.12/src/Font.c:326:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:329:13: branch_false: ...to here
libX11-1.8.12/src/Font.c:329:13: acquire_memory: allocated here
libX11-1.8.12/src/Font.c:330:8: branch_false: following 'false' branch (when 'pData' is non-NULL)...
libX11-1.8.12/src/Font.c:336:14: branch_false: ...to here
libX11-1.8.12/src/Font.c:340:28: throw: if 'XInitExtension' throws an exception...
libX11-1.8.12/src/Font.c:340:28: danger: 'pData' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  338|   	pCodes = NULL;
#  339|       else {
#  340|-> 	XExtCodes *codes = XInitExtension(dpy, XF86BIGFONTNAME);
#  341|   	if (codes == NULL)
#  342|   	    pCodes = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
libX11-1.8.12/src/Font.c:351:5: warning[-Wanalyzer-malloc-leak]: leak of 'pData'
libX11-1.8.12/src/Font.c:326:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:329:13: branch_false: ...to here
libX11-1.8.12/src/Font.c:329:13: acquire_memory: allocated here
libX11-1.8.12/src/Font.c:330:8: branch_false: following 'false' branch (when 'pData' is non-NULL)...
libX11-1.8.12/src/Font.c:336:14: branch_false: ...to here
libX11-1.8.12/src/Font.c:351:5: throw: if 'XAddToExtensionList' throws an exception...
libX11-1.8.12/src/Font.c:351:5: danger: 'pData' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  349|       pData->private_data = (XPointer) pCodes;
#  350|       pData->free_private = _XF86BigfontFreeCodes;
#  351|->     XAddToExtensionList(XEHeadOfExtensionList(dpy_union), pData);
#  352|       if (pCodes) {
#  353|   	int result;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
libX11-1.8.12/src/Font.c:351:25: warning[-Wanalyzer-malloc-leak]: leak of 'pData'
libX11-1.8.12/src/Font.c:326:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:329:13: branch_false: ...to here
libX11-1.8.12/src/Font.c:329:13: acquire_memory: allocated here
libX11-1.8.12/src/Font.c:330:8: branch_false: following 'false' branch (when 'pData' is non-NULL)...
libX11-1.8.12/src/Font.c:336:14: branch_false: ...to here
libX11-1.8.12/src/Font.c:351:25: throw: if 'XEHeadOfExtensionList' throws an exception...
libX11-1.8.12/src/Font.c:351:25: danger: 'pData' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  349|       pData->private_data = (XPointer) pCodes;
#  350|       pData->free_private = _XF86BigfontFreeCodes;
#  351|->     XAddToExtensionList(XEHeadOfExtensionList(dpy_union), pData);
#  352|       if (pCodes) {
#  353|   	int result;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
libX11-1.8.12/src/Font.c:503:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/src/Font.c:453:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:460:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:465:8: branch_false: following 'false' branch (when 'fs' is non-NULL)...
libX11-1.8.12/src/Font.c:469:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:491:8: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:493:18: branch_true: ...to here
libX11-1.8.12/src/Font.c:494:12: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:495:30: branch_true: ...to here
libX11-1.8.12/src/Font.c:495:30: acquire_memory: allocated here
libX11-1.8.12/src/Font.c:498:12: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:503:9: branch_false: ...to here
libX11-1.8.12/src/Font.c:503:9: throw: if '_XRead32' throws an exception...
libX11-1.8.12/src/Font.c:503:9: danger: '<unknown>' leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
#  501|   	    return (XFontStruct *)NULL;
#  502|   	}
#  503|-> 	_XRead32 (dpy, (long *)fs->properties, nbytes);
#  504|   	reply_left -= (nbytes >> 2);
#  505|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
libX11-1.8.12/src/Font.c:503:9: warning[-Wanalyzer-malloc-leak]: leak of 'fs'
libX11-1.8.12/src/Font.c:453:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:460:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:465:17: acquire_memory: allocated here
libX11-1.8.12/src/Font.c:465:8: branch_false: following 'false' branch (when 'fs' is non-NULL)...
libX11-1.8.12/src/Font.c:469:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:491:8: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:493:18: branch_true: ...to here
libX11-1.8.12/src/Font.c:494:12: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:495:30: branch_true: ...to here
libX11-1.8.12/src/Font.c:498:12: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:503:9: branch_false: ...to here
libX11-1.8.12/src/Font.c:503:9: throw: if '_XRead32' throws an exception...
libX11-1.8.12/src/Font.c:503:9: danger: 'fs' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  501|   	    return (XFontStruct *)NULL;
#  502|   	}
#  503|-> 	_XRead32 (dpy, (long *)fs->properties, nbytes);
#  504|   	reply_left -= (nbytes >> 2);
#  505|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
libX11-1.8.12/src/Font.c:543:13: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/src/Font.c:453:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:460:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:465:8: branch_false: following 'false' branch (when 'fs' is non-NULL)...
libX11-1.8.12/src/Font.c:469:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:491:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:507:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:519:8: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:521:13: branch_true: ...to here
libX11-1.8.12/src/Font.c:521:12: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:526:22: branch_true: ...to here
libX11-1.8.12/src/Font.c:529:16: branch_false: following 'false' branch (when 'pUniqCI' is non-NULL)...
libX11-1.8.12/src/Font.c:535:35: branch_false: ...to here
libX11-1.8.12/src/Font.c:535:35: acquire_memory: allocated here
libX11-1.8.12/src/Font.c:535:16: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:543:13: branch_false: ...to here
libX11-1.8.12/src/Font.c:543:13: throw: if '_XRead' throws an exception...
libX11-1.8.12/src/Font.c:543:13: danger: '<unknown>' leaks here; was allocated at [(13)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/12)
#  541|   		return (XFontStruct *)NULL;
#  542|   	    }
#  543|-> 	    _XRead16 (dpy, (char *) pUniqCI, nbytes);
#  544|   	    pIndex2UniqIndex = (CARD16*) (pUniqCI + reply.nUniqCharInfos);
#  545|   	    for (i = 0; i < reply.nCharInfos; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def155]
libX11-1.8.12/src/Font.c:543:13: warning[-Wanalyzer-malloc-leak]: leak of 'fs'
libX11-1.8.12/src/Font.c:453:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:460:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:465:17: acquire_memory: allocated here
libX11-1.8.12/src/Font.c:465:8: branch_false: following 'false' branch (when 'fs' is non-NULL)...
libX11-1.8.12/src/Font.c:469:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:491:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:507:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:519:8: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:521:13: branch_true: ...to here
libX11-1.8.12/src/Font.c:521:12: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:526:22: branch_true: ...to here
libX11-1.8.12/src/Font.c:529:16: branch_false: following 'false' branch (when 'pUniqCI' is non-NULL)...
libX11-1.8.12/src/Font.c:535:35: branch_false: ...to here
libX11-1.8.12/src/Font.c:535:16: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:543:13: branch_false: ...to here
libX11-1.8.12/src/Font.c:543:13: throw: if '_XRead' throws an exception...
libX11-1.8.12/src/Font.c:543:13: danger: 'fs' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  541|   		return (XFontStruct *)NULL;
#  542|   	    }
#  543|-> 	    _XRead16 (dpy, (char *) pUniqCI, nbytes);
#  544|   	    pIndex2UniqIndex = (CARD16*) (pUniqCI + reply.nUniqCharInfos);
#  545|   	    for (i = 0; i < reply.nCharInfos; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
libX11-1.8.12/src/Font.c:543:13: warning[-Wanalyzer-malloc-leak]: leak of 'pUniqCI'
libX11-1.8.12/src/Font.c:453:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:460:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:465:8: branch_false: following 'false' branch (when 'fs' is non-NULL)...
libX11-1.8.12/src/Font.c:469:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:491:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:507:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:519:8: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:521:13: branch_true: ...to here
libX11-1.8.12/src/Font.c:521:12: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:526:22: branch_true: ...to here
libX11-1.8.12/src/Font.c:528:23: acquire_memory: allocated here
libX11-1.8.12/src/Font.c:529:16: branch_false: following 'false' branch (when 'pUniqCI' is non-NULL)...
libX11-1.8.12/src/Font.c:535:35: branch_false: ...to here
libX11-1.8.12/src/Font.c:535:16: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:543:13: branch_false: ...to here
libX11-1.8.12/src/Font.c:543:13: throw: if '_XRead' throws an exception...
libX11-1.8.12/src/Font.c:543:13: danger: 'pUniqCI' leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
#  541|   		return (XFontStruct *)NULL;
#  542|   	    }
#  543|-> 	    _XRead16 (dpy, (char *) pUniqCI, nbytes);
#  544|   	    pIndex2UniqIndex = (CARD16*) (pUniqCI + reply.nUniqCharInfos);
#  545|   	    for (i = 0; i < reply.nCharInfos; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
libX11-1.8.12/src/Font.c:550:21: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/src/Font.c:453:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:460:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:465:8: branch_false: following 'false' branch (when 'fs' is non-NULL)...
libX11-1.8.12/src/Font.c:469:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:491:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:507:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:519:8: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:521:13: branch_true: ...to here
libX11-1.8.12/src/Font.c:521:12: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:526:22: branch_true: ...to here
libX11-1.8.12/src/Font.c:529:16: branch_false: following 'false' branch (when 'pUniqCI' is non-NULL)...
libX11-1.8.12/src/Font.c:535:35: branch_false: ...to here
libX11-1.8.12/src/Font.c:535:35: acquire_memory: allocated here
libX11-1.8.12/src/Font.c:535:16: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:543:13: branch_false: ...to here
libX11-1.8.12/src/Font.c:545:25: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:546:37: branch_true: ...to here
libX11-1.8.12/src/Font.c:546:20: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:547:21: branch_true: ...to here
libX11-1.8.12/src/Font.c:550:21: danger: '<unknown>' leaks here; was allocated at [(13)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/12)
#  548|   		    Xfree(pUniqCI);
#  549|   		    Xfree(fs->properties);
#  550|-> 		    Xfree(fs);
#  551|   		    return (XFontStruct *)NULL;
#  552|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
libX11-1.8.12/src/Font.c:613:13: warning[-Wanalyzer-malloc-leak]: leak of 'pData'
libX11-1.8.12/src/Font.c:453:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:460:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:465:8: branch_false: following 'false' branch (when 'fs' is non-NULL)...
libX11-1.8.12/src/Font.c:469:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:491:8: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:493:18: branch_true: ...to here
libX11-1.8.12/src/Font.c:494:12: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:495:30: branch_true: ...to here
libX11-1.8.12/src/Font.c:498:12: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:503:9: branch_false: ...to here
libX11-1.8.12/src/Font.c:519:8: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:521:13: branch_true: ...to here
libX11-1.8.12/src/Font.c:521:12: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:563:21: branch_false: ...to here
libX11-1.8.12/src/Font.c:563:21: acquire_memory: allocated here
libX11-1.8.12/src/Font.c:564:16: branch_false: following 'false' branch (when 'pData' is non-NULL)...
libX11-1.8.12/src/Font.c:581:25: branch_false: ...to here
libX11-1.8.12/src/Font.c:581:16: branch_false: following 'false' branch (when 'addr != 18446744073709551615')...
libX11-1.8.12/src/Font.c:592:19: branch_false: ...to here
libX11-1.8.12/src/Font.c:592:16: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:609:13: branch_false: ...to here
libX11-1.8.12/src/Font.c:613:13: throw: if 'XAddToExtensionList' throws an exception...
libX11-1.8.12/src/Font.c:613:13: danger: 'pData' leaks here; was allocated at [(15)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/14)
#  611|   	    pData->free_private = _XF86BigfontFreeNop;
#  612|   	    fs_union.font = fs;
#  613|-> 	    XAddToExtensionList(XEHeadOfExtensionList(fs_union), pData);
#  614|   
#  615|   	    fs->per_char = (XCharStruct *) (addr + reply.shmsegoffset);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
libX11-1.8.12/src/Font.c:613:33: warning[-Wanalyzer-malloc-leak]: leak of 'fs'
libX11-1.8.12/src/Font.c:453:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:460:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:465:17: acquire_memory: allocated here
libX11-1.8.12/src/Font.c:465:8: branch_false: following 'false' branch (when 'fs' is non-NULL)...
libX11-1.8.12/src/Font.c:469:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:491:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:507:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:519:8: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:521:13: branch_true: ...to here
libX11-1.8.12/src/Font.c:521:12: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:563:21: branch_false: ...to here
libX11-1.8.12/src/Font.c:564:16: branch_false: following 'false' branch (when 'pData' is non-NULL)...
libX11-1.8.12/src/Font.c:581:25: branch_false: ...to here
libX11-1.8.12/src/Font.c:581:16: branch_false: following 'false' branch (when 'addr != 18446744073709551615')...
libX11-1.8.12/src/Font.c:592:19: branch_false: ...to here
libX11-1.8.12/src/Font.c:592:16: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:609:13: branch_false: ...to here
libX11-1.8.12/src/Font.c:613:33: throw: if 'XEHeadOfExtensionList' throws an exception...
libX11-1.8.12/src/Font.c:613:33: danger: 'fs' leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
#  611|   	    pData->free_private = _XF86BigfontFreeNop;
#  612|   	    fs_union.font = fs;
#  613|-> 	    XAddToExtensionList(XEHeadOfExtensionList(fs_union), pData);
#  614|   
#  615|   	    fs->per_char = (XCharStruct *) (addr + reply.shmsegoffset);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
libX11-1.8.12/src/Font.c:613:33: warning[-Wanalyzer-malloc-leak]: leak of 'pData'
libX11-1.8.12/src/Font.c:453:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:460:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:465:8: branch_false: following 'false' branch (when 'fs' is non-NULL)...
libX11-1.8.12/src/Font.c:469:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:491:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:507:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:519:8: branch_true: following 'true' branch...
libX11-1.8.12/src/Font.c:521:13: branch_true: ...to here
libX11-1.8.12/src/Font.c:521:12: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:563:21: branch_false: ...to here
libX11-1.8.12/src/Font.c:563:21: acquire_memory: allocated here
libX11-1.8.12/src/Font.c:564:16: branch_false: following 'false' branch (when 'pData' is non-NULL)...
libX11-1.8.12/src/Font.c:581:25: branch_false: ...to here
libX11-1.8.12/src/Font.c:581:16: branch_false: following 'false' branch (when 'addr != 18446744073709551615')...
libX11-1.8.12/src/Font.c:592:19: branch_false: ...to here
libX11-1.8.12/src/Font.c:592:16: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:609:13: branch_false: ...to here
libX11-1.8.12/src/Font.c:613:33: throw: if 'XEHeadOfExtensionList' throws an exception...
libX11-1.8.12/src/Font.c:613:33: danger: 'pData' leaks here; was allocated at [(11)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/10)
#  611|   	    pData->free_private = _XF86BigfontFreeNop;
#  612|   	    fs_union.font = fs;
#  613|-> 	    XAddToExtensionList(XEHeadOfExtensionList(fs_union), pData);
#  614|   
#  615|   	    fs->per_char = (XCharStruct *) (addr + reply.shmsegoffset);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
libX11-1.8.12/src/Font.c:629:31: warning[-Wanalyzer-malloc-leak]: leak of 'fs'
libX11-1.8.12/src/Font.c:453:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:460:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:465:17: acquire_memory: allocated here
libX11-1.8.12/src/Font.c:465:8: branch_false: following 'false' branch (when 'fs' is non-NULL)...
libX11-1.8.12/src/Font.c:469:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:491:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:507:5: branch_false: ...to here
libX11-1.8.12/src/Font.c:519:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Font.c:628:10: branch_false: ...to here
libX11-1.8.12/src/Font.c:628:32: branch_true: following 'true' branch (when 'ext' is non-NULL)...
libX11-1.8.12/src/Font.c:629:13: branch_true: ...to here
libX11-1.8.12/src/Font.c:629:31: throw: if the called function throws an exception...
libX11-1.8.12/src/Font.c:629:31: danger: 'fs' leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
#  627|       /* call out to any extensions interested */
#  628|       for (ext = dpy->ext_procs; ext; ext = ext->next)
#  629|-> 	if (ext->create_Font) (*ext->create_Font)(dpy, fs, &ext->codes);
#  630|       return fs;
#  631|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
libX11-1.8.12/src/FontInfo.c:73:14: warning[-Wanalyzer-malloc-leak]: leak of 'finfo'
libX11-1.8.12/src/FontInfo.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:80:22: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:82:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:86:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:86:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:88:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:88:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:89:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:91:16: branch_false: following 'false' branch (when 'size <= 22369620')...
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: following 'false' branch (when 'finfo' is NULL)...
libX11-1.8.12/src/FontInfo.c:111:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:111:32: acquire_memory: allocated here
libX11-1.8.12/src/FontInfo.c:111:20: branch_false: following 'false' branch (when 'finfo' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:113:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:113:20: branch_false: following 'false' branch (when 'flist' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:119:20: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:140:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:142:22: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:143:16: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:144:34: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:147:16: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:149:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:155:12: branch_true: following 'true' branch (when 'i == 0')...
libX11-1.8.12/src/FontInfo.c:156:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:158:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:162:12: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:162:12: branch_true: following 'true' branch (when 'i == 0')...
libX11-1.8.12/src/FontInfo.c:163:14: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:73:14: throw: if '_XReply' throws an exception...
libX11-1.8.12/src/FontInfo.c:73:14: danger: 'finfo' leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#   71|   
#   72|       for (i = 0; ; i++) {
#   73|-> 	if (!_XReply (dpy, (xReply *) &reply,
#   74|   		      ((SIZEOF(xListFontsWithInfoReply) -
#   75|   			SIZEOF(xGenericReply)) >> 2), xFalse)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
libX11-1.8.12/src/FontInfo.c:73:14: warning[-Wanalyzer-malloc-leak]: leak of 'flist'
libX11-1.8.12/src/FontInfo.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:80:22: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:82:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:86:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:86:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:88:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:88:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:89:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:91:16: branch_false: following 'false' branch (when 'size <= 22369620')...
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: following 'false' branch (when 'finfo' is NULL)...
libX11-1.8.12/src/FontInfo.c:111:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:111:20: branch_false: following 'false' branch (when 'finfo' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:113:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:113:32: acquire_memory: allocated here
libX11-1.8.12/src/FontInfo.c:113:20: branch_false: following 'false' branch (when 'flist' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:119:20: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:140:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:142:22: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:143:16: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:144:34: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:147:16: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:149:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:155:12: branch_true: following 'true' branch (when 'i == 0')...
libX11-1.8.12/src/FontInfo.c:156:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:158:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:162:12: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:162:12: branch_true: following 'true' branch (when 'i == 0')...
libX11-1.8.12/src/FontInfo.c:163:14: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:73:14: throw: if '_XReply' throws an exception...
libX11-1.8.12/src/FontInfo.c:73:14: danger: 'flist' leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#   71|   
#   72|       for (i = 0; ; i++) {
#   73|-> 	if (!_XReply (dpy, (xReply *) &reply,
#   74|   		      ((SIZEOF(xListFontsWithInfoReply) -
#   75|   			SIZEOF(xGenericReply)) >> 2), xFalse)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
libX11-1.8.12/src/FontInfo.c:83:13: warning[-Wanalyzer-malloc-leak]: leak of 'finfo'
libX11-1.8.12/src/FontInfo.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:80:22: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:82:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:86:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:86:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:88:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:88:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:89:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:91:16: branch_false: following 'false' branch (when 'size <= 22369620')...
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: following 'false' branch (when 'finfo' is NULL)...
libX11-1.8.12/src/FontInfo.c:111:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:111:32: acquire_memory: allocated here
libX11-1.8.12/src/FontInfo.c:111:20: branch_false: following 'false' branch (when 'finfo' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:113:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:113:20: branch_false: following 'false' branch (when 'flist' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:119:20: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:140:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:142:22: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:143:16: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:144:34: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:147:16: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:149:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:155:12: branch_true: following 'true' branch (when 'i == 0')...
libX11-1.8.12/src/FontInfo.c:156:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:158:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:162:12: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:162:12: branch_true: following 'true' branch (when 'i == 0')...
libX11-1.8.12/src/FontInfo.c:163:14: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:80:22: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:82:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:83:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:83:13: throw: if '_XEatDataWords' throws an exception...
libX11-1.8.12/src/FontInfo.c:83:13: danger: 'finfo' leaks here; was allocated at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
#   81|   	    ((SIZEOF(xListFontsWithInfoReply) -	SIZEOF(xGenericReply)) >> 2);
#   82|   	if (reply.nameLength == 0) {
#   83|-> 	    _XEatDataWords(dpy, reply_left);
#   84|   	    break;
#   85|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
libX11-1.8.12/src/FontInfo.c:83:13: warning[-Wanalyzer-malloc-leak]: leak of 'flist'
libX11-1.8.12/src/FontInfo.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:80:22: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:82:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:86:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:86:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:88:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:88:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:89:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:91:16: branch_false: following 'false' branch (when 'size <= 22369620')...
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: following 'false' branch (when 'finfo' is NULL)...
libX11-1.8.12/src/FontInfo.c:111:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:111:20: branch_false: following 'false' branch (when 'finfo' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:113:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:113:32: acquire_memory: allocated here
libX11-1.8.12/src/FontInfo.c:113:20: branch_false: following 'false' branch (when 'flist' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:119:20: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:140:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:142:22: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:143:16: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:144:34: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:147:16: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:149:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:155:12: branch_true: following 'true' branch (when 'i == 0')...
libX11-1.8.12/src/FontInfo.c:156:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:158:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:162:12: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:162:12: branch_true: following 'true' branch (when 'i == 0')...
libX11-1.8.12/src/FontInfo.c:163:14: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:80:22: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:82:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:83:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:83:13: throw: if '_XEatDataWords' throws an exception...
libX11-1.8.12/src/FontInfo.c:83:13: danger: 'flist' leaks here; was allocated at [(15)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/14)
#   81|   	    ((SIZEOF(xListFontsWithInfoReply) -	SIZEOF(xGenericReply)) >> 2);
#   82|   	if (reply.nameLength == 0) {
#   83|-> 	    _XEatDataWords(dpy, reply_left);
#   84|   	    break;
#   85|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def166]
libX11-1.8.12/src/FontInfo.c:121:9: warning[-Wanalyzer-null-dereference]: dereference of NULL 'fs'
libX11-1.8.12/src/FontInfo.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:80:22: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:82:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:86:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:86:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:88:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:88:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:119:20: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:121:9: danger: dereference of NULL 'fs'
#  119|   	fs = &finfo[i];
#  120|   
#  121|-> 	fs->ext_data 		= NULL;
#  122|   	fs->per_char		= NULL;
#  123|   	fs->fid 		= None;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
libX11-1.8.12/src/FontInfo.c:149:13: warning[-Wanalyzer-malloc-leak]: leak of '*fs.properties'
libX11-1.8.12/src/FontInfo.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:80:22: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:82:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:86:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:86:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:88:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:88:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:89:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:91:16: branch_false: following 'false' branch (when 'size <= 22369620')...
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: following 'false' branch (when 'finfo' is NULL)...
libX11-1.8.12/src/FontInfo.c:111:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:111:20: branch_false: following 'false' branch (when 'finfo' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:113:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:113:20: branch_false: following 'false' branch (when 'flist' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:119:20: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:140:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:142:22: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:143:16: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:144:34: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:144:34: acquire_memory: allocated here
libX11-1.8.12/src/FontInfo.c:147:16: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:149:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:149:13: danger: '*fs.properties' leaks here; was allocated at [(21)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/20)
#  147|   	    if (! fs->properties)
#  148|   		goto badmem;
#  149|-> 	    _XRead32 (dpy, (long *)fs->properties, nbytes);
#  150|   	    reply_left -= (nbytes >> 2);
#  151|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def168]
libX11-1.8.12/src/FontInfo.c:149:13: warning[-Wanalyzer-malloc-leak]: leak of 'finfo'
libX11-1.8.12/src/FontInfo.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:80:22: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:82:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:86:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:86:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:88:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:88:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:89:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:91:16: branch_false: following 'false' branch (when 'size <= 22369620')...
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: following 'false' branch (when 'finfo' is NULL)...
libX11-1.8.12/src/FontInfo.c:111:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:111:32: acquire_memory: allocated here
libX11-1.8.12/src/FontInfo.c:111:20: branch_false: following 'false' branch (when 'finfo' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:113:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:113:20: branch_false: following 'false' branch (when 'flist' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:119:20: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:140:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:142:22: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:143:16: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:144:34: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:147:16: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:149:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:149:13: throw: if '_XRead32' throws an exception...
libX11-1.8.12/src/FontInfo.c:149:13: danger: 'finfo' leaks here; was allocated at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
#  147|   	    if (! fs->properties)
#  148|   		goto badmem;
#  149|-> 	    _XRead32 (dpy, (long *)fs->properties, nbytes);
#  150|   	    reply_left -= (nbytes >> 2);
#  151|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def169]
libX11-1.8.12/src/FontInfo.c:149:13: warning[-Wanalyzer-malloc-leak]: leak of 'flist'
libX11-1.8.12/src/FontInfo.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:80:22: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:82:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:86:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:86:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:88:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:88:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:89:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:91:16: branch_false: following 'false' branch (when 'size <= 22369620')...
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: following 'false' branch (when 'finfo' is NULL)...
libX11-1.8.12/src/FontInfo.c:111:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:111:20: branch_false: following 'false' branch (when 'finfo' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:113:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:113:32: acquire_memory: allocated here
libX11-1.8.12/src/FontInfo.c:113:20: branch_false: following 'false' branch (when 'flist' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:119:20: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:140:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:142:22: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:143:16: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:144:34: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:147:16: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:149:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:149:13: throw: if '_XRead32' throws an exception...
libX11-1.8.12/src/FontInfo.c:149:13: danger: 'flist' leaks here; was allocated at [(15)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/14)
#  147|   	    if (! fs->properties)
#  148|   		goto badmem;
#  149|-> 	    _XRead32 (dpy, (long *)fs->properties, nbytes);
#  150|   	    reply_left -= (nbytes >> 2);
#  151|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
libX11-1.8.12/src/FontInfo.c:167:9: warning[-Wanalyzer-malloc-leak]: leak of 'finfo'
libX11-1.8.12/src/FontInfo.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:80:22: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:82:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:86:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:86:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:88:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:88:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:89:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:91:16: branch_false: following 'false' branch (when 'size <= 22369620')...
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: following 'false' branch (when 'finfo' is NULL)...
libX11-1.8.12/src/FontInfo.c:111:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:111:32: acquire_memory: allocated here
libX11-1.8.12/src/FontInfo.c:111:20: branch_false: following 'false' branch (when 'finfo' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:113:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:113:20: branch_false: following 'false' branch (when 'flist' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:119:20: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:140:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:142:22: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:143:16: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:144:34: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:147:16: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:149:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:155:12: branch_true: following 'true' branch (when 'i == 0')...
libX11-1.8.12/src/FontInfo.c:156:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:158:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:162:12: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:162:12: branch_true: following 'true' branch (when 'i == 0')...
libX11-1.8.12/src/FontInfo.c:163:14: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:167:9: throw: if '_XReadPad' throws an exception...
libX11-1.8.12/src/FontInfo.c:167:9: danger: 'finfo' leaks here; was allocated at [(13)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/12)
#  165|   	}
#  166|   	flist[i][reply.nameLength] = '\0';
#  167|-> 	_XReadPad (dpy, flist[i], (long) reply.nameLength);
#  168|       }
#  169|       *info = finfo;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
libX11-1.8.12/src/FontInfo.c:167:9: warning[-Wanalyzer-malloc-leak]: leak of 'flist'
libX11-1.8.12/src/FontInfo.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:80:22: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:82:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:86:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:86:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:88:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:88:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:89:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:91:16: branch_false: following 'false' branch (when 'size <= 22369620')...
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: following 'false' branch (when 'finfo' is NULL)...
libX11-1.8.12/src/FontInfo.c:111:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:111:20: branch_false: following 'false' branch (when 'finfo' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:113:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:113:32: acquire_memory: allocated here
libX11-1.8.12/src/FontInfo.c:113:20: branch_false: following 'false' branch (when 'flist' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:119:20: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:140:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:142:22: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:143:16: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:144:34: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:147:16: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:149:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:155:12: branch_true: following 'true' branch (when 'i == 0')...
libX11-1.8.12/src/FontInfo.c:156:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:158:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:162:12: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:162:12: branch_true: following 'true' branch (when 'i == 0')...
libX11-1.8.12/src/FontInfo.c:163:14: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:167:9: throw: if '_XReadPad' throws an exception...
libX11-1.8.12/src/FontInfo.c:167:9: danger: 'flist' leaks here; was allocated at [(15)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/14)
#  165|   	}
#  166|   	flist[i][reply.nameLength] = '\0';
#  167|-> 	_XReadPad (dpy, flist[i], (long) reply.nameLength);
#  168|       }
#  169|       *info = finfo;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
libX11-1.8.12/src/FontInfo.c:173:5: warning[-Wanalyzer-malloc-leak]: leak of 'flist'
libX11-1.8.12/src/FontInfo.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:80:22: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:82:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:86:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:86:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:88:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:88:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:89:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:91:16: branch_false: following 'false' branch (when 'size <= 22369620')...
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: following 'false' branch (when 'finfo' is NULL)...
libX11-1.8.12/src/FontInfo.c:111:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:111:20: branch_false: following 'false' branch (when 'finfo' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:113:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:113:32: acquire_memory: allocated here
libX11-1.8.12/src/FontInfo.c:113:20: branch_false: following 'false' branch (when 'flist' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:119:20: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:140:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:142:22: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:143:16: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:144:34: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:147:16: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:149:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:155:12: branch_true: following 'true' branch (when 'i == 0')...
libX11-1.8.12/src/FontInfo.c:156:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:158:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:162:12: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:162:12: branch_true: following 'true' branch (when 'i == 0')...
libX11-1.8.12/src/FontInfo.c:163:14: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:80:22: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:171:8: branch_true: following 'true' branch (when 'flist' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:172:14: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:173:5: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:173:5: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:173:5: throw: if the called function throws an exception...
libX11-1.8.12/src/FontInfo.c:173:5: danger: 'flist' leaks here; was allocated at [(15)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/14)
#  171|       if (flist)
#  172|   	flist[i] = NULL; /* required in case XFreeFontNames is called */
#  173|->     UnlockDisplay(dpy);
#  174|       SyncHandle();
#  175|       return (flist);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
libX11-1.8.12/src/FontInfo.c:174:5: warning[-Wanalyzer-malloc-leak]: leak of 'flist'
libX11-1.8.12/src/FontInfo.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:80:22: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:82:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:86:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:86:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:88:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:88:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:89:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:91:16: branch_false: following 'false' branch (when 'size <= 22369620')...
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:94:16: branch_false: following 'false' branch (when 'finfo' is NULL)...
libX11-1.8.12/src/FontInfo.c:111:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:111:20: branch_false: following 'false' branch (when 'finfo' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:113:32: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:113:32: acquire_memory: allocated here
libX11-1.8.12/src/FontInfo.c:113:20: branch_false: following 'false' branch (when 'flist' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:119:20: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:140:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:142:22: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:143:16: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:144:34: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:147:16: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:149:13: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:155:12: branch_true: following 'true' branch (when 'i == 0')...
libX11-1.8.12/src/FontInfo.c:156:13: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:158:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:162:12: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:162:12: branch_true: following 'true' branch (when 'i == 0')...
libX11-1.8.12/src/FontInfo.c:163:14: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:80:22: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:171:8: branch_true: following 'true' branch (when 'flist' is non-NULL)...
libX11-1.8.12/src/FontInfo.c:172:14: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:173:5: branch_false: following 'false' branch...
libX11-1.8.12/src/FontInfo.c:174:5: branch_false: ...to here
libX11-1.8.12/src/FontInfo.c:174:5: branch_true: following 'true' branch...
libX11-1.8.12/src/FontInfo.c:174:5: branch_true: ...to here
libX11-1.8.12/src/FontInfo.c:174:5: throw: if the called function throws an exception...
libX11-1.8.12/src/FontInfo.c:174:5: danger: 'flist' leaks here; was allocated at [(15)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/14)
#  172|   	flist[i] = NULL; /* required in case XFreeFontNames is called */
#  173|       UnlockDisplay(dpy);
#  174|->     SyncHandle();
#  175|       return (flist);
#  176|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
libX11-1.8.12/src/FontNames.c:90:9: warning[-Wanalyzer-malloc-leak]: leak of 'ch'
libX11-1.8.12/src/FontNames.c:65:8: branch_false: following 'false' branch...
libX11-1.8.12/src/FontNames.c:72:9: branch_false: ...to here
libX11-1.8.12/src/FontNames.c:72:8: branch_true: following 'true' branch...
libX11-1.8.12/src/FontNames.c:73:17: branch_true: ...to here
libX11-1.8.12/src/FontNames.c:74:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontNames.c:75:20: branch_true: ...to here
libX11-1.8.12/src/FontNames.c:76:18: acquire_memory: allocated here
libX11-1.8.12/src/FontNames.c:80:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontNames.c:90:9: branch_false: ...to here
libX11-1.8.12/src/FontNames.c:90:9: throw: if '_XReadPad' throws an exception...
libX11-1.8.12/src/FontNames.c:90:9: danger: 'ch' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#   88|   	}
#   89|   
#   90|-> 	_XReadPad (dpy, ch, rlen);
#   91|   	/*
#   92|   	 * unpack into null terminated strings.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
libX11-1.8.12/src/FontNames.c:90:9: warning[-Wanalyzer-malloc-leak]: leak of 'flist'
libX11-1.8.12/src/FontNames.c:65:8: branch_false: following 'false' branch...
libX11-1.8.12/src/FontNames.c:72:9: branch_false: ...to here
libX11-1.8.12/src/FontNames.c:72:8: branch_true: following 'true' branch...
libX11-1.8.12/src/FontNames.c:73:17: branch_true: ...to here
libX11-1.8.12/src/FontNames.c:73:17: acquire_memory: allocated here
libX11-1.8.12/src/FontNames.c:74:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontNames.c:75:20: branch_true: ...to here
libX11-1.8.12/src/FontNames.c:80:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontNames.c:90:9: branch_false: ...to here
libX11-1.8.12/src/FontNames.c:90:9: throw: if '_XReadPad' throws an exception...
libX11-1.8.12/src/FontNames.c:90:9: danger: 'flist' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   88|   	}
#   89|   
#   90|-> 	_XReadPad (dpy, ch, rlen);
#   91|   	/*
#   92|   	 * unpack into null terminated strings.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
libX11-1.8.12/src/FontNames.c:115:5: warning[-Wanalyzer-malloc-leak]: leak of 'flist'
libX11-1.8.12/src/FontNames.c:65:8: branch_false: following 'false' branch...
libX11-1.8.12/src/FontNames.c:72:9: branch_false: ...to here
libX11-1.8.12/src/FontNames.c:72:8: branch_true: following 'true' branch...
libX11-1.8.12/src/FontNames.c:73:17: branch_true: ...to here
libX11-1.8.12/src/FontNames.c:73:17: acquire_memory: allocated here
libX11-1.8.12/src/FontNames.c:74:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontNames.c:75:20: branch_true: ...to here
libX11-1.8.12/src/FontNames.c:80:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontNames.c:90:9: branch_false: ...to here
libX11-1.8.12/src/FontNames.c:115:5: branch_true: following 'true' branch...
libX11-1.8.12/src/FontNames.c:115:5: branch_true: ...to here
libX11-1.8.12/src/FontNames.c:115:5: throw: if the called function throws an exception...
libX11-1.8.12/src/FontNames.c:115:5: danger: 'flist' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  113|       }
#  114|       *actualCount = count;
#  115|->     UnlockDisplay(dpy);
#  116|       SyncHandle();
#  117|       return (flist);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
libX11-1.8.12/src/FontNames.c:116:5: warning[-Wanalyzer-malloc-leak]: leak of 'flist'
libX11-1.8.12/src/FontNames.c:65:8: branch_false: following 'false' branch...
libX11-1.8.12/src/FontNames.c:72:9: branch_false: ...to here
libX11-1.8.12/src/FontNames.c:72:8: branch_true: following 'true' branch...
libX11-1.8.12/src/FontNames.c:73:17: branch_true: ...to here
libX11-1.8.12/src/FontNames.c:73:17: acquire_memory: allocated here
libX11-1.8.12/src/FontNames.c:74:12: branch_true: following 'true' branch...
libX11-1.8.12/src/FontNames.c:75:20: branch_true: ...to here
libX11-1.8.12/src/FontNames.c:80:12: branch_false: following 'false' branch...
libX11-1.8.12/src/FontNames.c:90:9: branch_false: ...to here
libX11-1.8.12/src/FontNames.c:115:5: branch_false: following 'false' branch...
libX11-1.8.12/src/FontNames.c:116:5: branch_false: ...to here
libX11-1.8.12/src/FontNames.c:116:5: branch_true: following 'true' branch...
libX11-1.8.12/src/FontNames.c:116:5: branch_true: ...to here
libX11-1.8.12/src/FontNames.c:116:5: throw: if the called function throws an exception...
libX11-1.8.12/src/FontNames.c:116:5: danger: 'flist' leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  114|       *actualCount = count;
#  115|       UnlockDisplay(dpy);
#  116|->     SyncHandle();
#  117|       return (flist);
#  118|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
libX11-1.8.12/src/GetAtomNm.c:43:9: warning[-Wanalyzer-malloc-leak]: leak of '_XGetAtomName(dpy,  atom)'
libX11-1.8.12/src/GetAtomNm.c:55:7: enter_function: entry to 'XGetAtomName'
libX11-1.8.12/src/GetAtomNm.c:63:17: call_function: calling '_XGetAtomName' from 'XGetAtomName'
libX11-1.8.12/src/GetAtomNm.c:63:17: return_function: returning to 'XGetAtomName' from '_XGetAtomName'
libX11-1.8.12/src/GetAtomNm.c:63:8: branch_true: following 'true' branch...
libX11-1.8.12/src/GetAtomNm.c:64:9: branch_true: ...to here
libX11-1.8.12/src/GetAtomNm.c:64:9: branch_true: following 'true' branch...
libX11-1.8.12/src/GetAtomNm.c:64:9: branch_true: ...to here
libX11-1.8.12/src/GetAtomNm.c:64:9: throw: if the called function throws an exception...
libX11-1.8.12/src/GetAtomNm.c:43:9: danger: '_XGetAtomName(dpy,  atom)' leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
#   41|       register Entry e;
#   42|   
#   43|->     if (dpy->atoms) {
#   44|   	table = dpy->atoms->table;
#   45|   	for (idx = TABLESIZE; --idx >= 0; ) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
libX11-1.8.12/src/GetAtomNm.c:73:9: warning[-Wanalyzer-malloc-leak]: leak of 'name'
libX11-1.8.12/src/GetAtomNm.c:63:8: branch_false: following 'false' branch...
libX11-1.8.12/src/GetAtomNm.c:67:9: branch_false: ...to here
libX11-1.8.12/src/GetAtomNm.c:67:8: branch_false: following 'false' branch...
libX11-1.8.12/src/GetAtomNm.c:72:17: branch_false: ...to here
libX11-1.8.12/src/GetAtomNm.c:72:17: acquire_memory: allocated here
libX11-1.8.12/src/GetAtomNm.c:72:8: branch_true: following 'true' branch (when 'name' is non-NULL)...
libX11-1.8.12/src/GetAtomNm.c:73:9: branch_true: ...to here
libX11-1.8.12/src/GetAtomNm.c:73:9: throw: if '_XReadPad' throws an exception...
libX11-1.8.12/src/GetAtomNm.c:73:9: danger: 'name' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   71|       }
#   72|       if ((name = Xmalloc(rep.nameLength + 1))) {
#   73|-> 	_XReadPad(dpy, name, (long)rep.nameLength);
#   74|   	name[rep.nameLength] = '\0';
#   75|   	_XUpdateAtomCache(dpy, name, atom, 0, -1, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
libX11-1.8.12/src/GetAtomNm.c:124:5: warning[-Wanalyzer-malloc-leak]: leak of 'malloc((long unsigned int)((int)*<unknown>.nameLength + 1))'
libX11-1.8.12/src/GetAtomNm.c:114:8: branch_false: following 'false' branch...
libX11-1.8.12/src/GetAtomNm.c:116:9: branch_false: ...to here
libX11-1.8.12/src/GetAtomNm.c:116:8: branch_false: following 'false' branch...
libX11-1.8.12/src/GetAtomNm.c:121:9: branch_false: ...to here
libX11-1.8.12/src/GetAtomNm.c:124:32: acquire_memory: allocated here
libX11-1.8.12/src/GetAtomNm.c:124:5: danger: 'malloc((long unsigned int)((int)*<unknown>.nameLength + 1))' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  122|   			(SIZEOF(xGetAtomNameReply) - SIZEOF(xReply)) >> 2,
#  123|   			False);
#  124|->     state->names[state->idx] = Xmalloc(repl->nameLength + 1);
#  125|       _XGetAsyncData(dpy, state->names[state->idx], buf, len,
#  126|   		   SIZEOF(xGetAtomNameReply), repl->nameLength,

Error: COMPILER_WARNING (CWE-704): [#def181]
libX11-1.8.12/src/GetDflt.c: scope_hint: In function 'XGetDefault'
libX11-1.8.12/src/GetDflt.c:191:18: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  191 |         progname = strrchr (prog, '/');
#      |                  ^
#  189|   	 * strip path off of program name (XXX - this is OS specific)
#  190|   	 */
#  191|-> 	progname = strrchr (prog, '/');
#  192|   #ifdef WIN32
#  193|   	progname2 = strrchr (prog, '\\');

Error: COMPILER_WARNING (CWE-704): [#def182]
libX11-1.8.12/src/GetDflt.c:191:18: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  189|   	 * strip path off of program name (XXX - this is OS specific)
#  190|   	 */
#  191|-> 	progname = strrchr (prog, '/');
#  192|   #ifdef WIN32
#  193|   	progname2 = strrchr (prog, '\\');

Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
libX11-1.8.12/src/GetFPath.c:69:13: warning[-Wanalyzer-malloc-leak]: leak of 'ch'
libX11-1.8.12/src/GetFPath.c:52:12: branch_true: following 'true' branch...
libX11-1.8.12/src/GetFPath.c:53:21: branch_true: ...to here
libX11-1.8.12/src/GetFPath.c:54:16: branch_true: following 'true' branch...
libX11-1.8.12/src/GetFPath.c:55:26: branch_true: ...to here
libX11-1.8.12/src/GetFPath.c:56:22: acquire_memory: allocated here
libX11-1.8.12/src/GetFPath.c:60:16: branch_false: following 'false' branch...
libX11-1.8.12/src/GetFPath.c:69:13: branch_false: ...to here
libX11-1.8.12/src/GetFPath.c:69:13: throw: if '_XReadPad' throws an exception...
libX11-1.8.12/src/GetFPath.c:69:13: danger: 'ch' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   67|   	    }
#   68|   
#   69|-> 	    _XReadPad (dpy, ch, nbytes);
#   70|   	    /*
#   71|   	     * unpack into null terminated strings.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
libX11-1.8.12/src/GetFPath.c:69:13: warning[-Wanalyzer-malloc-leak]: leak of 'flist'
libX11-1.8.12/src/GetFPath.c:52:12: branch_true: following 'true' branch...
libX11-1.8.12/src/GetFPath.c:53:21: branch_true: ...to here
libX11-1.8.12/src/GetFPath.c:53:21: acquire_memory: allocated here
libX11-1.8.12/src/GetFPath.c:54:16: branch_true: following 'true' branch...
libX11-1.8.12/src/GetFPath.c:55:26: branch_true: ...to here
libX11-1.8.12/src/GetFPath.c:60:16: branch_false: following 'false' branch...
libX11-1.8.12/src/GetFPath.c:69:13: branch_false: ...to here
libX11-1.8.12/src/GetFPath.c:69:13: throw: if '_XReadPad' throws an exception...
libX11-1.8.12/src/GetFPath.c:69:13: danger: 'flist' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   67|   	    }
#   68|   
#   69|-> 	    _XReadPad (dpy, ch, nbytes);
#   70|   	    /*
#   71|   	     * unpack into null terminated strings.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
libX11-1.8.12/src/GetFPath.c:92:9: warning[-Wanalyzer-malloc-leak]: leak of 'flist'
libX11-1.8.12/src/GetFPath.c:52:12: branch_true: following 'true' branch...
libX11-1.8.12/src/GetFPath.c:53:21: branch_true: ...to here
libX11-1.8.12/src/GetFPath.c:53:21: acquire_memory: allocated here
libX11-1.8.12/src/GetFPath.c:54:16: branch_true: following 'true' branch...
libX11-1.8.12/src/GetFPath.c:55:26: branch_true: ...to here
libX11-1.8.12/src/GetFPath.c:60:16: branch_false: following 'false' branch...
libX11-1.8.12/src/GetFPath.c:69:13: branch_false: ...to here
libX11-1.8.12/src/GetFPath.c:75:25: branch_false: following 'false' branch...
libX11-1.8.12/src/GetFPath.c:91:9: branch_false: ...to here
libX11-1.8.12/src/GetFPath.c:92:9: branch_true: following 'true' branch...
libX11-1.8.12/src/GetFPath.c:92:9: branch_true: ...to here
libX11-1.8.12/src/GetFPath.c:92:9: throw: if the called function throws an exception...
libX11-1.8.12/src/GetFPath.c:92:9: danger: 'flist' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#   90|   	}
#   91|   	*npaths = count;
#   92|-> 	UnlockDisplay(dpy);
#   93|   	SyncHandle();
#   94|   	return (flist);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
libX11-1.8.12/src/GetFPath.c:93:9: warning[-Wanalyzer-malloc-leak]: leak of 'flist'
libX11-1.8.12/src/GetFPath.c:52:12: branch_true: following 'true' branch...
libX11-1.8.12/src/GetFPath.c:53:21: branch_true: ...to here
libX11-1.8.12/src/GetFPath.c:53:21: acquire_memory: allocated here
libX11-1.8.12/src/GetFPath.c:54:16: branch_true: following 'true' branch...
libX11-1.8.12/src/GetFPath.c:55:26: branch_true: ...to here
libX11-1.8.12/src/GetFPath.c:60:16: branch_false: following 'false' branch...
libX11-1.8.12/src/GetFPath.c:69:13: branch_false: ...to here
libX11-1.8.12/src/GetFPath.c:75:25: branch_false: following 'false' branch...
libX11-1.8.12/src/GetFPath.c:91:9: branch_false: ...to here
libX11-1.8.12/src/GetFPath.c:92:9: branch_false: following 'false' branch...
libX11-1.8.12/src/GetFPath.c:93:9: branch_false: ...to here
libX11-1.8.12/src/GetFPath.c:93:9: branch_true: following 'true' branch...
libX11-1.8.12/src/GetFPath.c:93:9: branch_true: ...to here
libX11-1.8.12/src/GetFPath.c:93:9: throw: if the called function throws an exception...
libX11-1.8.12/src/GetFPath.c:93:9: danger: 'flist' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#   91|   	*npaths = count;
#   92|   	UnlockDisplay(dpy);
#   93|-> 	SyncHandle();
#   94|   	return (flist);
#   95|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
libX11-1.8.12/src/GetImage.c:103:9: warning[-Wanalyzer-malloc-leak]: leak of 'data'
libX11-1.8.12/src/GetImage.c:85:12: branch_false: following 'false' branch...
libX11-1.8.12/src/GetImage.c:86:13: branch_false: ...to here
libX11-1.8.12/src/GetImage.c:85:13: branch_false: following 'false' branch...
libX11-1.8.12/src/GetImage.c:92:12: branch_false: ...to here
libX11-1.8.12/src/GetImage.c:92:12: branch_true: following 'true' branch...
libX11-1.8.12/src/GetImage.c:93:22: branch_true: ...to here
libX11-1.8.12/src/GetImage.c:94:20: acquire_memory: allocated here
libX11-1.8.12/src/GetImage.c:97:12: branch_false: following 'false' branch (when 'data' is non-NULL)...
libX11-1.8.12/src/GetImage.c:103:9: branch_false: ...to here
libX11-1.8.12/src/GetImage.c:103:9: throw: if '_XReadPad' throws an exception...
libX11-1.8.12/src/GetImage.c:103:9: danger: 'data' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  101|   	    return (XImage *) NULL;
#  102|   	}
#  103|->         _XReadPad (dpy, data, nbytes);
#  104|           if (format == XYPixmap) {
#  105|   	    image = XCreateImage(dpy, _XVIDtoVisual(dpy, rep.visual),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
libX11-1.8.12/src/GetMoEv.c:71:13: warning[-Wanalyzer-malloc-leak]: leak of 'tc'
libX11-1.8.12/src/GetMoEv.c:50:8: branch_false: following 'false' branch...
libX11-1.8.12/src/GetMoEv.c:56:9: branch_false: ...to here
libX11-1.8.12/src/GetMoEv.c:56:8: branch_true: following 'true' branch...
libX11-1.8.12/src/GetMoEv.c:57:14: branch_true: ...to here
libX11-1.8.12/src/GetMoEv.c:57:14: acquire_memory: allocated here
libX11-1.8.12/src/GetMoEv.c:58:8: branch_false: following 'false' branch (when 'tc' is non-NULL)...
libX11-1.8.12/src/GetMoEv.c:69:26: branch_false: ...to here
libX11-1.8.12/src/GetMoEv.c:70:43: branch_true: following 'true' branch (when 'i != 0')...
libX11-1.8.12/src/GetMoEv.c:71:13: branch_true: ...to here
libX11-1.8.12/src/GetMoEv.c:70:43: branch_true: following 'true' branch (when 'i != 0')...
libX11-1.8.12/src/GetMoEv.c:71:13: branch_true: ...to here
libX11-1.8.12/src/GetMoEv.c:71:13: throw: if '_XRead' throws an exception...
libX11-1.8.12/src/GetMoEv.c:71:13: danger: 'tc' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   69|   	*nEvents = (int) rep.nEvents;
#   70|   	for (i = rep.nEvents, tcptr = tc; i > 0; i--, tcptr++) {
#   71|-> 	    _XRead (dpy, (char *) &xtc, SIZEOF (xTimecoord));
#   72|   	    tcptr->time = xtc.time;
#   73|   	    tcptr->x    = cvtINT16toShort (xtc.x);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
libX11-1.8.12/src/GetMoEv.c:71:13: warning[-Wanalyzer-malloc-leak]: leak of 'tcptr'
libX11-1.8.12/src/GetMoEv.c:50:8: branch_false: following 'false' branch...
libX11-1.8.12/src/GetMoEv.c:56:9: branch_false: ...to here
libX11-1.8.12/src/GetMoEv.c:56:8: branch_true: following 'true' branch...
libX11-1.8.12/src/GetMoEv.c:57:14: branch_true: ...to here
libX11-1.8.12/src/GetMoEv.c:57:14: acquire_memory: allocated here
libX11-1.8.12/src/GetMoEv.c:58:8: branch_false: following 'false' branch (when 'tc' is non-NULL)...
libX11-1.8.12/src/GetMoEv.c:69:26: branch_false: ...to here
libX11-1.8.12/src/GetMoEv.c:70:43: branch_true: following 'true' branch (when 'i != 0')...
libX11-1.8.12/src/GetMoEv.c:71:13: branch_true: ...to here
libX11-1.8.12/src/GetMoEv.c:71:13: throw: if '_XRead' throws an exception...
libX11-1.8.12/src/GetMoEv.c:71:13: danger: 'tcptr' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   69|   	*nEvents = (int) rep.nEvents;
#   70|   	for (i = rep.nEvents, tcptr = tc; i > 0; i--, tcptr++) {
#   71|-> 	    _XRead (dpy, (char *) &xtc, SIZEOF (xTimecoord));
#   72|   	    tcptr->time = xtc.time;
#   73|   	    tcptr->x    = cvtINT16toShort (xtc.x);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
libX11-1.8.12/src/GetMoEv.c:78:5: warning[-Wanalyzer-malloc-leak]: leak of 'tc'
libX11-1.8.12/src/GetMoEv.c:50:8: branch_false: following 'false' branch...
libX11-1.8.12/src/GetMoEv.c:56:9: branch_false: ...to here
libX11-1.8.12/src/GetMoEv.c:56:8: branch_true: following 'true' branch...
libX11-1.8.12/src/GetMoEv.c:57:14: branch_true: ...to here
libX11-1.8.12/src/GetMoEv.c:57:14: acquire_memory: allocated here
libX11-1.8.12/src/GetMoEv.c:58:8: branch_false: following 'false' branch (when 'tc' is non-NULL)...
libX11-1.8.12/src/GetMoEv.c:69:26: branch_false: ...to here
libX11-1.8.12/src/GetMoEv.c:70:43: branch_true: following 'true' branch (when 'i != 0')...
libX11-1.8.12/src/GetMoEv.c:71:13: branch_true: ...to here
libX11-1.8.12/src/GetMoEv.c:78:5: branch_true: following 'true' branch...
libX11-1.8.12/src/GetMoEv.c:78:5: branch_true: ...to here
libX11-1.8.12/src/GetMoEv.c:78:5: throw: if the called function throws an exception...
libX11-1.8.12/src/GetMoEv.c:78:5: danger: 'tc' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#   76|       }
#   77|   
#   78|->     UnlockDisplay(dpy);
#   79|       SyncHandle();
#   80|       return (tc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def191]
libX11-1.8.12/src/GetMoEv.c:79:5: warning[-Wanalyzer-malloc-leak]: leak of 'tc'
libX11-1.8.12/src/GetMoEv.c:50:8: branch_false: following 'false' branch...
libX11-1.8.12/src/GetMoEv.c:56:9: branch_false: ...to here
libX11-1.8.12/src/GetMoEv.c:56:8: branch_true: following 'true' branch...
libX11-1.8.12/src/GetMoEv.c:57:14: branch_true: ...to here
libX11-1.8.12/src/GetMoEv.c:57:14: acquire_memory: allocated here
libX11-1.8.12/src/GetMoEv.c:58:8: branch_false: following 'false' branch (when 'tc' is non-NULL)...
libX11-1.8.12/src/GetMoEv.c:69:26: branch_false: ...to here
libX11-1.8.12/src/GetMoEv.c:70:43: branch_true: following 'true' branch (when 'i != 0')...
libX11-1.8.12/src/GetMoEv.c:71:13: branch_true: ...to here
libX11-1.8.12/src/GetMoEv.c:79:5: branch_true: following 'true' branch...
libX11-1.8.12/src/GetMoEv.c:79:5: branch_true: ...to here
libX11-1.8.12/src/GetMoEv.c:79:5: throw: if the called function throws an exception...
libX11-1.8.12/src/GetMoEv.c:79:5: danger: 'tc' leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#   77|   
#   78|       UnlockDisplay(dpy);
#   79|->     SyncHandle();
#   80|       return (tc);
#   81|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
libX11-1.8.12/src/GetPntMap.c:125:9: warning[-Wanalyzer-malloc-leak]: leak of 'mapping'
libX11-1.8.12/src/GetPntMap.c:107:8: branch_false: following 'false' branch...
libX11-1.8.12/src/GetPntMap.c:113:5: branch_false: ...to here
libX11-1.8.12/src/GetPntMap.c:114:8: branch_true: following 'true' branch (when 'nkeysyms != 0')...
libX11-1.8.12/src/GetPntMap.c:115:12: branch_true: ...to here
libX11-1.8.12/src/GetPntMap.c:115:12: branch_true: following 'true' branch (when 'nkeysyms <= 268435454')...
libX11-1.8.12/src/GetPntMap.c:116:23: branch_true: ...to here
libX11-1.8.12/src/GetPntMap.c:116:23: acquire_memory: allocated here
libX11-1.8.12/src/GetPntMap.c:118:12: branch_false: following 'false' branch (when 'mapping' is non-NULL)...
libX11-1.8.12/src/GetPntMap.c:124:18: branch_false: ...to here
libX11-1.8.12/src/GetPntMap.c:125:9: throw: if '_XRead32' throws an exception...
libX11-1.8.12/src/GetPntMap.c:125:9: danger: 'mapping' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  123|   	}
#  124|   	nbytes = nkeysyms << 2;
#  125|-> 	_XRead32 (dpy, (long *) mapping, nbytes);
#  126|       }
#  127|       *keysyms_per_keycode = rep.keySymsPerKeyCode;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
libX11-1.8.12/src/ImUtil.c:894:25: warning[-Wanalyzer-malloc-leak]: leak of 'data'
libX11-1.8.12/src/ImUtil.c:837:16: enter_function: entry to '_XSubImage'
libX11-1.8.12/src/ImUtil.c:851:12: branch_false: following 'false' branch (when 'subimage' is non-NULL)...
libX11-1.8.12/src/ImUtil.c:853:9: branch_false: ...to here
libX11-1.8.12/src/ImUtil.c:874:9: call_function: calling '_XInitImageFuncPtrs' from '_XSubImage'
libX11-1.8.12/src/ImUtil.c:874:9: return_function: returning to '_XSubImage' from '_XInitImageFuncPtrs'
libX11-1.8.12/src/ImUtil.c:876:12: branch_false: following 'false' branch...
libX11-1.8.12/src/ImUtil.c:877:22: branch_false: ...to here
libX11-1.8.12/src/ImUtil.c:877:22: acquire_memory: allocated here
libX11-1.8.12/src/ImUtil.c:877:12: branch_false: following 'false' branch (when 'data' is non-NULL)...
libX11-1.8.12/src/ImUtil.c:881:9: branch_false: ...to here
libX11-1.8.12/src/ImUtil.c:892:23: branch_true: following 'true' branch...
libX11-1.8.12/src/ImUtil.c:892:23: branch_true: ...to here
libX11-1.8.12/src/ImUtil.c:893:27: branch_true: following 'true' branch...
libX11-1.8.12/src/ImUtil.c:894:25: branch_true: ...to here
libX11-1.8.12/src/ImUtil.c:894:25: throw: if the called function throws an exception...
libX11-1.8.12/src/ImUtil.c:894:25: danger: 'data' leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  892|   	for (row = y; row < (y + height); row++) {
#  893|   	    for (col = x; col < (x + width); col++) {
#  894|-> 		pixel = XGetPixel(ximage, col, row);
#  895|   		XPutPixel(subimage, (col - x), (row - y), pixel);
#  896|   	    }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
libX11-1.8.12/src/ImUtil.c:894:25: warning[-Wanalyzer-malloc-leak]: leak of 'subimage'
libX11-1.8.12/src/ImUtil.c:837:16: enter_function: entry to '_XSubImage'
libX11-1.8.12/src/ImUtil.c:851:25: acquire_memory: allocated here
libX11-1.8.12/src/ImUtil.c:851:12: branch_false: following 'false' branch (when 'subimage' is non-NULL)...
libX11-1.8.12/src/ImUtil.c:853:9: branch_false: ...to here
libX11-1.8.12/src/ImUtil.c:874:9: call_function: calling '_XInitImageFuncPtrs' from '_XSubImage'
libX11-1.8.12/src/ImUtil.c:874:9: return_function: returning to '_XSubImage' from '_XInitImageFuncPtrs'
libX11-1.8.12/src/ImUtil.c:876:12: branch_false: following 'false' branch...
libX11-1.8.12/src/ImUtil.c:877:22: branch_false: ...to here
libX11-1.8.12/src/ImUtil.c:877:12: branch_false: following 'false' branch (when 'data' is non-NULL)...
libX11-1.8.12/src/ImUtil.c:881:9: branch_false: ...to here
libX11-1.8.12/src/ImUtil.c:892:23: branch_true: following 'true' branch...
libX11-1.8.12/src/ImUtil.c:892:23: branch_true: ...to here
libX11-1.8.12/src/ImUtil.c:893:27: branch_true: following 'true' branch...
libX11-1.8.12/src/ImUtil.c:894:25: branch_true: ...to here
libX11-1.8.12/src/ImUtil.c:894:25: throw: if the called function throws an exception...
libX11-1.8.12/src/ImUtil.c:894:25: danger: 'subimage' leaks here; was allocated at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
#  892|   	for (row = y; row < (y + height); row++) {
#  893|   	    for (col = x; col < (x + width); col++) {
#  894|-> 		pixel = XGetPixel(ximage, col, row);
#  895|   		XPutPixel(subimage, (col - x), (row - y), pixel);
#  896|   	    }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def195]
libX11-1.8.12/src/IntAtom.c:180:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'idx'
libX11-1.8.12/src/IntAtom.c:163:1: enter_function: entry to 'XInternAtom'
libX11-1.8.12/src/IntAtom.c:176:17: call_function: calling '_XInternAtom' from 'XInternAtom'
libX11-1.8.12/src/IntAtom.c:176:17: return_function: returning to 'XInternAtom' from '_XInternAtom'
libX11-1.8.12/src/IntAtom.c:176:8: branch_false: following 'false' branch...
libX11-1.8.12/src/IntAtom.c:180:9: branch_false: ...to here
libX11-1.8.12/src/IntAtom.c:180:8: branch_true: following 'true' branch...
libX11-1.8.12/src/IntAtom.c:180:23: branch_true: ...to here
libX11-1.8.12/src/IntAtom.c:180:23: danger: use of uninitialized value 'idx' here
#  178|   	return atom;
#  179|       }
#  180|->     if (dpy->atoms && dpy->atoms->table[idx] == RESERVED)
#  181|   	dpy->atoms->table[idx] = NULL; /* unreserve slot */
#  182|       if (_XReply (dpy, (xReply *)&rep, 0, xTrue)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def196]
libX11-1.8.12/src/LiHosts.c:119:9: warning[-Wanalyzer-malloc-leak]: leak of 'outbuf'
libX11-1.8.12/src/LiHosts.c:87:8: branch_false: following 'false' branch...
libX11-1.8.12/src/LiHosts.c:93:9: branch_false: ...to here
libX11-1.8.12/src/LiHosts.c:93:8: branch_true: following 'true' branch...
libX11-1.8.12/src/LiHosts.c:94:32: branch_true: ...to here
libX11-1.8.12/src/LiHosts.c:102:16: branch_true: following 'true' branch...
libX11-1.8.12/src/LiHosts.c:103:17: branch_true: ...to here
libX11-1.8.12/src/LiHosts.c:102:17: branch_true: following 'true' branch...
libX11-1.8.12/src/LiHosts.c:104:26: branch_true: ...to here
libX11-1.8.12/src/LiHosts.c:104:26: acquire_memory: allocated here
libX11-1.8.12/src/LiHosts.c:107:12: branch_false: following 'false' branch (when 'outbuf' is non-NULL)...
libX11-1.8.12/src/LiHosts.c:115:41: branch_false: ...to here
libX11-1.8.12/src/LiHosts.c:119:9: throw: if '_XRead' throws an exception...
libX11-1.8.12/src/LiHosts.c:119:9: danger: 'outbuf' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  117|   	  + (reply.nHosts * sizeof(XServerInterpretedAddress));
#  118|   
#  119|-> 	_XRead (dpy, (char *) buf, nbytes);
#  120|   
#  121|   	for (i = 0; i < reply.nHosts; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def197]
libX11-1.8.12/src/LiICmaps.c:62:9: warning[-Wanalyzer-malloc-leak]: leak of 'cmaps'
libX11-1.8.12/src/LiICmaps.c:46:7: branch_false: following 'false' branch...
libX11-1.8.12/src/LiICmaps.c:53:9: branch_false: ...to here
libX11-1.8.12/src/LiICmaps.c:53:8: branch_true: following 'true' branch...
libX11-1.8.12/src/LiICmaps.c:54:17: branch_true: ...to here
libX11-1.8.12/src/LiICmaps.c:54:17: acquire_memory: allocated here
libX11-1.8.12/src/LiICmaps.c:55:12: branch_false: following 'false' branch (when 'cmaps' is non-NULL)...
libX11-1.8.12/src/LiICmaps.c:61:18: branch_false: ...to here
libX11-1.8.12/src/LiICmaps.c:62:9: throw: if '_XRead32' throws an exception...
libX11-1.8.12/src/LiICmaps.c:62:9: danger: 'cmaps' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   60|   	}
#   61|   	nbytes = rep.nColormaps << 2;
#   62|-> 	_XRead32 (dpy, (long *) cmaps, nbytes);
#   63|       }
#   64|       else cmaps = (Colormap *) NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
libX11-1.8.12/src/LiProps.c:61:9: warning[-Wanalyzer-malloc-leak]: leak of 'properties'
libX11-1.8.12/src/LiProps.c:45:8: branch_false: following 'false' branch...
libX11-1.8.12/src/LiProps.c:52:9: branch_false: ...to here
libX11-1.8.12/src/LiProps.c:52:8: branch_true: following 'true' branch...
libX11-1.8.12/src/LiProps.c:53:22: branch_true: ...to here
libX11-1.8.12/src/LiProps.c:53:22: acquire_memory: allocated here
libX11-1.8.12/src/LiProps.c:54:12: branch_false: following 'false' branch (when 'properties' is non-NULL)...
libX11-1.8.12/src/LiProps.c:60:18: branch_false: ...to here
libX11-1.8.12/src/LiProps.c:61:9: throw: if '_XRead32' throws an exception...
libX11-1.8.12/src/LiProps.c:61:9: danger: 'properties' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   59|   	}
#   60|   	nbytes = rep.nProperties << 2;
#   61|-> 	_XRead32 (dpy, (long *) properties, nbytes);
#   62|       }
#   63|       else properties = (Atom *) NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
libX11-1.8.12/src/ListExt.c:74:13: warning[-Wanalyzer-malloc-leak]: leak of 'ch'
libX11-1.8.12/src/ListExt.c:51:12: branch_false: following 'false' branch...
libX11-1.8.12/src/ListExt.c:57:13: branch_false: ...to here
libX11-1.8.12/src/ListExt.c:57:12: branch_true: following 'true' branch...
libX11-1.8.12/src/ListExt.c:58:20: branch_true: ...to here
libX11-1.8.12/src/ListExt.c:59:16: branch_true: following 'true' branch...
libX11-1.8.12/src/ListExt.c:60:24: branch_true: ...to here
libX11-1.8.12/src/ListExt.c:61:22: acquire_memory: allocated here
libX11-1.8.12/src/ListExt.c:65:16: branch_false: following 'false' branch...
libX11-1.8.12/src/ListExt.c:74:13: branch_false: ...to here
libX11-1.8.12/src/ListExt.c:74:13: throw: if '_XReadPad' throws an exception...
libX11-1.8.12/src/ListExt.c:74:13: danger: 'ch' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#   72|   	    }
#   73|   
#   74|-> 	    _XReadPad (dpy, ch, rlen);
#   75|   	    /*
#   76|   	     * unpack into null terminated strings.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
libX11-1.8.12/src/ListExt.c:74:13: warning[-Wanalyzer-malloc-leak]: leak of 'list'
libX11-1.8.12/src/ListExt.c:51:12: branch_false: following 'false' branch...
libX11-1.8.12/src/ListExt.c:57:13: branch_false: ...to here
libX11-1.8.12/src/ListExt.c:57:12: branch_true: following 'true' branch...
libX11-1.8.12/src/ListExt.c:58:20: branch_true: ...to here
libX11-1.8.12/src/ListExt.c:58:20: acquire_memory: allocated here
libX11-1.8.12/src/ListExt.c:59:16: branch_true: following 'true' branch...
libX11-1.8.12/src/ListExt.c:60:24: branch_true: ...to here
libX11-1.8.12/src/ListExt.c:65:16: branch_false: following 'false' branch...
libX11-1.8.12/src/ListExt.c:74:13: branch_false: ...to here
libX11-1.8.12/src/ListExt.c:74:13: throw: if '_XReadPad' throws an exception...
libX11-1.8.12/src/ListExt.c:74:13: danger: 'list' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   72|   	    }
#   73|   
#   74|-> 	    _XReadPad (dpy, ch, rlen);
#   75|   	    /*
#   76|   	     * unpack into null terminated strings.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
libX11-1.8.12/src/ListExt.c:98:9: warning[-Wanalyzer-malloc-leak]: leak of 'list'
libX11-1.8.12/src/ListExt.c:51:12: branch_false: following 'false' branch...
libX11-1.8.12/src/ListExt.c:57:13: branch_false: ...to here
libX11-1.8.12/src/ListExt.c:57:12: branch_true: following 'true' branch...
libX11-1.8.12/src/ListExt.c:58:20: branch_true: ...to here
libX11-1.8.12/src/ListExt.c:58:20: acquire_memory: allocated here
libX11-1.8.12/src/ListExt.c:59:16: branch_true: following 'true' branch...
libX11-1.8.12/src/ListExt.c:60:24: branch_true: ...to here
libX11-1.8.12/src/ListExt.c:65:16: branch_false: following 'false' branch...
libX11-1.8.12/src/ListExt.c:74:13: branch_false: ...to here
libX11-1.8.12/src/ListExt.c:80:25: branch_false: following 'false' branch...
libX11-1.8.12/src/ListExt.c:97:9: branch_false: ...to here
libX11-1.8.12/src/ListExt.c:98:9: branch_true: following 'true' branch...
libX11-1.8.12/src/ListExt.c:98:9: branch_true: ...to here
libX11-1.8.12/src/ListExt.c:98:9: throw: if the called function throws an exception...
libX11-1.8.12/src/ListExt.c:98:9: danger: 'list' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#   96|   
#   97|   	*nextensions = count;
#   98|-> 	UnlockDisplay(dpy);
#   99|   	SyncHandle();
#  100|   	return (list);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
libX11-1.8.12/src/ListExt.c:99:9: warning[-Wanalyzer-malloc-leak]: leak of 'list'
libX11-1.8.12/src/ListExt.c:51:12: branch_false: following 'false' branch...
libX11-1.8.12/src/ListExt.c:57:13: branch_false: ...to here
libX11-1.8.12/src/ListExt.c:57:12: branch_true: following 'true' branch...
libX11-1.8.12/src/ListExt.c:58:20: branch_true: ...to here
libX11-1.8.12/src/ListExt.c:58:20: acquire_memory: allocated here
libX11-1.8.12/src/ListExt.c:59:16: branch_true: following 'true' branch...
libX11-1.8.12/src/ListExt.c:60:24: branch_true: ...to here
libX11-1.8.12/src/ListExt.c:65:16: branch_false: following 'false' branch...
libX11-1.8.12/src/ListExt.c:74:13: branch_false: ...to here
libX11-1.8.12/src/ListExt.c:80:25: branch_false: following 'false' branch...
libX11-1.8.12/src/ListExt.c:97:9: branch_false: ...to here
libX11-1.8.12/src/ListExt.c:98:9: branch_false: following 'false' branch...
libX11-1.8.12/src/ListExt.c:99:9: branch_false: ...to here
libX11-1.8.12/src/ListExt.c:99:9: branch_true: following 'true' branch...
libX11-1.8.12/src/ListExt.c:99:9: branch_true: ...to here
libX11-1.8.12/src/ListExt.c:99:9: throw: if the called function throws an exception...
libX11-1.8.12/src/ListExt.c:99:9: danger: 'list' leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#   97|   	*nextensions = count;
#   98|   	UnlockDisplay(dpy);
#   99|-> 	SyncHandle();
#  100|   	return (list);
#  101|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
libX11-1.8.12/src/ModMap.c:59:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/src/ModMap.c:46:8: branch_true: following 'true' branch...
libX11-1.8.12/src/ModMap.c:47:9: branch_true: ...to here
libX11-1.8.12/src/ModMap.c:46:9: branch_true: following 'true' branch...
libX11-1.8.12/src/ModMap.c:48:18: branch_true: ...to here
libX11-1.8.12/src/ModMap.c:50:12: branch_true: following 'true' branch (when 'res' is non-NULL)...
libX11-1.8.12/src/ModMap.c:51:32: branch_true: ...to here
libX11-1.8.12/src/ModMap.c:51:32: acquire_memory: allocated here
libX11-1.8.12/src/ModMap.c:54:9: branch_false: following 'false' branch...
libX11-1.8.12/src/ModMap.c:59:9: branch_false: ...to here
libX11-1.8.12/src/ModMap.c:59:9: throw: if '_XReadPad' throws an exception...
libX11-1.8.12/src/ModMap.c:59:9: danger: '<unknown>' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#   57|   	_XEatDataWords(dpy, rep.length);
#   58|       } else {
#   59|-> 	_XReadPad(dpy, (char *) res->modifiermap, (long) nbytes);
#   60|   	res->max_keypermod = rep.numKeyPerModifier;
#   61|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
libX11-1.8.12/src/ModMap.c:59:9: warning[-Wanalyzer-malloc-leak]: leak of 'res'
libX11-1.8.12/src/ModMap.c:46:8: branch_true: following 'true' branch...
libX11-1.8.12/src/ModMap.c:47:9: branch_true: ...to here
libX11-1.8.12/src/ModMap.c:46:9: branch_true: following 'true' branch...
libX11-1.8.12/src/ModMap.c:48:18: branch_true: ...to here
libX11-1.8.12/src/ModMap.c:49:15: acquire_memory: allocated here
libX11-1.8.12/src/ModMap.c:50:12: branch_true: following 'true' branch (when 'res' is non-NULL)...
libX11-1.8.12/src/ModMap.c:51:32: branch_true: ...to here
libX11-1.8.12/src/ModMap.c:54:9: branch_false: following 'false' branch...
libX11-1.8.12/src/ModMap.c:59:9: branch_false: ...to here
libX11-1.8.12/src/ModMap.c:59:9: throw: if '_XReadPad' throws an exception...
libX11-1.8.12/src/ModMap.c:59:9: danger: 'res' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   57|   	_XEatDataWords(dpy, rep.length);
#   58|       } else {
#   59|-> 	_XReadPad(dpy, (char *) res->modifiermap, (long) nbytes);
#   60|   	res->max_keypermod = rep.numKeyPerModifier;
#   61|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def205]
libX11-1.8.12/src/ModMap.c:63:5: warning[-Wanalyzer-malloc-leak]: leak of 'res'
libX11-1.8.12/src/ModMap.c:46:8: branch_true: following 'true' branch...
libX11-1.8.12/src/ModMap.c:47:9: branch_true: ...to here
libX11-1.8.12/src/ModMap.c:46:9: branch_true: following 'true' branch...
libX11-1.8.12/src/ModMap.c:48:18: branch_true: ...to here
libX11-1.8.12/src/ModMap.c:49:15: acquire_memory: allocated here
libX11-1.8.12/src/ModMap.c:50:12: branch_true: following 'true' branch (when 'res' is non-NULL)...
libX11-1.8.12/src/ModMap.c:51:32: branch_true: ...to here
libX11-1.8.12/src/ModMap.c:54:9: branch_false: following 'false' branch...
libX11-1.8.12/src/ModMap.c:59:9: branch_false: ...to here
libX11-1.8.12/src/ModMap.c:63:5: branch_true: following 'true' branch...
libX11-1.8.12/src/ModMap.c:63:5: branch_true: ...to here
libX11-1.8.12/src/ModMap.c:63:5: throw: if the called function throws an exception...
libX11-1.8.12/src/ModMap.c:63:5: danger: 'res' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#   61|       }
#   62|   
#   63|->     UnlockDisplay(dpy);
#   64|       SyncHandle();
#   65|       return (res);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
libX11-1.8.12/src/ModMap.c:64:5: warning[-Wanalyzer-malloc-leak]: leak of 'res'
libX11-1.8.12/src/ModMap.c:46:8: branch_true: following 'true' branch...
libX11-1.8.12/src/ModMap.c:47:9: branch_true: ...to here
libX11-1.8.12/src/ModMap.c:46:9: branch_true: following 'true' branch...
libX11-1.8.12/src/ModMap.c:48:18: branch_true: ...to here
libX11-1.8.12/src/ModMap.c:49:15: acquire_memory: allocated here
libX11-1.8.12/src/ModMap.c:50:12: branch_true: following 'true' branch (when 'res' is non-NULL)...
libX11-1.8.12/src/ModMap.c:51:32: branch_true: ...to here
libX11-1.8.12/src/ModMap.c:54:9: branch_false: following 'false' branch...
libX11-1.8.12/src/ModMap.c:59:9: branch_false: ...to here
libX11-1.8.12/src/ModMap.c:63:5: branch_false: following 'false' branch...
libX11-1.8.12/src/ModMap.c:64:5: branch_false: ...to here
libX11-1.8.12/src/ModMap.c:64:5: branch_true: following 'true' branch...
libX11-1.8.12/src/ModMap.c:64:5: branch_true: ...to here
libX11-1.8.12/src/ModMap.c:64:5: throw: if the called function throws an exception...
libX11-1.8.12/src/ModMap.c:64:5: danger: 'res' leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#   62|   
#   63|       UnlockDisplay(dpy);
#   64|->     SyncHandle();
#   65|       return (res);
#   66|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def207]
libX11-1.8.12/src/ModMap.c:157:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libX11-1.8.12/src/ModMap.c:126:1: enter_function: entry to 'XInsertModifiermapEntry'
libX11-1.8.12/src/ModMap.c:150:19: call_function: calling 'XNewModifiermap' from 'XInsertModifiermapEntry'
libX11-1.8.12/src/ModMap.c:150:19: return_function: returning to 'XInsertModifiermapEntry' from 'XNewModifiermap'
libX11-1.8.12/src/ModMap.c:150:8: branch_false: following 'false' branch...
libX11-1.8.12/src/ModMap.c:153:15: branch_false: ...to here
libX11-1.8.12/src/ModMap.c:154:12: branch_true: following 'true' branch (when 'newrow < lastrow')...
libX11-1.8.12/src/ModMap.c:154:12: branch_true: ...to here
libX11-1.8.12/src/ModMap.c:155:19: branch_false: following 'false' branch...
libX11-1.8.12/src/ModMap.c:157:9: branch_false: ...to here
libX11-1.8.12/src/ModMap.c:157:9: release_memory: using NULL here
libX11-1.8.12/src/ModMap.c:157:9: danger: dereference of NULL '*<unknown>.modifiermap + (sizetype)(i + newrow)'
#  155|   	for (i=0; i<map->max_keypermod; i++)
#  156|   	    newmap->modifiermap[ newrow+i ] = map->modifiermap[ row+i ];
#  157|-> 	newmap->modifiermap[ newrow+i ] = 0;
#  158|   	row += map->max_keypermod;
#  159|   	newrow += newmap->max_keypermod;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def208]
libX11-1.8.12/src/OCWrap.c:41:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libX11-1.8.12/src/OCWrap.c:40:5: acquire_resource: 'va_start' called here
libX11-1.8.12/src/OCWrap.c:41:5: throw: if '_XlcCountVaList' throws an exception...
libX11-1.8.12/src/OCWrap.c:41:5: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   39|   
#   40|       va_start(var, om);
#   41|->     _XlcCountVaList(var, &num_args);
#   42|       va_end(var);
#   43|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def209]
libX11-1.8.12/src/OCWrap.c:45:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libX11-1.8.12/src/OCWrap.c:44:5: acquire_resource: 'va_start' called here
libX11-1.8.12/src/OCWrap.c:45:5: throw: if '_XlcVaToArgList' throws an exception...
libX11-1.8.12/src/OCWrap.c:45:5: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   43|   
#   44|       va_start(var, om);
#   45|->     _XlcVaToArgList(var, num_args, &args);
#   46|       va_end(var);
#   47|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def210]
libX11-1.8.12/src/OCWrap.c:99:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libX11-1.8.12/src/OCWrap.c:98:5: acquire_resource: 'va_start' called here
libX11-1.8.12/src/OCWrap.c:99:5: throw: if '_XlcCountVaList' throws an exception...
libX11-1.8.12/src/OCWrap.c:99:5: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   97|   
#   98|       va_start(var, oc);
#   99|->     _XlcCountVaList(var, &num_args);
#  100|       va_end(var);
#  101|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def211]
libX11-1.8.12/src/OCWrap.c:103:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libX11-1.8.12/src/OCWrap.c:102:5: acquire_resource: 'va_start' called here
libX11-1.8.12/src/OCWrap.c:103:5: throw: if '_XlcVaToArgList' throws an exception...
libX11-1.8.12/src/OCWrap.c:103:5: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  101|   
#  102|       va_start(var, oc);
#  103|->     _XlcVaToArgList(var, num_args, &args);
#  104|       va_end(var);
#  105|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def212]
libX11-1.8.12/src/OCWrap.c:125:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libX11-1.8.12/src/OCWrap.c:124:5: acquire_resource: 'va_start' called here
libX11-1.8.12/src/OCWrap.c:125:5: throw: if '_XlcCountVaList' throws an exception...
libX11-1.8.12/src/OCWrap.c:125:5: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  123|   
#  124|       va_start(var, oc);
#  125|->     _XlcCountVaList(var, &num_args);
#  126|       va_end(var);
#  127|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def213]
libX11-1.8.12/src/OCWrap.c:129:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libX11-1.8.12/src/OCWrap.c:128:5: acquire_resource: 'va_start' called here
libX11-1.8.12/src/OCWrap.c:129:5: throw: if '_XlcVaToArgList' throws an exception...
libX11-1.8.12/src/OCWrap.c:129:5: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  127|   
#  128|       va_start(var, oc);
#  129|->     _XlcVaToArgList(var, num_args, &args);
#  130|       va_end(var);
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def214]
libX11-1.8.12/src/OMWrap.c:76:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libX11-1.8.12/src/OMWrap.c:75:5: acquire_resource: 'va_start' called here
libX11-1.8.12/src/OMWrap.c:76:5: throw: if '_XlcCountVaList' throws an exception...
libX11-1.8.12/src/OMWrap.c:76:5: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   74|   
#   75|       va_start(var, om);
#   76|->     _XlcCountVaList(var, &num_args);
#   77|       va_end(var);
#   78|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def215]
libX11-1.8.12/src/OMWrap.c:80:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libX11-1.8.12/src/OMWrap.c:79:5: acquire_resource: 'va_start' called here
libX11-1.8.12/src/OMWrap.c:80:5: throw: if '_XlcVaToArgList' throws an exception...
libX11-1.8.12/src/OMWrap.c:80:5: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   78|   
#   79|       va_start(var, om);
#   80|->     _XlcVaToArgList(var, num_args, &args);
#   81|       va_end(var);
#   82|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def216]
libX11-1.8.12/src/OMWrap.c:102:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libX11-1.8.12/src/OMWrap.c:101:5: acquire_resource: 'va_start' called here
libX11-1.8.12/src/OMWrap.c:102:5: throw: if '_XlcCountVaList' throws an exception...
libX11-1.8.12/src/OMWrap.c:102:5: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  100|   
#  101|       va_start(var, om);
#  102|->     _XlcCountVaList(var, &num_args);
#  103|       va_end(var);
#  104|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def217]
libX11-1.8.12/src/OMWrap.c:106:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libX11-1.8.12/src/OMWrap.c:105:5: acquire_resource: 'va_start' called here
libX11-1.8.12/src/OMWrap.c:106:5: throw: if '_XlcVaToArgList' throws an exception...
libX11-1.8.12/src/OMWrap.c:106:5: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  104|   
#  105|       va_start(var, om);
#  106|->     _XlcVaToArgList(var, num_args, &args);
#  107|       va_end(var);
#  108|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
libX11-1.8.12/src/OpenDis.c:129:13: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/src/OpenDis.c:115:12: branch_false: following 'false' branch (when 'dpy' is non-NULL)...
libX11-1.8.12/src/OpenDis.c:119:34: branch_false: ...to here
libX11-1.8.12/src/OpenDis.c:119:34: acquire_memory: allocated here
libX11-1.8.12/src/OpenDis.c:119:12: branch_false: following 'false' branch...
libX11-1.8.12/src/OpenDis.c:129:13: branch_false: ...to here
libX11-1.8.12/src/OpenDis.c:129:13: throw: if '_XConnectXCB' throws an exception...
libX11-1.8.12/src/OpenDis.c:129:13: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  127|    */
#  128|   
#  129|-> 	if(!_XConnectXCB(dpy, display, &iscreen)) {
#  130|   		OutOfMemory(dpy);
#  131|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
libX11-1.8.12/src/OpenDis.c:129:13: warning[-Wanalyzer-malloc-leak]: leak of 'dpy'
libX11-1.8.12/src/OpenDis.c:115:20: acquire_memory: allocated here
libX11-1.8.12/src/OpenDis.c:115:12: branch_false: following 'false' branch (when 'dpy' is non-NULL)...
libX11-1.8.12/src/OpenDis.c:119:34: branch_false: ...to here
libX11-1.8.12/src/OpenDis.c:119:12: branch_false: following 'false' branch...
libX11-1.8.12/src/OpenDis.c:129:13: branch_false: ...to here
libX11-1.8.12/src/OpenDis.c:129:13: throw: if '_XConnectXCB' throws an exception...
libX11-1.8.12/src/OpenDis.c:129:13: danger: 'dpy' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  127|    */
#  128|   
#  129|-> 	if(!_XConnectXCB(dpy, display, &iscreen)) {
#  130|   		OutOfMemory(dpy);
#  131|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def220]
libX11-1.8.12/src/OpenDis.c:712:27: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libX11-1.8.12/src/OpenDis.c:64:1: enter_function: entry to 'XOpenDisplay'
libX11-1.8.12/src/OpenDis.c:115:12: branch_false: following 'false' branch (when 'dpy' is non-NULL)...
libX11-1.8.12/src/OpenDis.c:119:34: branch_false: ...to here
libX11-1.8.12/src/OpenDis.c:119:12: branch_true: following 'true' branch...
libX11-1.8.12/src/OpenDis.c:120:17: branch_true: ...to here
libX11-1.8.12/src/OpenDis.c:120:17: call_function: calling 'OutOfMemory' from 'XOpenDisplay'
#  710|   static void OutOfMemory(Display *dpy)
#  711|   {
#  712|-> 	xcb_connection_t *connection = dpy->xcb->connection;
#  713|   
#  714|   	_XFreeDisplayStructure (dpy);

Error: GCC_ANALYZER_WARNING (CWE-835): [#def221]
libX11-1.8.12/src/ParseCol.c:67:17: warning[-Wanalyzer-infinite-loop]: infinite loop
libX11-1.8.12/src/ParseCol.c:67:17: danger: infinite loop here
libX11-1.8.12/src/ParseCol.c:67:29: branch_false: when 'i >= n': always following 'false' branch...
libX11-1.8.12/src/ParseCol.c:78:22: branch_false: ...to here
libX11-1.8.12/src/ParseCol.c:78:22: branch_true: if it ever follows 'true' branch, it will always do so...
libX11-1.8.12/src/ParseCol.c:78:22: branch_true: ...to here
#   65|   		g = b;
#   66|   		b = 0;
#   67|-> 		for (i = 0; i < n; i++) {
#   68|   		    c = *spec++;
#   69|   		    b <<= 4;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def222]
libX11-1.8.12/src/PolyReg.c:448:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*CurPtBlock.next'
libX11-1.8.12/src/PolyReg.c:473:1: enter_function: entry to 'XPolygonRegion'
libX11-1.8.12/src/PolyReg.c:495:8: branch_false: following 'false' branch...
libX11-1.8.12/src/PolyReg.c:499:8: branch_false: ...to here
libX11-1.8.12/src/PolyReg.c:521:8: branch_false: following 'false' branch (when 'Count > 1')...
libX11-1.8.12/src/PolyReg.c:523:20: branch_false: ...to here
libX11-1.8.12/src/PolyReg.c:523:8: branch_false: following 'false' branch (when 'pETEs' is non-NULL)...
libX11-1.8.12/src/PolyReg.c:529:5: branch_false: ...to here
libX11-1.8.12/src/PolyReg.c:529:5: call_function: calling 'CreateETandAET' from 'XPolygonRegion'
libX11-1.8.12/src/PolyReg.c:529:5: return_function: returning to 'XPolygonRegion' from 'CreateETandAET'
libX11-1.8.12/src/PolyReg.c:533:8: branch_true: following 'true' branch (when 'rule == 0')...
libX11-1.8.12/src/PolyReg.c:537:14: branch_true: ...to here
libX11-1.8.12/src/PolyReg.c:537:27: branch_false: following 'false' branch...
libX11-1.8.12/src/PolyReg.c:627:17: branch_false: ...to here
libX11-1.8.12/src/PolyReg.c:627:5: call_function: inlined call to 'FreeStorage' from 'XPolygonRegion'
libX11-1.8.12/src/PolyReg.c:628:12: branch_false: ...to here
libX11-1.8.12/src/PolyReg.c:628:12: call_function: calling 'PtsToRegion' from 'XPolygonRegion'
#  446|   		extents->x2 = rects->x2;
#  447|           }
#  448|-> 	CurPtBlock = CurPtBlock->next;
#  449|       }
#  450|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def223]
libX11-1.8.12/src/PolyReg.c:629:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'FirstPtBlock.next'
libX11-1.8.12/src/PolyReg.c:473:1: enter_function: entry to 'XPolygonRegion'
libX11-1.8.12/src/PolyReg.c:495:8: branch_false: following 'false' branch...
libX11-1.8.12/src/PolyReg.c:499:8: branch_false: ...to here
libX11-1.8.12/src/PolyReg.c:521:8: branch_false: following 'false' branch (when 'Count > 1')...
libX11-1.8.12/src/PolyReg.c:523:20: branch_false: ...to here
libX11-1.8.12/src/PolyReg.c:523:8: branch_false: following 'false' branch (when 'pETEs' is non-NULL)...
libX11-1.8.12/src/PolyReg.c:529:5: branch_false: ...to here
libX11-1.8.12/src/PolyReg.c:529:5: call_function: calling 'CreateETandAET' from 'XPolygonRegion'
libX11-1.8.12/src/PolyReg.c:529:5: return_function: returning to 'XPolygonRegion' from 'CreateETandAET'
libX11-1.8.12/src/PolyReg.c:533:8: branch_true: following 'true' branch (when 'rule == 0')...
libX11-1.8.12/src/PolyReg.c:537:14: branch_true: ...to here
libX11-1.8.12/src/PolyReg.c:537:27: branch_false: following 'false' branch...
libX11-1.8.12/src/PolyReg.c:627:17: branch_false: ...to here
libX11-1.8.12/src/PolyReg.c:627:5: call_function: inlined call to 'FreeStorage' from 'XPolygonRegion'
libX11-1.8.12/src/PolyReg.c:628:12: branch_false: ...to here
libX11-1.8.12/src/PolyReg.c:628:12: call_function: calling 'PtsToRegion' from 'XPolygonRegion'
libX11-1.8.12/src/PolyReg.c:628:12: return_function: returning to 'XPolygonRegion' from 'PtsToRegion'
libX11-1.8.12/src/PolyReg.c:629:10: danger: use of uninitialized value 'FirstPtBlock.next' here
#  627|       FreeStorage(SLLBlock.next);
#  628|       (void) PtsToRegion(numFullPtBlocks, iPts, &FirstPtBlock, region);
#  629|->     for (curPtBlock = FirstPtBlock.next; --numFullPtBlocks >= 0;) {
#  630|   	tmpPtBlock = curPtBlock->next;
#  631|   	Xfree(curPtBlock);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
libX11-1.8.12/src/QuColors.c:58:13: warning[-Wanalyzer-malloc-leak]: leak of 'color'
libX11-1.8.12/src/QuColors.c:53:8: branch_true: following 'true' branch...
libX11-1.8.12/src/QuColors.c:54:23: branch_true: ...to here
libX11-1.8.12/src/QuColors.c:54:23: acquire_memory: allocated here
libX11-1.8.12/src/QuColors.c:55:12: branch_true: following 'true' branch (when 'color' is non-NULL)...
libX11-1.8.12/src/QuColors.c:56:36: branch_true: ...to here
libX11-1.8.12/src/QuColors.c:58:13: throw: if '_XRead' throws an exception...
libX11-1.8.12/src/QuColors.c:58:13: danger: 'color' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   56|               unsigned long nbytes = (size_t) ncolors * SIZEOF(xrgb);
#   57|   
#   58|-> 	    _XRead(dpy, (char *) color, (long) nbytes);
#   59|   
#   60|   	    for (i = 0; i < ncolors; i++) {

Error: GCC_ANALYZER_WARNING (CWE-416): [#def225]
libX11-1.8.12/src/Region.c:233:20: warning[-Wanalyzer-use-after-free]: use after 'reallocarray' of 'pBox'
libX11-1.8.12/src/Region.c:1454:1: enter_function: entry to 'XXorRegion'
libX11-1.8.12/src/Region.c:1458:18: call_function: calling 'XCreateRegion' from 'XXorRegion'
libX11-1.8.12/src/Region.c:1458:18: return_function: returning to 'XXorRegion' from 'XCreateRegion'
libX11-1.8.12/src/Region.c:1458:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Region.c:1460:18: branch_false: ...to here
libX11-1.8.12/src/Region.c:1460:18: call_function: calling 'XCreateRegion' from 'XXorRegion'
libX11-1.8.12/src/Region.c:1460:18: return_function: returning to 'XXorRegion' from 'XCreateRegion'
libX11-1.8.12/src/Region.c:1460:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Region.c:1464:12: branch_false: ...to here
libX11-1.8.12/src/Region.c:1464:12: call_function: calling 'XSubtractRegion' from 'XXorRegion'
#  231|        * to...
#  232|        */
#  233|->     pExtents->x1 = pBox->x1;
#  234|       pExtents->y1 = pBox->y1;
#  235|       pExtents->x2 = pBoxEnd->x2;

Error: GCC_ANALYZER_WARNING (CWE-762): [#def226]
libX11-1.8.12/src/Region.c:525:33: warning[-Wanalyzer-mismatching-deallocation]: '*dstrgn.rects' should have been deallocated with 'free' but was deallocated with 'reallocarray'
libX11-1.8.12/src/Region.c:1454:1: enter_function: entry to 'XXorRegion'
libX11-1.8.12/src/Region.c:1458:18: call_function: calling 'XCreateRegion' from 'XXorRegion'
libX11-1.8.12/src/Region.c:1458:18: return_function: returning to 'XXorRegion' from 'XCreateRegion'
libX11-1.8.12/src/Region.c:1458:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Region.c:1460:18: branch_false: ...to here
libX11-1.8.12/src/Region.c:1460:18: call_function: calling 'XCreateRegion' from 'XXorRegion'
libX11-1.8.12/src/Region.c:1460:18: return_function: returning to 'XXorRegion' from 'XCreateRegion'
libX11-1.8.12/src/Region.c:1460:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Region.c:1464:12: branch_false: ...to here
libX11-1.8.12/src/Region.c:1464:12: call_function: calling 'XSubtractRegion' from 'XXorRegion'
#  523|   		BOX *prevRects = dstrgn->rects;
#  524|   
#  525|-> 		dstrgn->rects = Xreallocarray(dstrgn->rects,
#  526|                                                 rgn->numRects, sizeof(BOX));
#  527|   		if (! dstrgn->rects) {

Error: GCC_ANALYZER_WARNING (CWE-762): [#def227]
libX11-1.8.12/src/Region.c:984:29: warning[-Wanalyzer-mismatching-deallocation]: 'prev_rects' should have been deallocated with 'free' but was deallocated with 'reallocarray'
libX11-1.8.12/src/Region.c:1454:1: enter_function: entry to 'XXorRegion'
libX11-1.8.12/src/Region.c:1458:18: call_function: calling 'XCreateRegion' from 'XXorRegion'
libX11-1.8.12/src/Region.c:1458:18: return_function: returning to 'XXorRegion' from 'XCreateRegion'
libX11-1.8.12/src/Region.c:1458:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Region.c:1460:18: branch_false: ...to here
libX11-1.8.12/src/Region.c:1460:18: call_function: calling 'XCreateRegion' from 'XXorRegion'
libX11-1.8.12/src/Region.c:1460:18: return_function: returning to 'XXorRegion' from 'XCreateRegion'
libX11-1.8.12/src/Region.c:1460:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Region.c:1464:12: branch_false: ...to here
libX11-1.8.12/src/Region.c:1464:12: call_function: calling 'XSubtractRegion' from 'XXorRegion'
#  982|   	{
#  983|   	    BoxPtr prev_rects = newReg->rects;
#  984|-> 	    newReg->rects = Xreallocarray (newReg->rects,
#  985|                                              newReg->numRects, sizeof(BoxRec));
#  986|   	    if (! newReg->rects)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
libX11-1.8.12/src/Region.c:1004:1: warning[-Wanalyzer-malloc-leak]: leak of 'oldRects'
libX11-1.8.12/src/Region.c:1454:1: enter_function: entry to 'XXorRegion'
libX11-1.8.12/src/Region.c:1458:18: call_function: calling 'XCreateRegion' from 'XXorRegion'
libX11-1.8.12/src/Region.c:1458:18: return_function: returning to 'XXorRegion' from 'XCreateRegion'
libX11-1.8.12/src/Region.c:1458:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Region.c:1460:18: branch_false: ...to here
libX11-1.8.12/src/Region.c:1460:18: call_function: calling 'XCreateRegion' from 'XXorRegion'
libX11-1.8.12/src/Region.c:1460:18: return_function: returning to 'XXorRegion' from 'XCreateRegion'
libX11-1.8.12/src/Region.c:1460:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Region.c:1464:12: branch_false: ...to here
libX11-1.8.12/src/Region.c:1464:12: call_function: calling 'XSubtractRegion' from 'XXorRegion'
# 1002|       Xfree (oldRects);
# 1003|       return;
# 1004|-> }
# 1005|   
# 1006|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
libX11-1.8.12/src/Region.c:1260:1: warning[-Wanalyzer-malloc-leak]: leak of 'tmpRect'
libX11-1.8.12/src/Region.c:1454:1: enter_function: entry to 'XXorRegion'
libX11-1.8.12/src/Region.c:1458:18: call_function: calling 'XCreateRegion' from 'XXorRegion'
libX11-1.8.12/src/Region.c:1458:18: return_function: returning to 'XXorRegion' from 'XCreateRegion'
libX11-1.8.12/src/Region.c:1458:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Region.c:1460:18: branch_false: ...to here
libX11-1.8.12/src/Region.c:1460:18: call_function: calling 'XCreateRegion' from 'XXorRegion'
libX11-1.8.12/src/Region.c:1460:18: return_function: returning to 'XXorRegion' from 'XCreateRegion'
libX11-1.8.12/src/Region.c:1460:8: branch_false: following 'false' branch...
libX11-1.8.12/src/Region.c:1464:12: branch_false: ...to here
libX11-1.8.12/src/Region.c:1464:12: call_function: calling 'XSubtractRegion' from 'XXorRegion'
# 1258|       }
# 1259|       return 0;	/* lint */
# 1260|-> }
# 1261|   
# 1262|   /*-

Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
libX11-1.8.12/src/RegstFlt.c:98:5: warning[-Wanalyzer-malloc-leak]: leak of 'rec'
libX11-1.8.12/src/RegstFlt.c:89:11: acquire_memory: allocated here
libX11-1.8.12/src/RegstFlt.c:90:8: branch_false: following 'false' branch (when 'rec' is non-NULL)...
libX11-1.8.12/src/RegstFlt.c:92:5: branch_false: ...to here
libX11-1.8.12/src/RegstFlt.c:98:5: branch_true: following 'true' branch...
libX11-1.8.12/src/RegstFlt.c:98:5: branch_true: ...to here
libX11-1.8.12/src/RegstFlt.c:98:5: throw: if the called function throws an exception...
libX11-1.8.12/src/RegstFlt.c:98:5: danger: 'rec' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   96|       rec->filter = filter;
#   97|       rec->client_data = client_data;
#   98|->     LockDisplay(display);
#   99|       rec->next = display->im_filters;
#  100|       display->im_filters = rec;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
libX11-1.8.12/src/RegstFlt.c:130:5: warning[-Wanalyzer-malloc-leak]: leak of 'rec'
libX11-1.8.12/src/RegstFlt.c:121:11: acquire_memory: allocated here
libX11-1.8.12/src/RegstFlt.c:122:8: branch_false: following 'false' branch (when 'rec' is non-NULL)...
libX11-1.8.12/src/RegstFlt.c:124:5: branch_false: ...to here
libX11-1.8.12/src/RegstFlt.c:130:5: branch_true: following 'true' branch...
libX11-1.8.12/src/RegstFlt.c:130:5: branch_true: ...to here
libX11-1.8.12/src/RegstFlt.c:130:5: throw: if the called function throws an exception...
libX11-1.8.12/src/RegstFlt.c:130:5: danger: 'rec' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  128|       rec->filter = filter;
#  129|       rec->client_data = client_data;
#  130|->     LockDisplay(display);
#  131|       rec->next = display->im_filters;
#  132|       display->im_filters = rec;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
libX11-1.8.12/src/SetFPath.c:72:33: warning[-Wanalyzer-malloc-leak]: leak of 'p'
libX11-1.8.12/src/SetFPath.c:47:12: branch_true: following 'true' branch (when 'ndirs > 0')...
libX11-1.8.12/src/SetFPath.c:47:12: branch_true: ...to here
libX11-1.8.12/src/SetFPath.c:52:33: branch_true: following 'true' branch (when 'i < ndirs')...
libX11-1.8.12/src/SetFPath.c:53:34: branch_true: ...to here
libX11-1.8.12/src/SetFPath.c:54:28: branch_false: following 'false' branch (when 'n <= 65534')...
libX11-1.8.12/src/SetFPath.c:52:44: branch_false: ...to here
libX11-1.8.12/src/SetFPath.c:62:26: acquire_memory: allocated here
libX11-1.8.12/src/SetFPath.c:62:20: branch_true: following 'true' branch (when 'p' is non-NULL)...
libX11-1.8.12/src/SetFPath.c:62:20: branch_true: ...to here
libX11-1.8.12/src/SetFPath.c:68:41: branch_true: following 'true' branch (when 'i < ndirs')...
libX11-1.8.12/src/SetFPath.c:69:49: branch_true: ...to here
libX11-1.8.12/src/SetFPath.c:69:49: branch_false: following 'false' branch...
libX11-1.8.12/src/SetFPath.c:70:33: branch_false: ...to here
libX11-1.8.12/src/SetFPath.c:68:41: branch_false: following 'false' branch (when 'i >= ndirs')...
libX11-1.8.12/src/SetFPath.c:74:25: branch_false: ...to here
libX11-1.8.12/src/SetFPath.c:74:25: branch_false: following 'false' branch...
libX11-1.8.12/src/SetFPath.c:74:25: branch_false: ...to here
libX11-1.8.12/src/SetFPath.c:74:25: throw: if '_XSend' throws an exception...
libX11-1.8.12/src/SetFPath.c:72:33: danger: 'p' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#   70|   				*p = length;
#   71|   				memcpy (p + 1, directories[i], length);
#   72|-> 				p += length + 1;
#   73|   			}
#   74|   			Data (dpy, tmp, nbytes);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def233]
libX11-1.8.12/src/SetHints.c:198:13: warning[-Wanalyzer-malloc-leak]: leak of 'pp'
libX11-1.8.12/src/SetHints.c:187:26: acquire_memory: allocated here
libX11-1.8.12/src/SetHints.c:187:12: branch_true: following 'true' branch (when 'pp' is non-NULL)...
libX11-1.8.12/src/SetHints.c:187:12: branch_true: ...to here
libX11-1.8.12/src/SetHints.c:198:13: throw: if 'XChangeProperty' throws an exception...
libX11-1.8.12/src/SetHints.c:198:13: danger: 'pp' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  196|   		list += 1;
#  197|   	    }
#  198|-> 	    XChangeProperty (dpy, w, XA_WM_ICON_SIZE, XA_WM_ICON_SIZE, 32,
#  199|   			     PropModeReplace, (unsigned char *) prop,
#  200|   			     count * NumPropIconSizeElements);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
libX11-1.8.12/src/SetHints.c:314:18: warning[-Wanalyzer-malloc-leak]: leak of 's'
libX11-1.8.12/src/SetHints.c:306:12: branch_false: following 'false' branch...
libX11-1.8.12/src/SetHints.c:308:33: branch_false: ...to here
libX11-1.8.12/src/SetHints.c:308:33: acquire_memory: allocated here
libX11-1.8.12/src/SetHints.c:308:12: branch_true: following 'true' branch (when 's' is non-NULL)...
libX11-1.8.12/src/SetHints.c:309:16: branch_true: ...to here
libX11-1.8.12/src/SetHints.c:319:13: throw: if 'XChangeProperty' throws an exception...
libX11-1.8.12/src/SetHints.c:314:18: danger: 's' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  312|   	    }
#  313|   	    else
#  314|-> 		*s++ = '\0';
#  315|   	    if (len_cl)
#  316|   		strcpy(s, classhint->res_class);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
libX11-1.8.12/src/SetRGBCMap.c:96:9: warning[-Wanalyzer-malloc-leak]: leak of 'data'
libX11-1.8.12/src/SetRGBCMap.c:54:8: branch_false: following 'false' branch (when 'count > 0')...
libX11-1.8.12/src/SetRGBCMap.c:59:8: branch_false: ...to here
libX11-1.8.12/src/SetRGBCMap.c:59:8: branch_true: following 'true' branch (when 'count != 1')...
libX11-1.8.12/src/SetRGBCMap.c:60:18: branch_true: ...to here
libX11-1.8.12/src/SetRGBCMap.c:60:18: acquire_memory: allocated here
libX11-1.8.12/src/SetRGBCMap.c:59:9: branch_true: following 'true' branch (when 'data' is non-NULL)...
libX11-1.8.12/src/SetRGBCMap.c:73:5: branch_true: ...to here
libX11-1.8.12/src/SetRGBCMap.c:73:47: branch_true: following 'true' branch (when 'i != 0')...
libX11-1.8.12/src/SetRGBCMap.c:74:27: branch_true: ...to here
libX11-1.8.12/src/SetRGBCMap.c:85:12: branch_true: following 'true' branch (when 'alloced_scratch_space != 0')...
libX11-1.8.12/src/SetRGBCMap.c:86:13: branch_true: ...to here
libX11-1.8.12/src/SetRGBCMap.c:95:8: branch_true: following 'true' branch (when 'alloced_scratch_space != 0')...
libX11-1.8.12/src/SetRGBCMap.c:96:9: branch_true: ...to here
libX11-1.8.12/src/SetRGBCMap.c:96:9: throw: if 'XChangeProperty' throws an exception...
libX11-1.8.12/src/SetRGBCMap.c:96:9: danger: 'data' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   94|   
#   95|       if (alloced_scratch_space) {
#   96|-> 	XChangeProperty (dpy, w, property, XA_RGB_COLOR_MAP, 32,
#   97|   			 PropModeReplace, (unsigned char *) data,
#   98|   			 (int) (count * NumPropStandardColormapElements));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
libX11-1.8.12/src/TextToStr.c:107:1: warning[-Wanalyzer-malloc-leak]: leak of 'cp'
libX11-1.8.12/src/TextToStr.c:56:8: branch_false: following 'false' branch...
libX11-1.8.12/src/TextToStr.c:58:8: branch_false: following 'false' branch (when 'datalen != 0')...
libX11-1.8.12/src/TextToStr.c:68:10: branch_false: ...to here
libX11-1.8.12/src/TextToStr.c:76:8: branch_false: following 'false' branch (when 'list' is non-NULL)...
libX11-1.8.12/src/TextToStr.c:78:13: branch_false: ...to here
libX11-1.8.12/src/TextToStr.c:78:13: branch_false: following 'false' branch (when 'datalen == -1')...
libX11-1.8.12/src/TextToStr.c:78:13: branch_false: ...to here
libX11-1.8.12/src/TextToStr.c:78:13: acquire_memory: allocated here
libX11-1.8.12/src/TextToStr.c:79:8: branch_false: following 'false' branch (when 'start' is non-NULL)...
libX11-1.8.12/src/TextToStr.c:87:40: branch_false: ...to here
libX11-1.8.12/src/TextToStr.c:93:46: branch_false: following 'false' branch (when 'i <= 0')...
libX11-1.8.12/src/TextToStr.c:104:5: branch_false: ...to here
libX11-1.8.12/src/TextToStr.c:107:1: danger: 'cp' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  105|       *count_return = nelements;
#  106|       return True;
#  107|-> }
#  108|   
#  109|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
libX11-1.8.12/src/VisUtil.c:147:29: warning[-Wanalyzer-malloc-leak]: leak of 'vip'
libX11-1.8.12/src/VisUtil.c:80:27: acquire_memory: allocated here
libX11-1.8.12/src/VisUtil.c:80:6: branch_false: following 'false' branch (when 'vip' is non-NULL)...
libX11-1.8.12/src/VisUtil.c:88:3: branch_false: ...to here
libX11-1.8.12/src/VisUtil.c:100:21: branch_true: following 'true' branch (when 'ii < screen_e')...
libX11-1.8.12/src/VisUtil.c:102:24: branch_true: ...to here
libX11-1.8.12/src/VisUtil.c:132:18: branch_false: following 'false' branch (when 'total > count')...
libX11-1.8.12/src/VisUtil.c:145:15: branch_false: ...to here
libX11-1.8.12/src/VisUtil.c:147:29: throw: if '_XVIDtoVisual' throws an exception...
libX11-1.8.12/src/VisUtil.c:147:29: danger: 'vip' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  145|                 count++;
#  146|   
#  147|->               vip->visual = _XVIDtoVisual(dpy, vp->visualid);
#  148|                 vip->visualid = vp->visualid;
#  149|                 vip->screen = ii;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
libX11-1.8.12/src/VisUtil.c:158:15: warning[-Wanalyzer-malloc-leak]: leak of 'vip'
libX11-1.8.12/src/VisUtil.c:80:27: acquire_memory: allocated here
libX11-1.8.12/src/VisUtil.c:80:6: branch_false: following 'false' branch (when 'vip' is non-NULL)...
libX11-1.8.12/src/VisUtil.c:88:3: branch_false: ...to here
libX11-1.8.12/src/VisUtil.c:100:21: branch_true: following 'true' branch (when 'ii < screen_e')...
libX11-1.8.12/src/VisUtil.c:102:24: branch_true: ...to here
libX11-1.8.12/src/VisUtil.c:132:18: branch_false: following 'false' branch (when 'total > count')...
libX11-1.8.12/src/VisUtil.c:145:15: branch_false: ...to here
libX11-1.8.12/src/VisUtil.c:114:34: branch_true: following 'true' branch...
libX11-1.8.12/src/VisUtil.c:115:19: branch_true: ...to here
libX11-1.8.12/src/VisUtil.c:132:18: branch_false: following 'false' branch (when 'total > count')...
libX11-1.8.12/src/VisUtil.c:145:15: branch_false: ...to here
libX11-1.8.12/src/VisUtil.c:147:29: throw: if '_XVIDtoVisual' throws an exception...
libX11-1.8.12/src/VisUtil.c:158:15: danger: 'vip' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  156|                 vip->bits_per_rgb = vp->bits_per_rgb;
#  157|   
#  158|->               vip++;
#  159|   
#  160|               } /* END OF LOOP ON VISUALS */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
libX11-1.8.12/src/VisUtil.c:167:3: warning[-Wanalyzer-malloc-leak]: leak of 'vip'
libX11-1.8.12/src/VisUtil.c:80:27: acquire_memory: allocated here
libX11-1.8.12/src/VisUtil.c:80:6: branch_false: following 'false' branch (when 'vip' is non-NULL)...
libX11-1.8.12/src/VisUtil.c:88:3: branch_false: ...to here
libX11-1.8.12/src/VisUtil.c:167:3: branch_true: following 'true' branch...
libX11-1.8.12/src/VisUtil.c:167:3: branch_true: ...to here
libX11-1.8.12/src/VisUtil.c:167:3: throw: if the called function throws an exception...
libX11-1.8.12/src/VisUtil.c:167:3: danger: 'vip' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  165|       } /* END OF LOOP ON SCREENS */
#  166|   
#  167|->   UnlockDisplay(dpy);
#  168|   
#  169|     if (count)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
libX11-1.8.12/src/VisUtil.c:167:3: warning[-Wanalyzer-malloc-leak]: leak of 'vip_base'
libX11-1.8.12/src/VisUtil.c:80:27: acquire_memory: allocated here
libX11-1.8.12/src/VisUtil.c:80:6: branch_false: following 'false' branch (when 'vip' is non-NULL)...
libX11-1.8.12/src/VisUtil.c:88:3: branch_false: ...to here
libX11-1.8.12/src/VisUtil.c:100:21: branch_true: following 'true' branch (when 'ii < screen_e')...
libX11-1.8.12/src/VisUtil.c:102:24: branch_true: ...to here
libX11-1.8.12/src/VisUtil.c:132:18: branch_false: following 'false' branch (when 'total > count')...
libX11-1.8.12/src/VisUtil.c:145:15: branch_false: ...to here
libX11-1.8.12/src/VisUtil.c:167:3: branch_true: following 'true' branch...
libX11-1.8.12/src/VisUtil.c:167:3: branch_true: ...to here
libX11-1.8.12/src/VisUtil.c:167:3: throw: if the called function throws an exception...
libX11-1.8.12/src/VisUtil.c:167:3: danger: 'vip_base' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  165|       } /* END OF LOOP ON SCREENS */
#  166|   
#  167|->   UnlockDisplay(dpy);
#  168|   
#  169|     if (count)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def241]
libX11-1.8.12/src/WrBitF.c:54:20: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "w")'
libX11-1.8.12/src/WrBitF.c:88:1: enter_function: entry to 'XWriteBitmapFile'
libX11-1.8.12/src/WrBitF.c:109:18: acquire_resource: opened here
libX11-1.8.12/src/WrBitF.c:109:6: branch_false: following 'false' branch...
libX11-1.8.12/src/WrBitF.c:113:11: branch_false: ...to here
libX11-1.8.12/src/WrBitF.c:114:6: branch_false: following 'false' branch...
libX11-1.8.12/src/WrBitF.c:120:10: branch_false: ...to here
libX11-1.8.12/src/WrBitF.c:120:10: call_function: calling 'Format_Image' from 'XWriteBitmapFile'
libX11-1.8.12/src/WrBitF.c:120:10: return_function: returning to 'XWriteBitmapFile' from 'Format_Image'
libX11-1.8.12/src/WrBitF.c:121:3: throw: if the called function throws an exception...
libX11-1.8.12/src/WrBitF.c:54:20: danger: 'fopen(filename, "w")' leaks here; was opened at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
#   52|     height = image->height;
#   53|   
#   54|->   bytes_per_line = (width+7)/8;
#   55|     *resultsize = bytes_per_line * height;           /* Calculate size of data */
#   56|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
libX11-1.8.12/src/WrBitF.c:54:20: warning[-Wanalyzer-malloc-leak]: leak of 'Format_Image(XGetImage(display,  bitmap, 0, 0,  width,  height, 1, 1), &size)'
libX11-1.8.12/src/WrBitF.c:88:1: enter_function: entry to 'XWriteBitmapFile'
libX11-1.8.12/src/WrBitF.c:109:6: branch_false: following 'false' branch...
libX11-1.8.12/src/WrBitF.c:113:11: branch_false: ...to here
libX11-1.8.12/src/WrBitF.c:114:6: branch_false: following 'false' branch...
libX11-1.8.12/src/WrBitF.c:120:10: branch_false: ...to here
libX11-1.8.12/src/WrBitF.c:120:10: call_function: calling 'Format_Image' from 'XWriteBitmapFile'
libX11-1.8.12/src/WrBitF.c:120:10: return_function: returning to 'XWriteBitmapFile' from 'Format_Image'
libX11-1.8.12/src/WrBitF.c:121:3: throw: if the called function throws an exception...
libX11-1.8.12/src/WrBitF.c:54:20: danger: 'Format_Image(XGetImage(display,  bitmap, 0, 0,  width,  height, 1, 1), &size)' leaks here; was allocated at [(8)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/7)
#   52|     height = image->height;
#   53|   
#   54|->   bytes_per_line = (width+7)/8;
#   55|     *resultsize = bytes_per_line * height;           /* Calculate size of data */
#   56|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
libX11-1.8.12/src/WrBitF.c:54:20: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "w")'
libX11-1.8.12/src/WrBitF.c:88:1: enter_function: entry to 'XWriteBitmapFile'
libX11-1.8.12/src/WrBitF.c:109:18: acquire_memory: allocated here
libX11-1.8.12/src/WrBitF.c:109:6: branch_false: following 'false' branch...
libX11-1.8.12/src/WrBitF.c:113:11: branch_false: ...to here
libX11-1.8.12/src/WrBitF.c:114:6: branch_false: following 'false' branch...
libX11-1.8.12/src/WrBitF.c:120:10: branch_false: ...to here
libX11-1.8.12/src/WrBitF.c:120:10: call_function: calling 'Format_Image' from 'XWriteBitmapFile'
libX11-1.8.12/src/WrBitF.c:120:10: return_function: returning to 'XWriteBitmapFile' from 'Format_Image'
libX11-1.8.12/src/WrBitF.c:121:3: throw: if the called function throws an exception...
libX11-1.8.12/src/WrBitF.c:54:20: danger: 'fopen(filename, "w")' leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
#   52|     height = image->height;
#   53|   
#   54|->   bytes_per_line = (width+7)/8;
#   55|     *resultsize = bytes_per_line * height;           /* Calculate size of data */
#   56|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
libX11-1.8.12/src/WrBitF.c:68:11: warning[-Wanalyzer-malloc-leak]: leak of 'data'
libX11-1.8.12/src/WrBitF.c:57:10: acquire_memory: allocated here
libX11-1.8.12/src/WrBitF.c:58:6: branch_false: following 'false' branch (when 'data' is non-NULL)...
libX11-1.8.12/src/WrBitF.c:58:6: branch_false: ...to here
libX11-1.8.12/src/WrBitF.c:66:13: branch_true: following 'true' branch (when 'y < height')...
libX11-1.8.12/src/WrBitF.c:66:13: branch_true: ...to here
libX11-1.8.12/src/WrBitF.c:67:15: branch_true: following 'true' branch (when 'x < width')...
libX11-1.8.12/src/WrBitF.c:68:11: branch_true: ...to here
libX11-1.8.12/src/WrBitF.c:71:10: branch_false: following 'false' branch...
libX11-1.8.12/src/WrBitF.c:71:10: branch_false: ...to here
libX11-1.8.12/src/WrBitF.c:76:8: branch_true: following 'true' branch...
libX11-1.8.12/src/WrBitF.c:77:8: branch_true: ...to here
libX11-1.8.12/src/WrBitF.c:66:13: branch_true: following 'true' branch (when 'y < height')...
libX11-1.8.12/src/WrBitF.c:66:13: branch_true: ...to here
libX11-1.8.12/src/WrBitF.c:67:15: branch_true: following 'true' branch (when 'x < width')...
libX11-1.8.12/src/WrBitF.c:68:11: branch_true: ...to here
libX11-1.8.12/src/WrBitF.c:68:11: throw: if the called function throws an exception...
libX11-1.8.12/src/WrBitF.c:68:11: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#   66|     for (y=0; y<height; y++) {
#   67|       for (x=0; x<width;) {
#   68|->       if (XGetPixel(image, x, y))
#   69|   	c |= b;
#   70|         b <<= 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
libX11-1.8.12/src/WrBitF.c:68:11: warning[-Wanalyzer-malloc-leak]: leak of 'ptr'
libX11-1.8.12/src/WrBitF.c:57:10: acquire_memory: allocated here
libX11-1.8.12/src/WrBitF.c:58:6: branch_false: following 'false' branch (when 'data' is non-NULL)...
libX11-1.8.12/src/WrBitF.c:58:6: branch_false: ...to here
libX11-1.8.12/src/WrBitF.c:66:13: branch_true: following 'true' branch (when 'y < height')...
libX11-1.8.12/src/WrBitF.c:66:13: branch_true: ...to here
libX11-1.8.12/src/WrBitF.c:67:15: branch_true: following 'true' branch (when 'x < width')...
libX11-1.8.12/src/WrBitF.c:68:11: branch_true: ...to here
libX11-1.8.12/src/WrBitF.c:68:11: throw: if the called function throws an exception...
libX11-1.8.12/src/WrBitF.c:68:11: danger: 'ptr' leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#   66|     for (y=0; y<height; y++) {
#   67|       for (x=0; x<width;) {
#   68|->       if (XGetPixel(image, x, y))
#   69|   	c |= b;
#   70|         b <<= 1;

Error: COMPILER_WARNING (CWE-704): [#def246]
libX11-1.8.12/src/WrBitF.c: scope_hint: In function 'XWriteBitmapFile'
libX11-1.8.12/src/WrBitF.c:104:14: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  104 |   if (!(name = strrchr(filename, '/')))
#      |              ^
#  102|     char *name;
#  103|   
#  104|->   if (!(name = strrchr(filename, '/')))
#  105|       name = (char *)filename;
#  106|     else

Error: COMPILER_WARNING (CWE-704): [#def247]
libX11-1.8.12/src/WrBitF.c:104:14: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  102|     char *name;
#  103|   
#  104|->   if (!(name = strrchr(filename, '/')))
#  105|       name = (char *)filename;
#  106|     else

Error: GCC_ANALYZER_WARNING (CWE-775): [#def248]
libX11-1.8.12/src/WrBitF.c:113:11: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "w")'
libX11-1.8.12/src/WrBitF.c:109:18: acquire_resource: opened here
libX11-1.8.12/src/WrBitF.c:109:6: branch_false: following 'false' branch...
libX11-1.8.12/src/WrBitF.c:113:11: branch_false: ...to here
libX11-1.8.12/src/WrBitF.c:113:11: throw: if 'XGetImage' throws an exception...
libX11-1.8.12/src/WrBitF.c:113:11: danger: 'fopen(filename, "w")' leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  111|   
#  112|     /* Convert bitmap to an image */
#  113|->   image = XGetImage(display, bitmap, 0,0,width, height, 1L, XYPixmap);
#  114|     if (!image) {
#  115|       fclose(stream);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
libX11-1.8.12/src/WrBitF.c:113:11: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "w")'
libX11-1.8.12/src/WrBitF.c:109:18: acquire_memory: allocated here
libX11-1.8.12/src/WrBitF.c:109:6: branch_false: following 'false' branch...
libX11-1.8.12/src/WrBitF.c:113:11: branch_false: ...to here
libX11-1.8.12/src/WrBitF.c:113:11: throw: if 'XGetImage' throws an exception...
libX11-1.8.12/src/WrBitF.c:113:11: danger: 'fopen(filename, "w")' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  111|   
#  112|     /* Convert bitmap to an image */
#  113|->   image = XGetImage(display, bitmap, 0,0,width, height, 1L, XYPixmap);
#  114|     if (!image) {
#  115|       fclose(stream);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
libX11-1.8.12/src/XlibInt.c:459:5: warning[-Wanalyzer-malloc-leak]: leak of 'fd_list'
libX11-1.8.12/src/XlibInt.c:449:15: acquire_memory: allocated here
libX11-1.8.12/src/XlibInt.c:450:8: branch_false: following 'false' branch (when 'fd_list' is non-NULL)...
libX11-1.8.12/src/XlibInt.c:455:10: branch_false: ...to here
libX11-1.8.12/src/XlibInt.c:459:5: branch_true: following 'true' branch...
libX11-1.8.12/src/XlibInt.c:459:5: branch_true: ...to here
libX11-1.8.12/src/XlibInt.c:459:5: throw: if the called function throws an exception...
libX11-1.8.12/src/XlibInt.c:459:5: danger: 'fd_list' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  457|   	count++;
#  458|       }
#  459|->     UnlockDisplay(dpy);
#  460|   
#  461|       *fd_return = fd_list;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
libX11-1.8.12/src/XlibInt.c:762:13: warning[-Wanalyzer-malloc-leak]: leak of 'qelt'
libX11-1.8.12/src/XlibInt.c:736:12: branch_false: following 'false' branch (when 'qelt' is NULL)...
libX11-1.8.12/src/XlibInt.c:740:26: branch_false: ...to here
libX11-1.8.12/src/XlibInt.c:740:26: acquire_memory: allocated here
libX11-1.8.12/src/XlibInt.c:740:17: branch_false: following 'false' branch (when 'qelt' is non-NULL)...
libX11-1.8.12/src/XlibInt.c:746:9: branch_false: ...to here
libX11-1.8.12/src/XlibInt.c:760:12: branch_true: following 'true' branch...
libX11-1.8.12/src/XlibInt.c:762:13: throw: if the called function throws an exception...
libX11-1.8.12/src/XlibInt.c:762:13: danger: 'qelt' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  760|           if (type == GenericEvent && dpy->generic_event_vec[extension & 0x7F]) {
#  761|   	    XGenericEventCookie *cookie = &qelt->event.xcookie;
#  762|-> 	    (*dpy->generic_event_vec[extension & 0x7F])(dpy, cookie, event);
#  763|   	    cookie->cookie = ++dpy->next_cookie;
#  764|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
libX11-1.8.12/src/XlibInt.c:771:20: warning[-Wanalyzer-malloc-leak]: leak of 'qelt'
libX11-1.8.12/src/XlibInt.c:736:12: branch_false: following 'false' branch (when 'qelt' is NULL)...
libX11-1.8.12/src/XlibInt.c:740:26: branch_false: ...to here
libX11-1.8.12/src/XlibInt.c:740:26: acquire_memory: allocated here
libX11-1.8.12/src/XlibInt.c:740:17: branch_false: following 'false' branch (when 'qelt' is non-NULL)...
libX11-1.8.12/src/XlibInt.c:746:9: branch_false: ...to here
libX11-1.8.12/src/XlibInt.c:771:20: throw: if the called function throws an exception...
libX11-1.8.12/src/XlibInt.c:771:20: danger: 'qelt' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  769|   	    dpy->tail = qelt;
#  770|   	    dpy->qlen++;
#  771|-> 	} else if ((*dpy->event_vec[type])(dpy, &qelt->event, event)) {
#  772|   	    qelt->qserial_num = dpy->next_event_serial_num++;
#  773|   	    if (dpy->tail)	dpy->tail->next = qelt;

Error: COMPILER_WARNING (CWE-134): [#def253]
libX11-1.8.12/src/XlibInt.c: scope_hint: In function '_XPrintDefaultError'
libX11-1.8.12/src/XlibInt.c:1329:24: warning[-Wformat-nonliteral]: format not a string literal, argument types not checked
# 1329 |     (void) fprintf(fp, mesg, event->request_code);
#      |                        ^~~~
# 1327|       XGetErrorDatabaseText(dpy, mtype, "MajorCode", "Request Major code %d",
# 1328|   	mesg, BUFSIZ);
# 1329|->     (void) fprintf(fp, mesg, event->request_code);
# 1330|       if (event->request_code < 128) {
# 1331|   	snprintf(number, sizeof(number), "%d", event->request_code);

Error: COMPILER_WARNING (CWE-134): [#def254]
libX11-1.8.12/src/XlibInt.c:1349:28: warning[-Wformat-nonliteral]: format not a string literal, argument types not checked
# 1349 |         (void) fprintf(fp, mesg, event->minor_code);
#      |                            ^~~~
# 1347|   			      mesg, BUFSIZ);
# 1348|   	fputs("  ", fp);
# 1349|-> 	(void) fprintf(fp, mesg, event->minor_code);
# 1350|   	if (ext) {
# 1351|   	    snprintf(mesg, sizeof(mesg), "%s.%d", ext->name, event->minor_code);

Error: COMPILER_WARNING (CWE-134): [#def255]
libX11-1.8.12/src/XlibInt.c:1381:32: warning[-Wformat-nonliteral]: format not a string literal, argument types not checked
# 1381 |             (void) fprintf(fp, mesg, event->resourceid);
#      |                                ^~~~
# 1379|   	if (mesg[0]) {
# 1380|   	    fputs("  ", fp);
# 1381|-> 	    (void) fprintf(fp, mesg, event->resourceid);
# 1382|   	    fputs("\n", fp);
# 1383|   	}

Error: COMPILER_WARNING (CWE-134): [#def256]
libX11-1.8.12/src/XlibInt.c:1409:28: warning[-Wformat-nonliteral]: format not a string literal, argument types not checked
# 1409 |         (void) fprintf(fp, mesg, event->resourceid);
#      |                            ^~~~
# 1407|   				  mesg, BUFSIZ);
# 1408|   	fputs("  ", fp);
# 1409|-> 	(void) fprintf(fp, mesg, event->resourceid);
# 1410|   	fputs("\n", fp);
# 1411|       }

Error: COMPILER_WARNING (CWE-134): [#def257]
libX11-1.8.12/src/XlibInt.c:1415:24: warning[-Wformat-nonliteral]: format not a string literal, argument types not checked
# 1415 |     (void) fprintf(fp, mesg, event->serial);
#      |                        ^~~~
# 1413|   			  mesg, BUFSIZ);
# 1414|       fputs("  ", fp);
# 1415|->     (void) fprintf(fp, mesg, event->serial);
# 1416|       XGetErrorDatabaseText(dpy, mtype, "CurrentSerial", "Current Serial #%lld",
# 1417|   			  mesg, BUFSIZ);

Error: COMPILER_WARNING (CWE-134): [#def258]
libX11-1.8.12/src/XlibInt.c:1419:24: warning[-Wformat-nonliteral]: format not a string literal, argument types not checked
# 1419 |     (void) fprintf(fp, mesg, (unsigned long long)(X_DPY_GET_REQUEST(dpy)));
#      |                        ^~~~
# 1417|   			  mesg, BUFSIZ);
# 1418|       fputs("\n  ", fp);
# 1419|->     (void) fprintf(fp, mesg, (unsigned long long)(X_DPY_GET_REQUEST(dpy)));
# 1420|       fputs("\n", fp);
# 1421|       if (event->error_code == BadImplementation) return 0;

Error: COMPILER_WARNING (CWE-783): [#def259]
libX11-1.8.12/src/Xrm.c: scope_hint: In function 'PutEntry'
libX11-1.8.12/src/Xrm.c:900:36: warning[-Wlogical-not-parentheses]: logical not is only applied to the left hand side of comparison
#  900 |                         !quarks[2] != table->leaf)
#      |                                    ^~
libX11-1.8.12/src/Xrm.c:900:25: note: add parentheses around left hand side expression to silence this warning
#  900 |                         !quarks[2] != table->leaf)
#      |                         ^~~~~~~~~~
#      |                         (         )
#  898|   		    table = *(prev = &table->next);
#  899|   		    if (!table || table->name != q ||
#  900|-> 			!quarks[2] != table->leaf)
#  901|   			break; /* not found */
#  902|   		}

Error: COMPILER_WARNING: [#def260]
libX11-1.8.12/src/Xrm.c: scope_hint: In function 'GetDatabase'
libX11-1.8.12/src/Xrm.c:1496:39: warning[-Wuse-after-free]: pointer 'rhs_260' may be used after 'realloc'
# 1496 |                 ptr = temp_str + (ptr - rhs); /* reset pointer. */
#      |                                  ~~~~~^~~~~~
libX11-1.8.12/include/X11/Xlibint.h:458:30: note: call to 'realloc' here
#  458 | # define Xrealloc(ptr, size) realloc((ptr), (size_t)((size) == 0 ? 1 : (size)))
#      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1494|   		}
# 1495|   
# 1496|-> 		ptr = temp_str + (ptr - rhs); /* reset pointer. */
# 1497|   		rhs = temp_str;
# 1498|   		ptr_max = rhs + alloc_chars - 4;

Error: COMPILER_WARNING (CWE-704): [#def261]
libX11-1.8.12/src/Xrm.c: scope_hint: In function 'GetIncludeFile'
libX11-1.8.12/src/Xrm.c:1636:39: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 1636 |     if (*fname != '/' && base && (str = strrchr(base, '/'))) {
#      |                                       ^
# 1634|       if (depth >= MAXDBDEPTH)
# 1635|   	return;
# 1636|->     if (*fname != '/' && base && (str = strrchr(base, '/'))) {
# 1637|   	len = str - base + 1;
# 1638|   	if (len + fnamelen >= BUFSIZ)

Error: COMPILER_WARNING (CWE-704): [#def262]
libX11-1.8.12/src/Xrm.c:1636:39: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
# 1634|       if (depth >= MAXDBDEPTH)
# 1635|   	return;
# 1636|->     if (*fname != '/' && base && (str = strrchr(base, '/'))) {
# 1637|   	len = str - base + 1;
# 1638|   	if (len + fnamelen >= BUFSIZ)

Error: COMPILER_WARNING: [#def263]
libX11-1.8.12/src/xlibi18n/lcConv.c:32: included_from: Included from here.
libX11-1.8.12/src/locking.h:37:9: warning: 'xmalloc' redefined
#   37 | #define xmalloc(s) Xmalloc(s)
#      |         ^~~~~~~
libX11-1.8.12/include/X11/Xlibint.h:47: included_from: Included from here.
libX11-1.8.12/src/xlibi18n/lcConv.c:29: included_from: Included from here.
/usr/include/X11/Xthreads.h:34:11: note: this is the location of the previous definition
#   34 | #  define xmalloc malloc
#      |           ^~~~~~~
#   35|   #define _X_locking_H_
#   36|   
#   37|-> #define xmalloc(s) Xmalloc(s)
#   38|   #define xfree(s) Xfree(s)
#   39|   #include <X11/Xlib.h>

Error: COMPILER_WARNING: [#def264]
libX11-1.8.12/src/locking.h:37:9: warning[warning]: 'xmalloc' redefined
#   35|   #define _X_locking_H_
#   36|   
#   37|-> #define xmalloc(s) Xmalloc(s)
#   38|   #define xfree(s) Xfree(s)
#   39|   #include <X11/Xlib.h>

Error: COMPILER_WARNING: [#def265]
libX11-1.8.12/src/locking.h:38:9: warning: 'xfree' redefined
#   38 | #define xfree(s) Xfree(s)
#      |         ^~~~~
/usr/include/X11/Xthreads.h:37:11: note: this is the location of the previous definition
#   37 | #  define xfree free
#      |           ^~~~~
#   36|   
#   37|   #define xmalloc(s) Xmalloc(s)
#   38|-> #define xfree(s) Xfree(s)
#   39|   #include <X11/Xlib.h>
#   40|   #include <X11/Xlibint.h>

Error: COMPILER_WARNING: [#def266]
libX11-1.8.12/src/locking.h:38:9: warning[warning]: 'xfree' redefined
#   36|   
#   37|   #define xmalloc(s) Xmalloc(s)
#   38|-> #define xfree(s) Xfree(s)
#   39|   #include <X11/Xlib.h>
#   40|   #include <X11/Xlibint.h>

Error: GCC_ANALYZER_WARNING (CWE-775): [#def267]
libX11-1.8.12/src/util/makekeys.c:74:37: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "r")’
libX11-1.8.12/src/util/makekeys.c:119:1: enter_function: entry to ‘main’
libX11-1.8.12/src/util/makekeys.c:135:17: branch_true: following ‘true’ branch (when ‘l < argc’)...
libX11-1.8.12/src/util/makekeys.c:136:26: branch_true: ...to here
libX11-1.8.12/src/util/makekeys.c:136:16: acquire_resource: opened here
libX11-1.8.12/src/util/makekeys.c:143:18: call_function: calling ‘parse_line’ from ‘main’
libX11-1.8.12/src/util/makekeys.c:143:18: return_function: returning to ‘main’ from ‘parse_line’
libX11-1.8.12/src/util/makekeys.c:143:16: branch_false: following ‘false’ branch...
libX11-1.8.12/src/util/makekeys.c:146:17: branch_false: ...to here
libX11-1.8.12/src/util/makekeys.c:74:37: danger: ‘fopen(*<unknown>, "r")’ leaks here; was opened at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#   72|       i = sscanf(buf, "#define %127s 0x%lx", key, val);
#   73|       if (i == 2 && (tmp = strstr(key, "XK_"))) {
#   74|->         memcpy(prefix, key, (size_t)(tmp - key));
#   75|           prefix[tmp - key] = '\0';
#   76|           tmp += 3;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
libX11-1.8.12/src/util/makekeys.c:74:37: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "r")’
libX11-1.8.12/src/util/makekeys.c:119:1: enter_function: entry to ‘main’
libX11-1.8.12/src/util/makekeys.c:135:17: branch_true: following ‘true’ branch (when ‘l < argc’)...
libX11-1.8.12/src/util/makekeys.c:136:26: branch_true: ...to here
libX11-1.8.12/src/util/makekeys.c:136:16: acquire_memory: allocated here
libX11-1.8.12/src/util/makekeys.c:143:18: call_function: calling ‘parse_line’ from ‘main’
libX11-1.8.12/src/util/makekeys.c:143:18: return_function: returning to ‘main’ from ‘parse_line’
libX11-1.8.12/src/util/makekeys.c:143:16: branch_false: following ‘false’ branch...
libX11-1.8.12/src/util/makekeys.c:146:17: branch_false: ...to here
libX11-1.8.12/src/util/makekeys.c:74:37: danger: ‘fopen(*<unknown>, "r")’ leaks here; was allocated at [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3)
#   72|       i = sscanf(buf, "#define %127s 0x%lx", key, val);
#   73|       if (i == 2 && (tmp = strstr(key, "XK_"))) {
#   74|->         memcpy(prefix, key, (size_t)(tmp - key));
#   75|           prefix[tmp - key] = '\0';
#   76|           tmp += 3;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def269]
libX11-1.8.12/src/util/makekeys.c:84:37: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*<unknown>, "r")’
libX11-1.8.12/src/util/makekeys.c:119:1: enter_function: entry to ‘main’
libX11-1.8.12/src/util/makekeys.c:135:17: branch_true: following ‘true’ branch (when ‘l < argc’)...
libX11-1.8.12/src/util/makekeys.c:136:26: branch_true: ...to here
libX11-1.8.12/src/util/makekeys.c:136:16: acquire_resource: opened here
libX11-1.8.12/src/util/makekeys.c:143:18: call_function: calling ‘parse_line’ from ‘main’
libX11-1.8.12/src/util/makekeys.c:143:18: return_function: returning to ‘main’ from ‘parse_line’
libX11-1.8.12/src/util/makekeys.c:143:16: branch_false: following ‘false’ branch...
libX11-1.8.12/src/util/makekeys.c:146:17: branch_false: ...to here
libX11-1.8.12/src/util/makekeys.c:84:37: danger: ‘fopen(*<unknown>, "r")’ leaks here; was opened at [(4)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/3)
#   82|       i = sscanf(buf, "#define %127s _EVDEVK(0x%lx)", key, val);
#   83|       if (i == 2 && (tmp = strstr(key, "XK_"))) {
#   84|->         memcpy(prefix, key, (size_t)(tmp - key));
#   85|           prefix[tmp - key] = '\0';
#   86|           tmp += 3;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
libX11-1.8.12/src/util/makekeys.c:84:37: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*<unknown>, "r")’
libX11-1.8.12/src/util/makekeys.c:119:1: enter_function: entry to ‘main’
libX11-1.8.12/src/util/makekeys.c:135:17: branch_true: following ‘true’ branch (when ‘l < argc’)...
libX11-1.8.12/src/util/makekeys.c:136:26: branch_true: ...to here
libX11-1.8.12/src/util/makekeys.c:136:16: acquire_memory: allocated here
libX11-1.8.12/src/util/makekeys.c:143:18: call_function: calling ‘parse_line’ from ‘main’
libX11-1.8.12/src/util/makekeys.c:143:18: return_function: returning to ‘main’ from ‘parse_line’
libX11-1.8.12/src/util/makekeys.c:143:16: branch_false: following ‘false’ branch...
libX11-1.8.12/src/util/makekeys.c:146:17: branch_false: ...to here
libX11-1.8.12/src/util/makekeys.c:84:37: danger: ‘fopen(*<unknown>, "r")’ leaks here; was allocated at [(4)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/3)
#   82|       i = sscanf(buf, "#define %127s _EVDEVK(0x%lx)", key, val);
#   83|       if (i == 2 && (tmp = strstr(key, "XK_"))) {
#   84|->         memcpy(prefix, key, (size_t)(tmp - key));
#   85|           prefix[tmp - key] = '\0';
#   86|           tmp += 3;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
libX11-1.8.12/src/xcms/CCC.c:146:18: warning[-Wanalyzer-malloc-leak]: leak of 'newccc'
libX11-1.8.12/src/xcms/CCC.c:88:1: enter_function: entry to 'XcmsCreateCCC'
libX11-1.8.12/src/xcms/CCC.c:108:27: call_function: calling 'XcmsDefaultCCC' from 'XcmsCreateCCC'
libX11-1.8.12/src/xcms/CCC.c:108:27: return_function: returning to 'XcmsCreateCCC' from 'XcmsDefaultCCC'
libX11-1.8.12/src/xcms/CCC.c:113:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xcms/CCC.c:114:24: branch_false: ...to here
libX11-1.8.12/src/xcms/CCC.c:114:24: acquire_memory: allocated here
libX11-1.8.12/src/xcms/CCC.c:113:9: branch_false: following 'false' branch (when 'newccc' is non-NULL)...
libX11-1.8.12/src/xcms/CCC.c:124:5: branch_false: ...to here
libX11-1.8.12/src/xcms/CCC.c:125:8: branch_false: following 'false' branch (when 'clientWhitePt' is NULL)...
libX11-1.8.12/src/xcms/CCC.c:129:8: branch_false: ...to here
libX11-1.8.12/src/xcms/CCC.c:129:8: branch_false: following 'false' branch (when 'gamutCompProc' is NULL)...
libX11-1.8.12/src/xcms/CCC.c:132:8: branch_false: ...to here
libX11-1.8.12/src/xcms/CCC.c:132:8: branch_false: following 'false' branch (when 'gamutCompClientData' is NULL)...
libX11-1.8.12/src/xcms/CCC.c:135:8: branch_false: ...to here
libX11-1.8.12/src/xcms/CCC.c:135:8: branch_false: following 'false' branch (when 'whitePtAdjProc' is NULL)...
libX11-1.8.12/src/xcms/CCC.c:138:8: branch_false: ...to here
libX11-1.8.12/src/xcms/CCC.c:138:8: branch_false: following 'false' branch (when 'whitePtAdjClientData' is NULL)...
libX11-1.8.12/src/xcms/CCC.c:146:18: branch_false: ...to here
libX11-1.8.12/src/xcms/CCC.c:146:18: throw: if '_XcmsGetIntensityMap' throws an exception...
libX11-1.8.12/src/xcms/CCC.c:146:18: danger: 'newccc' leaks here; was allocated at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
#  144|        * If one exists replace the pPerScrnInfo.
#  145|        */
#  146|->     if ((pIMap = _XcmsGetIntensityMap(dpy, visual)) != NULL) {
#  147|   	if (!(pNewScrnInfo = Xcalloc(1, sizeof(XcmsPerScrnInfo)))) {
#  148|   	    Xfree(newccc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
libX11-1.8.12/src/xcms/IdOfPr.c:74:5: warning[-Wanalyzer-malloc-leak]: leak of 'string_lowered'
libX11-1.8.12/src/xcms/IdOfPr.c:69:8: branch_true: following 'true' branch (when 'len > 63')...
libX11-1.8.12/src/xcms/IdOfPr.c:70:26: branch_true: ...to here
libX11-1.8.12/src/xcms/IdOfPr.c:70:26: acquire_memory: allocated here
libX11-1.8.12/src/xcms/IdOfPr.c:74:5: throw: if '_XcmsCopyISOLatin1Lowered' throws an exception...
libX11-1.8.12/src/xcms/IdOfPr.c:74:5: danger: 'string_lowered' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   72|   	string_lowered = string_buf;
#   73|       }
#   74|->     _XcmsCopyISOLatin1Lowered(string_lowered, prefix);
#   75|   
#   76|       /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
libX11-1.8.12/src/xcms/LRGB.c:494:10: warning[-Wanalyzer-malloc-leak]: leak of 'pScreenDefaultData'
libX11-1.8.12/src/xcms/LRGB.c:485:23: acquire_memory: allocated here
libX11-1.8.12/src/xcms/LRGB.c:484:8: branch_false: following 'false' branch (when 'pScreenDefaultData' is non-NULL)...
libX11-1.8.12/src/xcms/LRGB.c:493:8: branch_false: ...to here
libX11-1.8.12/src/xcms/LRGB.c:493:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xcms/LRGB.c:494:33: branch_false: ...to here
libX11-1.8.12/src/xcms/LRGB.c:494:10: throw: if '_XcmsGetProperty' throws an exception...
libX11-1.8.12/src/xcms/LRGB.c:494:10: danger: 'pScreenDefaultData' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  492|   
#  493|       if (MatrixAtom == None ||
#  494|-> 	!_XcmsGetProperty (dpy, RootWindow(dpy, screenNumber), MatrixAtom,
#  495|   	   &format_return, &nitems, &nbytes_return, &property_return) ||
#  496|   	   nitems != 18 || format_return != 32) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
libX11-1.8.12/src/xcms/LRGB.c:511:31: warning[-Wanalyzer-malloc-leak]: leak of 'pScreenDefaultData'
libX11-1.8.12/src/xcms/LRGB.c:485:23: acquire_memory: allocated here
libX11-1.8.12/src/xcms/LRGB.c:484:8: branch_false: following 'false' branch (when 'pScreenDefaultData' is non-NULL)...
libX11-1.8.12/src/xcms/LRGB.c:493:8: branch_false: ...to here
libX11-1.8.12/src/xcms/LRGB.c:493:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xcms/LRGB.c:494:33: branch_false: ...to here
libX11-1.8.12/src/xcms/LRGB.c:493:9: branch_false: following 'false' branch...
libX11-1.8.12/src/xcms/LRGB.c:496:12: branch_false: ...to here
libX11-1.8.12/src/xcms/LRGB.c:493:9: branch_false: following 'false' branch...
libX11-1.8.12/src/xcms/LRGB.c:496:28: branch_false: ...to here
libX11-1.8.12/src/xcms/LRGB.c:493:9: branch_false: following 'false' branch...
libX11-1.8.12/src/xcms/LRGB.c:509:9: branch_false: ...to here
libX11-1.8.12/src/xcms/LRGB.c:510:25: branch_true: following 'true' branch (when 'count != 18')...
libX11-1.8.12/src/xcms/LRGB.c:511:31: branch_true: ...to here
libX11-1.8.12/src/xcms/LRGB.c:511:31: throw: if '_XcmsGetElement' throws an exception...
libX11-1.8.12/src/xcms/LRGB.c:511:31: danger: 'pScreenDefaultData' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  509|   	pChar = property_return;
#  510|   	for (count = 0; count < 18; count++) {
#  511|-> 	    *pValue++ = (long)_XcmsGetElement(format_return, &pChar,
#  512|   		    &nitems) / (XcmsFloat)XDCCC_NUMBER;
#  513|   	}

Error: GCC_ANALYZER_WARNING (CWE-457): [#def275]
libX11-1.8.12/src/xcms/LRGB.c:1196:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*(IntensityRec *)key.value'
libX11-1.8.12/src/xcms/LRGB.c:1642:1: enter_function: entry to 'XcmsRGBiToRGB'
libX11-1.8.12/src/xcms/LRGB.c:1667:8: branch_false: following 'false' branch (when 'ccc' is non-NULL)...
libX11-1.8.12/src/xcms/LRGB.c:1671:41: branch_false: ...to here
libX11-1.8.12/src/xcms/LRGB.c:1673:12: branch_true: following 'true' branch (when 'nColors != 0')...
libX11-1.8.12/src/xcms/LRGB.c:1676:13: branch_true: ...to here
libX11-1.8.12/src/xcms/LRGB.c:1676:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xcms/LRGB.c:1680:29: branch_false: ...to here
libX11-1.8.12/src/xcms/LRGB.c:1681:14: call_function: calling '_XcmsTableSearch' from 'XcmsRGBiToRGB'
# 1194|       /* use only the significants bits, then scale into 16 bits */
# 1195|       ((IntensityRec *)key)->value = ((unsigned long)
# 1196|-> 	    (((IntensityRec *)key)->value >> (16 - bitsPerRGB)) * 0xFFFF)
# 1197|   	    / ((1 << bitsPerRGB) - 1);
# 1198|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def276]
libX11-1.8.12/src/xcms/LRGB.c:1307:13: warning[-Wanalyzer-infinite-loop]: infinite loop
libX11-1.8.12/src/xcms/LRGB.c:1307:13: danger: infinite loop here
libX11-1.8.12/src/xcms/LRGB.c:1307:25: branch_false: when 'i == -1': always following 'false' branch...
libX11-1.8.12/src/xcms/LRGB.c:1320:18: branch_false: ...to here
libX11-1.8.12/src/xcms/LRGB.c:1320:18: branch_true: if it ever follows 'true' branch, it will always do so...
libX11-1.8.12/src/xcms/LRGB.c:1320:18: branch_true: ...to here
# 1305|   	    g = b;
# 1306|   	    b = 0;
# 1307|-> 	    for (i = n; --i >= 0; ) {
# 1308|   		c = *spec++;
# 1309|   		b <<= 4;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
libX11-1.8.12/src/xcms/SetGetCols.c:252:19: warning[-Wanalyzer-malloc-leak]: leak of 'pXColors_in_out'
libX11-1.8.12/src/xcms/SetGetCols.c:217:8: branch_false: following 'false' branch (when 'dpy' is non-NULL)...
libX11-1.8.12/src/xcms/SetGetCols.c:221:8: branch_false: ...to here
libX11-1.8.12/src/xcms/SetGetCols.c:221:8: branch_false: following 'false' branch (when 'nColors != 0')...
libX11-1.8.12/src/xcms/SetGetCols.c:225:8: branch_false: ...to here
libX11-1.8.12/src/xcms/SetGetCols.c:225:8: branch_false: following 'false' branch (when 'result_format != 0')...
libX11-1.8.12/src/xcms/SetGetCols.c:229:8: branch_false: ...to here
libX11-1.8.12/src/xcms/SetGetCols.c:233:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xcms/SetGetCols.c:240:28: branch_false: ...to here
libX11-1.8.12/src/xcms/SetGetCols.c:240:28: acquire_memory: allocated here
libX11-1.8.12/src/xcms/SetGetCols.c:240:8: branch_false: following 'false' branch (when 'pXColors_in_out' is non-NULL)...
libX11-1.8.12/src/xcms/SetGetCols.c:245:8: branch_false: ...to here
libX11-1.8.12/src/xcms/SetGetCols.c:245:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xcms/SetGetCols.c:252:19: branch_false: ...to here
libX11-1.8.12/src/xcms/SetGetCols.c:252:19: throw: if 'XcmsConvertColors' throws an exception...
libX11-1.8.12/src/xcms/SetGetCols.c:252:19: danger: 'pXColors_in_out' leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  250|        * Convert to RGB, adjusting for white point differences if necessary.
#  251|        */
#  252|->     if ((retval = XcmsConvertColors(ccc, pColors_in_out, nColors, XcmsRGBFormat,
#  253|   	    pCompressed)) == XcmsFailure) {
#  254|           Xfree(pXColors_in_out);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
libX11-1.8.12/src/xcms/SetGetCols.c:262:5: warning[-Wanalyzer-malloc-leak]: leak of 'pXColors_in_out'
libX11-1.8.12/src/xcms/SetGetCols.c:217:8: branch_false: following 'false' branch (when 'dpy' is non-NULL)...
libX11-1.8.12/src/xcms/SetGetCols.c:221:8: branch_false: ...to here
libX11-1.8.12/src/xcms/SetGetCols.c:221:8: branch_false: following 'false' branch (when 'nColors != 0')...
libX11-1.8.12/src/xcms/SetGetCols.c:225:8: branch_false: ...to here
libX11-1.8.12/src/xcms/SetGetCols.c:225:8: branch_false: following 'false' branch (when 'result_format != 0')...
libX11-1.8.12/src/xcms/SetGetCols.c:229:8: branch_false: ...to here
libX11-1.8.12/src/xcms/SetGetCols.c:233:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xcms/SetGetCols.c:240:28: branch_false: ...to here
libX11-1.8.12/src/xcms/SetGetCols.c:240:28: acquire_memory: allocated here
libX11-1.8.12/src/xcms/SetGetCols.c:240:8: branch_false: following 'false' branch (when 'pXColors_in_out' is non-NULL)...
libX11-1.8.12/src/xcms/SetGetCols.c:245:8: branch_false: ...to here
libX11-1.8.12/src/xcms/SetGetCols.c:262:5: throw: if '_XcmsRGB_to_XColor' throws an exception...
libX11-1.8.12/src/xcms/SetGetCols.c:262:5: danger: 'pXColors_in_out' leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  260|        * Convert XcmsColor to XColor structures
#  261|        */
#  262|->     _XcmsRGB_to_XColor(pColors_in_out, pXColors_in_out, nColors);
#  263|   
#  264|       /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
libX11-1.8.12/src/xcms/StCols.c:101:14: warning[-Wanalyzer-malloc-leak]: leak of 'pColors_tmp'
libX11-1.8.12/src/xcms/StCols.c:88:8: branch_true: following 'true' branch (when 'nColors > 1')...
libX11-1.8.12/src/xcms/StCols.c:89:23: branch_true: ...to here
libX11-1.8.12/src/xcms/StCols.c:89:23: acquire_memory: allocated here
libX11-1.8.12/src/xcms/StCols.c:90:12: branch_false: following 'false' branch (when 'pColors_tmp' is non-NULL)...
libX11-1.8.12/src/xcms/StCols.c:95:5: branch_false: ...to here
libX11-1.8.12/src/xcms/StCols.c:101:14: throw: if '_XcmsSetGetColors' throws an exception...
libX11-1.8.12/src/xcms/StCols.c:101:14: danger: 'pColors_tmp' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   99|        * Call routine to store colors using the copied color structures
#  100|        */
#  101|->     retval = _XcmsSetGetColors (XStoreColors, dpy, colormap,
#  102|   	    pColors_tmp, nColors, XcmsRGBFormat, pCompressed);
#  103|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
libX11-1.8.12/src/xcms/cmsCmap.c:266:5: warning[-Wanalyzer-malloc-leak]: leak of 'pNew'
libX11-1.8.12/src/xcms/cmsCmap.c:492:9: enter_function: entry to 'XcmsSetCCCOfColormap'
libX11-1.8.12/src/xcms/cmsCmap.c:500:12: call_function: calling 'CmapRecForColormap' from 'XcmsSetCCCOfColormap'
#  264|       pNew->windowID = windowID;
#  265|       pNew->visual = visual;
#  266|->     LockDisplay(dpy);
#  267|       pNew->pNext = (XcmsCmapRec *)dpy->cms.clientCmaps;
#  268|       dpy->cms.clientCmaps = (XPointer)pNew;

Error: COMPILER_WARNING (CWE-704): [#def281]
libX11-1.8.12/src/xcms/cmsColNm.c: scope_hint: In function '_XcmsColorSpaceOfString'
libX11-1.8.12/src/xcms/cmsColNm.c:132:16: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  132 |     if ((pchar = strchr(color_string, ':')) == NULL) {
#      |                ^
#  130|       char *pchar;
#  131|   
#  132|->     if ((pchar = strchr(color_string, ':')) == NULL) {
#  133|   	return(XcmsFailure);
#  134|       }

Error: COMPILER_WARNING (CWE-704): [#def282]
libX11-1.8.12/src/xcms/cmsColNm.c:132:16: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  130|       char *pchar;
#  131|   
#  132|->     if ((pchar = strchr(color_string, ':')) == NULL) {
#  133|   	return(XcmsFailure);
#  134|       }

Error: GCC_ANALYZER_WARNING: [#def283]
libX11-1.8.12/src/xcms/uvY.c:288:17: warning[-Wanalyzer-overlapping-buffers]: overlapping buffers passed as arguments to 'memcpy'
libX11-1.8.12/src/xcms/uvY.c:263:17: branch_true: following 'true' branch (when 'i < nColors')...
libX11-1.8.12/src/xcms/uvY.c:266:14: branch_true: ...to here
libX11-1.8.12/src/xcms/uvY.c:266:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xcms/uvY.c:274:9: branch_false: ...to here
libX11-1.8.12/src/xcms/uvY.c:278:12: branch_true: following 'true' branch (when 'div == 0.0')...
libX11-1.8.12/src/xcms/uvY.c:280:16: branch_true: ...to here
libX11-1.8.12/src/xcms/uvY.c:280:16: branch_false: following 'false' branch (when 'puvY_WhitePt' is non-NULL)...
libX11-1.8.12/src/xcms/uvY.c:286:17: branch_false: ...to here
libX11-1.8.12/src/xcms/uvY.c:286:16: branch_true: following 'true' branch...
libX11-1.8.12/src/xcms/uvY.c:288:17: branch_true: ...to here
libX11-1.8.12/src/xcms/uvY.c:289:20: branch_false: following 'false' branch...
libX11-1.8.12/src/xcms/uvY.c:296:17: branch_false: ...to here
libX11-1.8.12/src/xcms/uvY.c:296:16: branch_false: following 'false' branch...
libX11-1.8.12/src/xcms/uvY.c:299:26: branch_false: ...to here
libX11-1.8.12/src/xcms/uvY.c:301:16: branch_false: following 'false' branch (when 'div != 0.0')...
libX11-1.8.12/src/xcms/uvY.c:305:17: branch_false: ...to here
libX11-1.8.12/src/xcms/uvY.c:315:12: branch_true: following 'true' branch (when 'y != 0.0')...
libX11-1.8.12/src/xcms/uvY.c:316:28: branch_true: ...to here
libX11-1.8.12/src/xcms/uvY.c:321:12: branch_true: following 'true' branch (when 'y != 0.0')...
libX11-1.8.12/src/xcms/uvY.c:322:28: branch_true: ...to here
libX11-1.8.12/src/xcms/uvY.c:263:17: branch_true: following 'true' branch (when 'i < nColors')...
libX11-1.8.12/src/xcms/uvY.c:266:14: branch_true: ...to here
libX11-1.8.12/src/xcms/uvY.c:266:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xcms/uvY.c:274:9: branch_false: ...to here
libX11-1.8.12/src/xcms/uvY.c:278:12: branch_true: following 'true' branch (when 'div == 0.0')...
libX11-1.8.12/src/xcms/uvY.c:280:16: branch_true: ...to here
libX11-1.8.12/src/xcms/uvY.c:280:16: branch_false: following 'false' branch (when 'puvY_WhitePt' is non-NULL)...
libX11-1.8.12/src/xcms/uvY.c:286:17: branch_false: ...to here
libX11-1.8.12/src/xcms/uvY.c:286:16: branch_true: following 'true' branch...
libX11-1.8.12/src/xcms/uvY.c:288:17: branch_true: ...to here
libX11-1.8.12/src/xcms/uvY.c:288:17: danger: overlapping buffers passed as arguments to 'memcpy'
#  286|   	    if (puvY_WhitePt->format != XcmsCIEuvYFormat) {
#  287|   		/* Make copy of the white point because we're going to modify it */
#  288|-> 		memcpy((char *)&whitePt, (char *)puvY_WhitePt, sizeof(XcmsColor));
#  289|   		if (!_XcmsDIConvertColors(ccc, &whitePt, (XcmsColor *)NULL, 1,
#  290|   			XcmsCIEuvYFormat)) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def284]
libX11-1.8.12/src/xcms/xyY.c:307:35: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'whitePt.spec.CIEuvY.u_prime'
libX11-1.8.12/src/xcms/xyY.c:269:17: branch_true: following 'true' branch (when 'i < nColors')...
libX11-1.8.12/src/xcms/xyY.c:271:14: branch_true: ...to here
libX11-1.8.12/src/xcms/xyY.c:271:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xcms/xyY.c:275:26: branch_false: ...to here
libX11-1.8.12/src/xcms/xyY.c:285:16: branch_false: following 'false' branch...
libX11-1.8.12/src/xcms/xyY.c:296:17: branch_false: ...to here
libX11-1.8.12/src/xcms/xyY.c:296:16: branch_false: following 'false' branch...
libX11-1.8.12/src/xcms/xyY.c:301:22: branch_false: ...to here
libX11-1.8.12/src/xcms/xyY.c:304:16: branch_true: following 'true' branch (when 'div == 0.0')...
libX11-1.8.12/src/xcms/xyY.c:307:35: branch_true: ...to here
libX11-1.8.12/src/xcms/xyY.c:307:35: danger: use of uninitialized value 'whitePt.spec.CIEuvY.u_prime' here
#  305|   		/* Note that the divisor is zero */
#  306|   		/* This return is abitrary. */
#  307|-> 		if ((div = (6.0 * whitePt.spec.CIEuvY.u_prime) -
#  308|   		           (16.0 * whitePt.spec.CIEuvY.v_prime) + 12.0) == 0.0) {
#  309|   		    div = EPS;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def285]
libX11-1.8.12/src/xkb/XKBExtDev.c:659:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*stuff.info'
libX11-1.8.12/src/xkb/XKBExtDev.c:789:1: enter_function: entry to 'XkbSetDeviceButtonActions'
libX11-1.8.12/src/xkb/XKBExtDev.c:801:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:802:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:804:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:807:8: branch_false: following 'false' branch (when 'nBtns != 0')...
libX11-1.8.12/src/xkb/XKBExtDev.c:810:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:818:9: call_function: calling '_XkbSetDeviceInfoSize' from 'XkbSetDeviceButtonActions'
libX11-1.8.12/src/xkb/XKBExtDev.c:818:9: return_function: returning to 'XkbSetDeviceButtonActions' from '_XkbSetDeviceInfoSize'
libX11-1.8.12/src/xkb/XKBExtDev.c:818:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:820:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:831:8: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:834:9: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:836:14: call_function: calling '_XkbWriteSetDeviceInfo' from 'XkbSetDeviceButtonActions'
#  657|           register LedInfoStuff *linfo;
#  658|   
#  659|->         for (i = 0, linfo = &stuff->info[0]; i < stuff->num_info; i++, linfo++) {
#  660|               if (linfo->used) {
#  661|                   register char *new_wire;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def286]
libX11-1.8.12/src/xkb/XKBExtDev.c:741:16: warning[-Wanalyzer-malloc-leak]: leak of 'lstuff.info'
libX11-1.8.12/src/xkb/XKBExtDev.c:729:1: enter_function: entry to 'XkbChangeDeviceInfo'
libX11-1.8.12/src/xkb/XKBExtDev.c:739:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:740:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:742:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:743:9: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:744:12: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:744:10: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:745:10: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:745:9: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:746:12: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:746:10: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:749:12: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:750:5: call_function: calling '_InitLedStuff' from 'XkbChangeDeviceInfo'
libX11-1.8.12/src/xkb/XKBExtDev.c:750:5: return_function: returning to 'XkbChangeDeviceInfo' from '_InitLedStuff'
libX11-1.8.12/src/xkb/XKBExtDev.c:751:9: call_function: calling '_XkbSetDeviceInfoSize' from 'XkbChangeDeviceInfo'
libX11-1.8.12/src/xkb/XKBExtDev.c:751:9: return_function: returning to 'XkbChangeDeviceInfo' from '_XkbSetDeviceInfoSize'
libX11-1.8.12/src/xkb/XKBExtDev.c:751:8: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:741:16: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:741:16: danger: 'lstuff.info' leaks here; was allocated at [(18)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/17)
#  739|       if ((dpy->flags & XlibDisplayNoXkb) ||
#  740|           (!dpy->xkb_info && !XkbUseExtension(dpy, NULL, NULL)))
#  741|->         return False;
#  742|       if ((!devi) || (changes->changed & (~XkbXI_AllDeviceFeaturesMask)) ||
#  743|           ((changes->changed & XkbXI_ButtonActionsMask) &&

Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
libX11-1.8.12/src/xkb/XKBExtDev.c:753:5: warning[-Wanalyzer-malloc-leak]: leak of 'lstuff.info'
libX11-1.8.12/src/xkb/XKBExtDev.c:729:1: enter_function: entry to 'XkbChangeDeviceInfo'
libX11-1.8.12/src/xkb/XKBExtDev.c:739:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:740:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:742:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:745:9: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:746:12: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:746:10: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:749:12: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:750:5: call_function: calling '_InitLedStuff' from 'XkbChangeDeviceInfo'
libX11-1.8.12/src/xkb/XKBExtDev.c:750:5: return_function: returning to 'XkbChangeDeviceInfo' from '_InitLedStuff'
libX11-1.8.12/src/xkb/XKBExtDev.c:751:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:753:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:753:5: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:753:5: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:753:5: throw: if the called function throws an exception...
libX11-1.8.12/src/xkb/XKBExtDev.c:753:5: danger: 'lstuff.info' leaks here; was allocated at [(14)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/13)
#  751|       if (_XkbSetDeviceInfoSize(devi, changes, &lstuff, &size, &nLeds) != Success)
#  752|           return False;
#  753|->     LockDisplay(dpy);
#  754|       xkbi = dpy->xkb_info;
#  755|       GetReq(kbSetDeviceInfo, req);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
libX11-1.8.12/src/xkb/XKBExtDev.c:755:5: warning[-Wanalyzer-malloc-leak]: leak of 'lstuff.info'
libX11-1.8.12/src/xkb/XKBExtDev.c:729:1: enter_function: entry to 'XkbChangeDeviceInfo'
libX11-1.8.12/src/xkb/XKBExtDev.c:739:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:740:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:742:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:743:9: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:744:12: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:744:10: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:745:10: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:745:9: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:746:12: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:746:10: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:749:12: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:750:5: call_function: calling '_InitLedStuff' from 'XkbChangeDeviceInfo'
libX11-1.8.12/src/xkb/XKBExtDev.c:750:5: return_function: returning to 'XkbChangeDeviceInfo' from '_InitLedStuff'
libX11-1.8.12/src/xkb/XKBExtDev.c:751:9: call_function: calling '_XkbSetDeviceInfoSize' from 'XkbChangeDeviceInfo'
libX11-1.8.12/src/xkb/XKBExtDev.c:751:9: return_function: returning to 'XkbChangeDeviceInfo' from '_XkbSetDeviceInfoSize'
libX11-1.8.12/src/xkb/XKBExtDev.c:751:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:753:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:753:5: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBExtDev.c:754:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBExtDev.c:755:5: throw: if '_XGetRequest' throws an exception...
libX11-1.8.12/src/xkb/XKBExtDev.c:755:5: danger: 'lstuff.info' leaks here; was allocated at [(18)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/17)
#  753|       LockDisplay(dpy);
#  754|       xkbi = dpy->xkb_info;
#  755|->     GetReq(kbSetDeviceInfo, req);
#  756|       req->length += size / 4;
#  757|       req->reqType = xkbi->codes->major_opcode;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
libX11-1.8.12/src/xkb/XKBGAlloc.c:479:1: warning[-Wanalyzer-malloc-leak]: leak of '*((struct _XkbOverlay *)overlay).rows'
libX11-1.8.12/src/xkb/XKBGAlloc.c:968:1: enter_function: entry to 'XkbAddGeomOverlay'
libX11-1.8.12/src/xkb/XKBGAlloc.c:973:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGAlloc.c:976:46: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBGAlloc.c:978:13: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGAlloc.c:979:16: branch_true: following 'true' branch (when 'sz_rows > 0')...
libX11-1.8.12/src/xkb/XKBGAlloc.c:980:18: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGAlloc.c:980:18: call_function: calling '_XkbGeomAlloc' from 'XkbAddGeomOverlay'
#  477|       }
#  478|       return Success;
#  479|-> }
#  480|   
#  481|   #define _XkbAllocProps(g, n) _XkbGeomAlloc((XPointer *)&(g)->properties, \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
libX11-1.8.12/src/xkb/XKBGAlloc.c:479:1: warning[-Wanalyzer-malloc-leak]: leak of '*section.doodads'
libX11-1.8.12/src/xkb/XKBGAlloc.c:820:1: enter_function: entry to 'XkbAddGeomSection'
libX11-1.8.12/src/xkb/XKBGAlloc.c:829:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGAlloc.c:831:43: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBGAlloc.c:833:13: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGAlloc.c:835:13: branch_true: following 'true' branch (when 'sz_doodads > 0')...
libX11-1.8.12/src/xkb/XKBGAlloc.c:837:15: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGAlloc.c:837:15: call_function: calling '_XkbGeomAlloc' from 'XkbAddGeomSection'
#  477|       }
#  478|       return Success;
#  479|-> }
#  480|   
#  481|   #define _XkbAllocProps(g, n) _XkbGeomAlloc((XPointer *)&(g)->properties, \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
libX11-1.8.12/src/xkb/XKBGAlloc.c:479:1: warning[-Wanalyzer-malloc-leak]: leak of '*section.overlays'
libX11-1.8.12/src/xkb/XKBGAlloc.c:820:1: enter_function: entry to 'XkbAddGeomSection'
libX11-1.8.12/src/xkb/XKBGAlloc.c:829:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGAlloc.c:831:43: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBGAlloc.c:833:13: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGAlloc.c:835:13: branch_true: following 'true' branch (when 'sz_over > 0')...
libX11-1.8.12/src/xkb/XKBGAlloc.c:838:32: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGAlloc.c:838:32: call_function: calling '_XkbGeomAlloc' from 'XkbAddGeomSection'
#  477|       }
#  478|       return Success;
#  479|-> }
#  480|   
#  481|   #define _XkbAllocProps(g, n) _XkbGeomAlloc((XPointer *)&(g)->properties, \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
libX11-1.8.12/src/xkb/XKBGAlloc.c:479:1: warning[-Wanalyzer-malloc-leak]: leak of '*section.rows'
libX11-1.8.12/src/xkb/XKBGAlloc.c:820:1: enter_function: entry to 'XkbAddGeomSection'
libX11-1.8.12/src/xkb/XKBGAlloc.c:829:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGAlloc.c:831:43: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBGAlloc.c:833:13: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGAlloc.c:835:12: branch_true: following 'true' branch (when 'sz_rows != 0')...
libX11-1.8.12/src/xkb/XKBGAlloc.c:835:32: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGAlloc.c:835:32: call_function: calling '_XkbGeomAlloc' from 'XkbAddGeomSection'
#  477|       }
#  478|       return Success;
#  479|-> }
#  480|   
#  481|   #define _XkbAllocProps(g, n) _XkbGeomAlloc((XPointer *)&(g)->properties, \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
libX11-1.8.12/src/xkb/XKBGAlloc.c:663:13: warning[-Wanalyzer-malloc-leak]: leak of '*prop.value'
libX11-1.8.12/src/xkb/XKBGAlloc.c:658:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGAlloc.c:660:42: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBGAlloc.c:661:13: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGAlloc.c:661:12: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBGAlloc.c:661:30: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGAlloc.c:663:27: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBGAlloc.c:663:13: danger: '*prop.value' leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
#  661|           if ((prop->name) && (strcmp(name, prop->name) == 0)) {
#  662|               _XkbFree(prop->value);
#  663|->             prop->value = strdup(value);
#  664|               return prop;
#  665|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def294]
libX11-1.8.12/src/xkb/XKBGeom.c:619:9: warning[-Wanalyzer-malloc-leak]: leak of 'geom'
libX11-1.8.12/src/xkb/XKBGeom.c:615:12: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBGeom.c:616:8: branch_false: following 'false' branch (when 'geom' is non-NULL)...
libX11-1.8.12/src/xkb/XKBGeom.c:618:9: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGeom.c:618:8: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBGeom.c:619:9: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGeom.c:619:9: throw: if 'XkbFreeGeometry' throws an exception...
libX11-1.8.12/src/xkb/XKBGeom.c:619:9: danger: 'geom' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  617|           return BadAlloc;
#  618|       if (xkb->geom)
#  619|->         XkbFreeGeometry(xkb->geom, XkbGeomAllMask, True);
#  620|       xkb->geom = geom;
#  621|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
libX11-1.8.12/src/xkb/XKBGetByName.c:66:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/src/xkb/XKBGetByName.c:54:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:60:8: branch_false: following 'false' branch (when 'xkb' is non-NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:62:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:63:36: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBGetByName.c:66:5: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:66:5: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:66:5: throw: if the called function throws an exception...
libX11-1.8.12/src/xkb/XKBGetByName.c:66:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   64|       xkb->dpy = dpy;
#   65|   
#   66|->     LockDisplay(dpy);
#   67|       GetReq(kbGetKbdByName, req);
#   68|       req->reqType = xkbi->codes->major_opcode;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
libX11-1.8.12/src/xkb/XKBGetByName.c:66:5: warning[-Wanalyzer-malloc-leak]: leak of 'xkb'
libX11-1.8.12/src/xkb/XKBGetByName.c:54:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:59:26: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBGetByName.c:60:8: branch_false: following 'false' branch (when 'xkb' is non-NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:62:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:66:5: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:66:5: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:66:5: throw: if the called function throws an exception...
libX11-1.8.12/src/xkb/XKBGetByName.c:66:5: danger: 'xkb' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   64|       xkb->dpy = dpy;
#   65|   
#   66|->     LockDisplay(dpy);
#   67|       GetReq(kbGetKbdByName, req);
#   68|       req->reqType = xkbi->codes->major_opcode;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
libX11-1.8.12/src/xkb/XKBGetByName.c:67:5: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/src/xkb/XKBGetByName.c:54:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:60:8: branch_false: following 'false' branch (when 'xkb' is non-NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:62:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:63:36: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBGetByName.c:67:5: throw: if '_XGetRequest' throws an exception...
libX11-1.8.12/src/xkb/XKBGetByName.c:67:5: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#   65|   
#   66|       LockDisplay(dpy);
#   67|->     GetReq(kbGetKbdByName, req);
#   68|       req->reqType = xkbi->codes->major_opcode;
#   69|       req->xkbReqType = X_kbGetKbdByName;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
libX11-1.8.12/src/xkb/XKBGetByName.c:67:5: warning[-Wanalyzer-malloc-leak]: leak of 'xkb'
libX11-1.8.12/src/xkb/XKBGetByName.c:54:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:59:26: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBGetByName.c:60:8: branch_false: following 'false' branch (when 'xkb' is non-NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:62:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:67:5: throw: if '_XGetRequest' throws an exception...
libX11-1.8.12/src/xkb/XKBGetByName.c:67:5: danger: 'xkb' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#   65|   
#   66|       LockDisplay(dpy);
#   67|->     GetReq(kbGetKbdByName, req);
#   68|       req->reqType = xkbi->codes->major_opcode;
#   69|       req->xkbReqType = X_kbGetKbdByName;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
libX11-1.8.12/src/xkb/XKBGetByName.c:108:5: warning[-Wanalyzer-malloc-leak]: leak of 'xkb'
libX11-1.8.12/src/xkb/XKBGetByName.c:54:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:59:26: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBGetByName.c:60:8: branch_false: following 'false' branch (when 'xkb' is non-NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:62:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:76:8: branch_false: following 'false' branch (when 'names' is NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:105:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:108:5: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:108:5: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:108:5: throw: if '_XFlush' throws an exception...
libX11-1.8.12/src/xkb/XKBGetByName.c:108:5: danger: 'xkb' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  106|       len = XkbPaddedSize(len);
#  107|       req->length += len / 4;
#  108|->     BufAlloc(char *, str, len);
#  109|   
#  110|       *str++ = mapLen;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
libX11-1.8.12/src/xkb/XKBGetByName.c:140:11: warning[-Wanalyzer-malloc-leak]: leak of 'xkb'
libX11-1.8.12/src/xkb/XKBGetByName.c:54:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:59:26: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBGetByName.c:60:8: branch_false: following 'false' branch (when 'xkb' is non-NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:62:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:76:8: branch_false: following 'false' branch (when 'names' is NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:105:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:111:8: branch_false: following 'false' branch (when 'mapLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:115:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:116:8: branch_false: following 'false' branch (when 'codesLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:120:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:121:8: branch_false: following 'false' branch (when 'typesLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:125:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:126:8: branch_false: following 'false' branch (when 'compatLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:130:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:131:8: branch_false: following 'false' branch (when 'symsLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:135:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:136:8: branch_false: following 'false' branch (when 'geomLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:140:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:140:11: throw: if '_XReply' throws an exception...
libX11-1.8.12/src/xkb/XKBGetByName.c:140:11: danger: 'xkb' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  138|           str += geomLen;
#  139|       }
#  140|->     if ((!_XReply(dpy, (xReply *) &rep, 0, xFalse)) || (!rep.reported))
#  141|           goto BAILOUT;
#  142|       extraLen = (int) rep.length * 4;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
libX11-1.8.12/src/xkb/XKBGetByName.c:152:9: warning[-Wanalyzer-malloc-leak]: leak of 'xkb'
libX11-1.8.12/src/xkb/XKBGetByName.c:54:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:59:26: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBGetByName.c:60:8: branch_false: following 'false' branch (when 'xkb' is non-NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:62:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:76:8: branch_false: following 'false' branch (when 'names' is NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:105:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:111:8: branch_false: following 'false' branch (when 'mapLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:115:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:116:8: branch_false: following 'false' branch (when 'codesLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:120:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:121:8: branch_false: following 'false' branch (when 'typesLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:125:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:126:8: branch_false: following 'false' branch (when 'compatLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:130:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:131:8: branch_false: following 'false' branch (when 'symsLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:135:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:136:8: branch_false: following 'false' branch (when 'geomLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:140:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:140:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:147:8: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:150:13: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:152:9: throw: if '_XRead' throws an exception...
libX11-1.8.12/src/xkb/XKBGetByName.c:152:9: danger: 'xkb' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  150|           int nread = 0;
#  151|   
#  152|->         _XRead(dpy, (char *) &mrep, SIZEOF(xkbGetMapReply));
#  153|           extraLen -= SIZEOF(xkbGetMapReply);
#  154|           status = _XkbReadGetMapReply(dpy, &mrep, xkb, &nread);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
libX11-1.8.12/src/xkb/XKBGetByName.c:154:18: warning[-Wanalyzer-malloc-leak]: leak of 'xkb'
libX11-1.8.12/src/xkb/XKBGetByName.c:54:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:59:26: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBGetByName.c:60:8: branch_false: following 'false' branch (when 'xkb' is non-NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:62:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:76:8: branch_false: following 'false' branch (when 'names' is NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:105:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:111:8: branch_false: following 'false' branch (when 'mapLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:115:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:116:8: branch_false: following 'false' branch (when 'codesLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:120:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:121:8: branch_false: following 'false' branch (when 'typesLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:125:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:126:8: branch_false: following 'false' branch (when 'compatLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:130:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:131:8: branch_false: following 'false' branch (when 'symsLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:135:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:136:8: branch_false: following 'false' branch (when 'geomLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:140:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:140:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:147:8: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:150:13: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:154:18: throw: if '_XkbReadGetMapReply' throws an exception...
libX11-1.8.12/src/xkb/XKBGetByName.c:154:18: danger: 'xkb' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  152|           _XRead(dpy, (char *) &mrep, SIZEOF(xkbGetMapReply));
#  153|           extraLen -= SIZEOF(xkbGetMapReply);
#  154|->         status = _XkbReadGetMapReply(dpy, &mrep, xkb, &nread);
#  155|           extraLen -= nread;
#  156|           if (status != Success)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
libX11-1.8.12/src/xkb/XKBGetByName.c:164:9: warning[-Wanalyzer-malloc-leak]: leak of 'xkb'
libX11-1.8.12/src/xkb/XKBGetByName.c:54:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:59:26: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBGetByName.c:60:8: branch_false: following 'false' branch (when 'xkb' is non-NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:62:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:76:8: branch_false: following 'false' branch (when 'names' is NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:105:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:111:8: branch_false: following 'false' branch (when 'mapLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:115:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:116:8: branch_false: following 'false' branch (when 'codesLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:120:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:121:8: branch_false: following 'false' branch (when 'typesLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:125:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:126:8: branch_false: following 'false' branch (when 'compatLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:130:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:131:8: branch_false: following 'false' branch (when 'symsLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:135:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:136:8: branch_false: following 'false' branch (when 'geomLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:140:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:140:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:147:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:159:9: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:159:8: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:162:13: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:164:9: throw: if '_XRead' throws an exception...
libX11-1.8.12/src/xkb/XKBGetByName.c:164:9: danger: 'xkb' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  162|           int nread = 0;
#  163|   
#  164|->         _XRead(dpy, (char *) &crep, SIZEOF(xkbGetCompatMapReply));
#  165|           extraLen -= SIZEOF(xkbGetCompatMapReply);
#  166|           status = _XkbReadGetCompatMapReply(dpy, &crep, xkb, &nread);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
libX11-1.8.12/src/xkb/XKBGetByName.c:166:18: warning[-Wanalyzer-malloc-leak]: leak of 'xkb'
libX11-1.8.12/src/xkb/XKBGetByName.c:54:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:59:26: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBGetByName.c:60:8: branch_false: following 'false' branch (when 'xkb' is non-NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:62:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:76:8: branch_false: following 'false' branch (when 'names' is NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:105:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:111:8: branch_false: following 'false' branch (when 'mapLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:115:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:116:8: branch_false: following 'false' branch (when 'codesLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:120:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:121:8: branch_false: following 'false' branch (when 'typesLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:125:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:126:8: branch_false: following 'false' branch (when 'compatLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:130:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:131:8: branch_false: following 'false' branch (when 'symsLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:135:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:136:8: branch_false: following 'false' branch (when 'geomLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:140:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:140:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:147:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:159:9: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:159:8: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:162:13: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:166:18: throw: if '_XkbReadGetCompatMapReply' throws an exception...
libX11-1.8.12/src/xkb/XKBGetByName.c:166:18: danger: 'xkb' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  164|           _XRead(dpy, (char *) &crep, SIZEOF(xkbGetCompatMapReply));
#  165|           extraLen -= SIZEOF(xkbGetCompatMapReply);
#  166|->         status = _XkbReadGetCompatMapReply(dpy, &crep, xkb, &nread);
#  167|           extraLen -= nread;
#  168|           if (status != Success)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def305]
libX11-1.8.12/src/xkb/XKBGetByName.c:176:9: warning[-Wanalyzer-malloc-leak]: leak of 'xkb'
libX11-1.8.12/src/xkb/XKBGetByName.c:54:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:59:26: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBGetByName.c:60:8: branch_false: following 'false' branch (when 'xkb' is non-NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:62:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:76:8: branch_false: following 'false' branch (when 'names' is NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:105:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:111:8: branch_false: following 'false' branch (when 'mapLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:115:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:116:8: branch_false: following 'false' branch (when 'codesLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:120:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:121:8: branch_false: following 'false' branch (when 'typesLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:125:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:126:8: branch_false: following 'false' branch (when 'compatLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:130:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:131:8: branch_false: following 'false' branch (when 'symsLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:135:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:136:8: branch_false: following 'false' branch (when 'geomLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:140:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:140:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:147:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:159:9: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:159:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:171:9: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:171:8: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:174:13: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:176:9: throw: if '_XRead' throws an exception...
libX11-1.8.12/src/xkb/XKBGetByName.c:176:9: danger: 'xkb' leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
#  174|           int nread = 0;
#  175|   
#  176|->         _XRead(dpy, (char *) &irep, SIZEOF(xkbGetIndicatorMapReply));
#  177|           extraLen -= SIZEOF(xkbGetIndicatorMapReply);
#  178|           status = _XkbReadGetIndicatorMapReply(dpy, &irep, xkb, &nread);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
libX11-1.8.12/src/xkb/XKBGetByName.c:178:18: warning[-Wanalyzer-malloc-leak]: leak of 'xkb'
libX11-1.8.12/src/xkb/XKBGetByName.c:54:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:59:26: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBGetByName.c:60:8: branch_false: following 'false' branch (when 'xkb' is non-NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:62:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:76:8: branch_false: following 'false' branch (when 'names' is NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:105:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:111:8: branch_false: following 'false' branch (when 'mapLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:115:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:116:8: branch_false: following 'false' branch (when 'codesLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:120:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:121:8: branch_false: following 'false' branch (when 'typesLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:125:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:126:8: branch_false: following 'false' branch (when 'compatLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:130:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:131:8: branch_false: following 'false' branch (when 'symsLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:135:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:136:8: branch_false: following 'false' branch (when 'geomLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:140:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:140:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:147:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:159:9: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:159:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:171:9: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:171:8: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:174:13: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:178:18: throw: if '_XkbReadGetIndicatorMapReply' throws an exception...
libX11-1.8.12/src/xkb/XKBGetByName.c:178:18: danger: 'xkb' leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
#  176|           _XRead(dpy, (char *) &irep, SIZEOF(xkbGetIndicatorMapReply));
#  177|           extraLen -= SIZEOF(xkbGetIndicatorMapReply);
#  178|->         status = _XkbReadGetIndicatorMapReply(dpy, &irep, xkb, &nread);
#  179|           extraLen -= nread;
#  180|           if (status != Success)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
libX11-1.8.12/src/xkb/XKBGetByName.c:188:9: warning[-Wanalyzer-malloc-leak]: leak of 'xkb'
libX11-1.8.12/src/xkb/XKBGetByName.c:54:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:59:26: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBGetByName.c:60:8: branch_false: following 'false' branch (when 'xkb' is non-NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:62:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:76:8: branch_false: following 'false' branch (when 'names' is NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:105:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:111:8: branch_false: following 'false' branch (when 'mapLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:115:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:116:8: branch_false: following 'false' branch (when 'codesLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:120:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:121:8: branch_false: following 'false' branch (when 'typesLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:125:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:126:8: branch_false: following 'false' branch (when 'compatLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:130:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:131:8: branch_false: following 'false' branch (when 'symsLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:135:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:136:8: branch_false: following 'false' branch (when 'geomLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:140:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:140:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:147:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:159:9: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:159:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:171:9: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:171:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:183:9: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:183:8: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:186:13: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:188:9: throw: if '_XRead' throws an exception...
libX11-1.8.12/src/xkb/XKBGetByName.c:188:9: danger: 'xkb' leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
#  186|           int nread = 0;
#  187|   
#  188|->         _XRead(dpy, (char *) &nrep, SIZEOF(xkbGetNamesReply));
#  189|           extraLen -= SIZEOF(xkbGetNamesReply);
#  190|           status = _XkbReadGetNamesReply(dpy, &nrep, xkb, &nread);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def308]
libX11-1.8.12/src/xkb/XKBGetByName.c:190:18: warning[-Wanalyzer-malloc-leak]: leak of 'xkb'
libX11-1.8.12/src/xkb/XKBGetByName.c:54:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:59:26: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBGetByName.c:60:8: branch_false: following 'false' branch (when 'xkb' is non-NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:62:5: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:76:8: branch_false: following 'false' branch (when 'names' is NULL)...
libX11-1.8.12/src/xkb/XKBGetByName.c:105:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:111:8: branch_false: following 'false' branch (when 'mapLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:115:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:116:8: branch_false: following 'false' branch (when 'codesLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:120:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:121:8: branch_false: following 'false' branch (when 'typesLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:125:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:126:8: branch_false: following 'false' branch (when 'compatLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:130:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:131:8: branch_false: following 'false' branch (when 'symsLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:135:6: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:136:8: branch_false: following 'false' branch (when 'geomLen <= 0')...
libX11-1.8.12/src/xkb/XKBGetByName.c:140:11: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:140:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:147:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:159:9: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:159:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:171:9: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:171:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:183:9: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:183:8: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBGetByName.c:186:13: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBGetByName.c:190:18: throw: if '_XkbReadGetNamesReply' throws an exception...
libX11-1.8.12/src/xkb/XKBGetByName.c:190:18: danger: 'xkb' leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
#  188|           _XRead(dpy, (char *) &nrep, SIZEOF(xkbGetNamesReply));
#  189|           extraLen -= SIZEOF(xkbGetNamesReply);
#  190|->         status = _XkbReadGetNamesReply(dpy, &nrep, xkb, &nread);
#  191|           extraLen -= nread;
#  192|           if (status != Success)

Error: COMPILER_WARNING: [#def309]
libX11-1.8.12/src/xkb/XKBGetMap.c: scope_hint: In function '_XkbReadKeyActions'
libX11-1.8.12/src/xkb/XKBGetMap.c:254:22: warning[-Wunused-but-set-variable=]: variable 'symMap' set but not used
#  254 |         XkbSymMapPtr symMap;
#      |                      ^~~~~~
#  252|   
#  253|       if ((nKeyActs = rep->nKeyActs) > 0) {
#  254|->         XkbSymMapPtr symMap;
#  255|   
#  256|           if (nKeyActs < sizeof numDescBuf)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def310]
libX11-1.8.12/src/xkb/XKBList.c:72:28: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/src/xkb/XKBList.c:66:8: branch_false: following 'false' branch (when 'count > 0')...
libX11-1.8.12/src/xkb/XKBList.c:68:13: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:69:8: branch_false: following 'false' branch (when 'first' is non-NULL)...
libX11-1.8.12/src/xkb/XKBList.c:69:8: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:71:31: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/src/xkb/XKBList.c:72:28: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBList.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:75:23: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:78:22: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBList.c:80:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:82:15: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:83:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:85:9: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:71:31: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/src/xkb/XKBList.c:72:28: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBList.c:72:28: throw: if '_XkbGetReadBufferPtr' throws an exception...
libX11-1.8.12/src/xkb/XKBList.c:72:28: danger: '<unknown>' leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#   70|           return NULL;
#   71|       for (this = first, i = 0; i < count; i++, this++) {
#   72|->         flags = (CARD16 *) _XkbGetReadBufferPtr(buf, 2 * sizeof(CARD16));
#   73|           if (!flags)
#   74|               goto BAILOUT;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
libX11-1.8.12/src/xkb/XKBList.c:72:28: warning[-Wanalyzer-malloc-leak]: leak of 'first'
libX11-1.8.12/src/xkb/XKBList.c:66:8: branch_false: following 'false' branch (when 'count > 0')...
libX11-1.8.12/src/xkb/XKBList.c:68:13: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:68:13: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBList.c:69:8: branch_false: following 'false' branch (when 'first' is non-NULL)...
libX11-1.8.12/src/xkb/XKBList.c:69:8: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:71:31: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/src/xkb/XKBList.c:72:28: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBList.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:75:23: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:80:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:82:15: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:83:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:85:9: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:71:31: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/src/xkb/XKBList.c:72:28: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBList.c:72:28: throw: if '_XkbGetReadBufferPtr' throws an exception...
libX11-1.8.12/src/xkb/XKBList.c:72:28: danger: 'first' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#   70|           return NULL;
#   71|       for (this = first, i = 0; i < count; i++, this++) {
#   72|->         flags = (CARD16 *) _XkbGetReadBufferPtr(buf, 2 * sizeof(CARD16));
#   73|           if (!flags)
#   74|               goto BAILOUT;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
libX11-1.8.12/src/xkb/XKBList.c:72:28: warning[-Wanalyzer-malloc-leak]: leak of 'this'
libX11-1.8.12/src/xkb/XKBList.c:66:8: branch_false: following 'false' branch (when 'count > 0')...
libX11-1.8.12/src/xkb/XKBList.c:68:13: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:68:13: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBList.c:69:8: branch_false: following 'false' branch (when 'first' is non-NULL)...
libX11-1.8.12/src/xkb/XKBList.c:69:8: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:71:31: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/src/xkb/XKBList.c:72:28: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBList.c:72:28: throw: if '_XkbGetReadBufferPtr' throws an exception...
libX11-1.8.12/src/xkb/XKBList.c:72:28: danger: 'this' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   70|           return NULL;
#   71|       for (this = first, i = 0; i < count; i++, this++) {
#   72|->         flags = (CARD16 *) _XkbGetReadBufferPtr(buf, 2 * sizeof(CARD16));
#   73|           if (!flags)
#   74|               goto BAILOUT;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
libX11-1.8.12/src/xkb/XKBList.c:74:13: warning[-Wanalyzer-malloc-leak]: leak of 'this'
libX11-1.8.12/src/xkb/XKBList.c:58:1: enter_function: entry to '_ReadListing'
libX11-1.8.12/src/xkb/XKBList.c:66:8: branch_false: following 'false' branch (when 'count > 0')...
libX11-1.8.12/src/xkb/XKBList.c:68:13: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:68:13: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBList.c:69:8: branch_false: following 'false' branch (when 'first' is non-NULL)...
libX11-1.8.12/src/xkb/XKBList.c:69:8: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:71:31: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/src/xkb/XKBList.c:72:28: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBList.c:73:12: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBList.c:74:13: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBList.c:90:5: call_function: calling '_FreeComponentNames' from '_ReadListing'
libX11-1.8.12/src/xkb/XKBList.c:90:5: return_function: returning to '_ReadListing' from '_FreeComponentNames'
libX11-1.8.12/src/xkb/XKBList.c:74:13: danger: 'this' leaks here; was allocated at [(4)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/3)
#   72|           flags = (CARD16 *) _XkbGetReadBufferPtr(buf, 2 * sizeof(CARD16));
#   73|           if (!flags)
#   74|->             goto BAILOUT;
#   75|           this->flags = flags[0];
#   76|           slen = flags[1];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
libX11-1.8.12/src/xkb/XKBList.c:81:13: warning[-Wanalyzer-malloc-leak]: leak of 'this'
libX11-1.8.12/src/xkb/XKBList.c:58:1: enter_function: entry to '_ReadListing'
libX11-1.8.12/src/xkb/XKBList.c:66:8: branch_false: following 'false' branch (when 'count > 0')...
libX11-1.8.12/src/xkb/XKBList.c:68:13: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:68:13: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBList.c:69:8: branch_false: following 'false' branch (when 'first' is non-NULL)...
libX11-1.8.12/src/xkb/XKBList.c:69:8: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:71:31: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/src/xkb/XKBList.c:72:28: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBList.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:75:23: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:80:12: branch_true: following 'true' branch...
libX11-1.8.12/src/xkb/XKBList.c:81:13: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBList.c:90:5: call_function: calling '_FreeComponentNames' from '_ReadListing'
libX11-1.8.12/src/xkb/XKBList.c:90:5: return_function: returning to '_ReadListing' from '_FreeComponentNames'
libX11-1.8.12/src/xkb/XKBList.c:81:13: danger: 'this' leaks here; was allocated at [(4)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/3)
#   79|   
#   80|           if (!this->name)
#   81|->             goto BAILOUT;
#   82|           str = (char *) _XkbGetReadBufferPtr(buf, wlen);
#   83|           if (!str)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
libX11-1.8.12/src/xkb/XKBList.c:82:15: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/src/xkb/XKBList.c:66:8: branch_false: following 'false' branch (when 'count > 0')...
libX11-1.8.12/src/xkb/XKBList.c:68:13: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:69:8: branch_false: following 'false' branch (when 'first' is non-NULL)...
libX11-1.8.12/src/xkb/XKBList.c:69:8: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:71:31: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/src/xkb/XKBList.c:72:28: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBList.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:75:23: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:78:22: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBList.c:80:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:82:15: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:83:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:85:9: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:71:31: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/src/xkb/XKBList.c:72:28: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBList.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:75:23: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:80:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:82:15: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:82:15: throw: if '_XkbGetReadBufferPtr' throws an exception...
libX11-1.8.12/src/xkb/XKBList.c:82:15: danger: '<unknown>' leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
#   80|           if (!this->name)
#   81|               goto BAILOUT;
#   82|->         str = (char *) _XkbGetReadBufferPtr(buf, wlen);
#   83|           if (!str)
#   84|               goto BAILOUT;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
libX11-1.8.12/src/xkb/XKBList.c:82:15: warning[-Wanalyzer-malloc-leak]: leak of 'calloc((size_t)(slen + 1), 1)'
libX11-1.8.12/src/xkb/XKBList.c:66:8: branch_false: following 'false' branch (when 'count > 0')...
libX11-1.8.12/src/xkb/XKBList.c:68:13: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:69:8: branch_false: following 'false' branch (when 'first' is non-NULL)...
libX11-1.8.12/src/xkb/XKBList.c:69:8: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:71:31: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/src/xkb/XKBList.c:72:28: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBList.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:75:23: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:78:22: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBList.c:80:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:82:15: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:82:15: throw: if '_XkbGetReadBufferPtr' throws an exception...
libX11-1.8.12/src/xkb/XKBList.c:82:15: danger: 'calloc((size_t)(slen + 1), 1)' leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
#   80|           if (!this->name)
#   81|               goto BAILOUT;
#   82|->         str = (char *) _XkbGetReadBufferPtr(buf, wlen);
#   83|           if (!str)
#   84|               goto BAILOUT;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def317]
libX11-1.8.12/src/xkb/XKBList.c:82:15: warning[-Wanalyzer-malloc-leak]: leak of 'first'
libX11-1.8.12/src/xkb/XKBList.c:66:8: branch_false: following 'false' branch (when 'count > 0')...
libX11-1.8.12/src/xkb/XKBList.c:68:13: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:68:13: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBList.c:69:8: branch_false: following 'false' branch (when 'first' is non-NULL)...
libX11-1.8.12/src/xkb/XKBList.c:69:8: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:71:31: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/src/xkb/XKBList.c:72:28: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBList.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:75:23: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:80:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:82:15: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:83:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:85:9: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:71:31: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/src/xkb/XKBList.c:72:28: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBList.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:75:23: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:80:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:82:15: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:82:15: throw: if '_XkbGetReadBufferPtr' throws an exception...
libX11-1.8.12/src/xkb/XKBList.c:82:15: danger: 'first' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#   80|           if (!this->name)
#   81|               goto BAILOUT;
#   82|->         str = (char *) _XkbGetReadBufferPtr(buf, wlen);
#   83|           if (!str)
#   84|               goto BAILOUT;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def318]
libX11-1.8.12/src/xkb/XKBList.c:82:15: warning[-Wanalyzer-malloc-leak]: leak of 'this'
libX11-1.8.12/src/xkb/XKBList.c:66:8: branch_false: following 'false' branch (when 'count > 0')...
libX11-1.8.12/src/xkb/XKBList.c:68:13: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:68:13: acquire_memory: allocated here
libX11-1.8.12/src/xkb/XKBList.c:69:8: branch_false: following 'false' branch (when 'first' is non-NULL)...
libX11-1.8.12/src/xkb/XKBList.c:69:8: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:71:31: branch_true: following 'true' branch (when 'i < count')...
libX11-1.8.12/src/xkb/XKBList.c:72:28: branch_true: ...to here
libX11-1.8.12/src/xkb/XKBList.c:73:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:75:23: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:80:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xkb/XKBList.c:82:15: branch_false: ...to here
libX11-1.8.12/src/xkb/XKBList.c:82:15: throw: if '_XkbGetReadBufferPtr' throws an exception...
libX11-1.8.12/src/xkb/XKBList.c:82:15: danger: 'this' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#   80|           if (!this->name)
#   81|               goto BAILOUT;
#   82|->         str = (char *) _XkbGetReadBufferPtr(buf, wlen);
#   83|           if (!str)
#   84|               goto BAILOUT;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
libX11-1.8.12/src/xlibi18n/XDefaultIMIF.c:446:14: warning[-Wanalyzer-malloc-leak]: leak of 'mb_buf'
libX11-1.8.12/src/xlibi18n/XDefaultIMIF.c:444:20: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/XDefaultIMIF.c:446:14: throw: if 'XLookupString' throws an exception...
libX11-1.8.12/src/xlibi18n/XDefaultIMIF.c:446:14: danger: 'mb_buf' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  444|       char *mb_buf = Xmalloc(wlen);
#  445|   
#  446|->     length = XLookupString(ev, mb_buf, wlen, keysym, &NotSupportedYet);
#  447|   
#  448|       if (keysym && *keysym == NoSymbol){

Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:296:9: warning[-Wanalyzer-malloc-leak]: leak of 'name'
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:488:1: enter_function: entry to 'create_fontset'
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:493:9: call_function: calling 'init_fontset' from 'create_fontset'
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:493:9: return_function: returning to 'create_fontset' from 'init_fontset'
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:493:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:496:17: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:496:17: call_function: calling 'parse_fontname' from 'create_fontset'
#  294|   	name = strdup(*list);
#  295|   
#  296|-> 	XFreeFontNames(list);
#  297|       } else {
#  298|   	fs = XLoadQueryFont(dpy, pattern);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def321]
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:588:16: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:818:1: enter_function: entry to '_XwcDefaultDrawImageString'
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:822:17: branch_true: following 'true' branch (when 'length > 8192')...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:822:17: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:822:17: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:824:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:827:9: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:827:9: call_function: calling 'wcs_to_mbs' from '_XwcDefaultDrawImageString'
#  586|       if (conv == NULL) {
#  587|   	lcd = oc->core.om->core.lcd;
#  588|-> 	conv = _XlcOpenConverter(lcd, XlcNWideChar, lcd, XlcNMultiByte);
#  589|   	if (conv == NULL)
#  590|   	    return False;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:593:9: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:818:1: enter_function: entry to '_XwcDefaultDrawImageString'
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:822:17: branch_true: following 'true' branch (when 'length > 8192')...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:822:17: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:822:17: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:824:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:827:9: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:827:9: call_function: calling 'wcs_to_mbs' from '_XwcDefaultDrawImageString'
#  591|   	XOC_GENERIC(oc)->wcs_to_cs = conv;
#  592|       } else
#  593|-> 	_XlcResetConverter(conv);
#  594|   
#  595|       ret = _XlcConvert(conv, (XPointer *) &from, &length, (XPointer *) &to,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:595:11: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:818:1: enter_function: entry to '_XwcDefaultDrawImageString'
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:822:17: branch_true: following 'true' branch (when 'length > 8192')...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:822:17: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:822:17: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:824:8: branch_false: following 'false' branch (when 'buf' is non-NULL)...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:827:9: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:827:9: call_function: calling 'wcs_to_mbs' from '_XwcDefaultDrawImageString'
#  593|   	_XlcResetConverter(conv);
#  594|   
#  595|->     ret = _XlcConvert(conv, (XPointer *) &from, &length, (XPointer *) &to,
#  596|   		      &to_left, NULL, 0);
#  597|       if (ret != 0 || length > 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:886:9: warning[-Wanalyzer-malloc-leak]: leak of 'oc'
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:879:10: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:880:8: branch_false: following 'false' branch (when 'oc' is non-NULL)...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:883:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:885:8: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:886:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:886:9: throw: if '_XlcCompileResourceList' throws an exception...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:886:9: danger: 'oc' leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  884|   
#  885|       if (oc_resources[0].xrm_name == NULLQUARK)
#  886|-> 	_XlcCompileResourceList(oc_resources, XlcNumber(oc_resources));
#  887|   
#  888|       if (_XlcSetValues((XPointer) oc, oc_resources, XlcNumber(oc_resources),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:888:9: warning[-Wanalyzer-malloc-leak]: leak of 'oc'
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:879:10: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:880:8: branch_false: following 'false' branch (when 'oc' is non-NULL)...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:883:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:888:9: throw: if '_XlcSetValues' throws an exception...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:888:9: danger: 'oc' leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  886|   	_XlcCompileResourceList(oc_resources, XlcNumber(oc_resources));
#  887|   
#  888|->     if (_XlcSetValues((XPointer) oc, oc_resources, XlcNumber(oc_resources),
#  889|   		      args, num_args, XlcCreateMask | XlcDefaultMask))
#  890|   	goto err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1109:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1090:8: branch_false: following 'false' branch (when 'om' is non-NULL)...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1093:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1097:8: branch_true: following 'true' branch (when 'res_name' is non-NULL)...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1098:29: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1098:29: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1099:12: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1102:8: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1102:8: branch_false: following 'false' branch (when 'res_class' is NULL)...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1108:9: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1108:8: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1109:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1109:9: throw: if '_XlcCompileResourceList' throws an exception...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1109:9: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
# 1107|   
# 1108|       if (om_resources[0].xrm_name == NULLQUARK)
# 1109|-> 	_XlcCompileResourceList(om_resources, XlcNumber(om_resources));
# 1110|   
# 1111|       om->core.resources = om_resources;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1109:9: warning[-Wanalyzer-malloc-leak]: leak of 'om'
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1089:10: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1090:8: branch_false: following 'false' branch (when 'om' is non-NULL)...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1093:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1097:8: branch_false: following 'false' branch (when 'res_name' is NULL)...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1102:8: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1102:8: branch_false: following 'false' branch (when 'res_class' is NULL)...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1108:9: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1108:8: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1109:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1109:9: throw: if '_XlcCompileResourceList' throws an exception...
libX11-1.8.12/src/xlibi18n/XDefaultOMIF.c:1109:9: danger: 'om' leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
# 1107|   
# 1108|       if (om_resources[0].xrm_name == NULLQUARK)
# 1109|-> 	_XlcCompileResourceList(om_resources, XlcNumber(om_resources));
# 1110|   
# 1111|       om->core.resources = om_resources;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
libX11-1.8.12/src/xlibi18n/lcCT.c:682:30: warning[-Wanalyzer-malloc-leak]: leak of 'conv'
libX11-1.8.12/src/xlibi18n/lcCT.c:1167:1: enter_function: entry to 'create_conv'
libX11-1.8.12/src/xlibi18n/lcCT.c:1172:12: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcCT.c:1173:8: branch_false: following 'false' branch (when 'conv' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCT.c:1176:30: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCT.c:1180:5: call_function: calling 'init_state' from 'create_conv'
#  680|   
#  681|       if (default_GL_charset == NULL) {
#  682|-> 	default_GL_charset = _XlcGetCharSet("ISO8859-1:GL");
#  683|   	default_GR_charset = _XlcGetCharSet("ISO8859-1:GR");
#  684|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
libX11-1.8.12/src/xlibi18n/lcCT.c:683:30: warning[-Wanalyzer-malloc-leak]: leak of 'conv'
libX11-1.8.12/src/xlibi18n/lcCT.c:1167:1: enter_function: entry to 'create_conv'
libX11-1.8.12/src/xlibi18n/lcCT.c:1172:12: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcCT.c:1173:8: branch_false: following 'false' branch (when 'conv' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCT.c:1176:30: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCT.c:1180:5: call_function: calling 'init_state' from 'create_conv'
#  681|       if (default_GL_charset == NULL) {
#  682|   	default_GL_charset = _XlcGetCharSet("ISO8859-1:GL");
#  683|-> 	default_GR_charset = _XlcGetCharSet("ISO8859-1:GR");
#  684|       }
#  685|   

Error: COMPILER_WARNING: [#def330]
libX11-1.8.12/src/xlibi18n/lcCT.c: scope_hint: In function 'cstoct'
libX11-1.8.12/src/xlibi18n/lcCT.c:877:17: warning[-Wunused-but-set-variable=]: variable 'unconv_num' set but not used
#  877 |     int length, unconv_num;
#      |                 ^~~~~~~~~~
#  875|       XlcSide side;
#  876|       unsigned char min_ch = 0, max_ch = 0;
#  877|->     int length, unconv_num;
#  878|       CTInfo ct_info;
#  879|       XlcCharSet charset;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def331]
libX11-1.8.12/src/xlibi18n/lcCharSet.c:150:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libX11-1.8.12/src/xlibi18n/lcCharSet.c:149:5: acquire_resource: 'va_start' called here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:150:5: throw: if '_XlcCountVaList' throws an exception...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:150:5: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  148|   
#  149|       va_start(var, charset);
#  150|->     _XlcCountVaList(var, &num_args);
#  151|       va_end(var);
#  152|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def332]
libX11-1.8.12/src/xlibi18n/lcCharSet.c:154:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libX11-1.8.12/src/xlibi18n/lcCharSet.c:153:5: acquire_resource: 'va_start' called here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:154:5: throw: if '_XlcVaToArgList' throws an exception...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:154:5: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  152|   
#  153|       va_start(var, charset);
#  154|->     _XlcVaToArgList(var, num_args, &args);
#  155|       va_end(var);
#  156|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def333]
libX11-1.8.12/src/xlibi18n/lcCharSet.c:194:25: warning[-Wanalyzer-malloc-leak]: leak of 'charset'
libX11-1.8.12/src/xlibi18n/lcCharSet.c:179:15: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:180:8: branch_false: following 'false' branch (when 'charset' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:183:16: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:188:8: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:192:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:194:25: throw: if 'XrmStringToQuark' throws an exception...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:194:25: danger: 'charset' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  192|       memcpy(tmp, name, name_len+1);
#  193|       charset->name = tmp;
#  194|->     charset->xrm_name = XrmStringToQuark(charset->name);
#  195|   
#  196|       /* Fill in encoding_name and xrm_encoding_name.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
libX11-1.8.12/src/xlibi18n/lcCharSet.c:194:25: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
libX11-1.8.12/src/xlibi18n/lcCharSet.c:180:8: branch_false: following 'false' branch (when 'charset' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:183:16: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:187:11: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:188:8: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:192:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:194:25: throw: if 'XrmStringToQuark' throws an exception...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:194:25: danger: 'tmp' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  192|       memcpy(tmp, name, name_len+1);
#  193|       charset->name = tmp;
#  194|->     charset->xrm_name = XrmStringToQuark(charset->name);
#  195|   
#  196|       /* Fill in encoding_name and xrm_encoding_name.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def335]
libX11-1.8.12/src/xlibi18n/lcCharSet.c:208:38: warning[-Wanalyzer-malloc-leak]: leak of 'charset'
libX11-1.8.12/src/xlibi18n/lcCharSet.c:179:15: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:180:8: branch_false: following 'false' branch (when 'charset' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:183:16: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:188:8: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:192:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:197:8: branch_true: following 'true' branch (when 'colon' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:198:33: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:200:12: branch_false: following 'false' branch (when 'encoding_tmp' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:205:9: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:208:38: throw: if 'XrmStringToQuark' throws an exception...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:208:38: danger: 'charset' leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  206|           encoding_tmp[length] = '\0';
#  207|           charset->encoding_name = encoding_tmp;
#  208|->         charset->xrm_encoding_name = XrmStringToQuark(charset->encoding_name);
#  209|       } else {
#  210|           charset->encoding_name = charset->name;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
libX11-1.8.12/src/xlibi18n/lcCharSet.c:208:38: warning[-Wanalyzer-malloc-leak]: leak of 'encoding_tmp'
libX11-1.8.12/src/xlibi18n/lcCharSet.c:180:8: branch_false: following 'false' branch (when 'charset' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:183:16: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:188:8: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:192:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:197:8: branch_true: following 'true' branch (when 'colon' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:198:33: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:199:30: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:200:12: branch_false: following 'false' branch (when 'encoding_tmp' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:205:9: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:208:38: throw: if 'XrmStringToQuark' throws an exception...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:208:38: danger: 'encoding_tmp' leaks here; was allocated at [(8)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/7)
#  206|           encoding_tmp[length] = '\0';
#  207|           charset->encoding_name = encoding_tmp;
#  208|->         charset->xrm_encoding_name = XrmStringToQuark(charset->encoding_name);
#  209|       } else {
#  210|           charset->encoding_name = charset->name;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def337]
libX11-1.8.12/src/xlibi18n/lcCharSet.c:208:38: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
libX11-1.8.12/src/xlibi18n/lcCharSet.c:180:8: branch_false: following 'false' branch (when 'charset' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:183:16: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:187:11: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:188:8: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:192:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:197:8: branch_true: following 'true' branch (when 'colon' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:198:33: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:200:12: branch_false: following 'false' branch (when 'encoding_tmp' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:205:9: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:208:38: throw: if 'XrmStringToQuark' throws an exception...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:208:38: danger: 'tmp' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  206|           encoding_tmp[length] = '\0';
#  207|           charset->encoding_name = encoding_tmp;
#  208|->         charset->xrm_encoding_name = XrmStringToQuark(charset->encoding_name);
#  209|       } else {
#  210|           charset->encoding_name = charset->name;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
libX11-1.8.12/src/xlibi18n/lcCharSet.c:215:5: warning[-Wanalyzer-malloc-leak]: leak of 'tmp'
libX11-1.8.12/src/xlibi18n/lcCharSet.c:180:8: branch_false: following 'false' branch (when 'charset' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:183:16: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:187:11: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:188:8: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:192:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:197:8: branch_false: following 'false' branch (when 'colon' is NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:210:9: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:220:10: throw: if '_XlcParseCharSet' throws an exception...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:215:5: danger: 'tmp' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  213|   
#  214|       /* Fill in ct_sequence.  */
#  215|->     tmp += name_len + 1;
#  216|       memcpy(tmp, ct_sequence, ct_sequence_len+1);
#  217|       charset->ct_sequence = tmp;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
libX11-1.8.12/src/xlibi18n/lcCharSet.c:220:10: warning[-Wanalyzer-malloc-leak]: leak of 'charset'
libX11-1.8.12/src/xlibi18n/lcCharSet.c:179:15: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:180:8: branch_false: following 'false' branch (when 'charset' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:183:16: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:188:8: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:192:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:197:8: branch_false: following 'false' branch (when 'colon' is NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:210:9: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:220:10: throw: if '_XlcParseCharSet' throws an exception...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:220:10: danger: 'charset' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  218|   
#  219|       /* Fill in side, char_size, set_size. */
#  220|->     if (!_XlcParseCharSet(charset))
#  221|           /* If ct_sequence is not usable in Compound Text, remove it. */
#  222|           charset->ct_sequence = "";

Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
libX11-1.8.12/src/xlibi18n/lcCharSet.c:220:10: warning[-Wanalyzer-malloc-leak]: leak of 'encoding_tmp'
libX11-1.8.12/src/xlibi18n/lcCharSet.c:180:8: branch_false: following 'false' branch (when 'charset' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:183:16: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:188:8: branch_false: following 'false' branch (when 'tmp' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:192:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:197:8: branch_true: following 'true' branch (when 'colon' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:198:33: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:199:30: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:200:12: branch_false: following 'false' branch (when 'encoding_tmp' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:205:9: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcCharSet.c:220:10: throw: if '_XlcParseCharSet' throws an exception...
libX11-1.8.12/src/xlibi18n/lcCharSet.c:220:10: danger: 'encoding_tmp' leaks here; was allocated at [(8)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/7)
#  218|   
#  219|       /* Fill in side, char_size, set_size. */
#  220|->     if (!_XlcParseCharSet(charset))
#  221|           /* If ct_sequence is not usable in Compound Text, remove it. */
#  222|           charset->ct_sequence = "";

Error: GCC_ANALYZER_WARNING (CWE-401): [#def341]
libX11-1.8.12/src/xlibi18n/lcConv.c:68:5: warning[-Wanalyzer-malloc-leak]: leak of 'lc_conv'
libX11-1.8.12/src/xlibi18n/lcConv.c:244:1: enter_function: entry to 'open_indirect_converter'
libX11-1.8.12/src/xlibi18n/lcConv.c:264:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcConv.c:268:15: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcConv.c:269:8: branch_false: following 'false' branch (when 'lc_conv' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcConv.c:272:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcConv.c:275:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcConv.c:280:17: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcConv.c:280:17: call_function: calling 'get_converter' from 'open_indirect_converter'
#   66|       XlcConv conv = NULL;
#   67|   
#   68|->     _XLockMutex(_conv_lock);
#   69|   
#   70|       for (list = conv_list; list; list = list->next) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def342]
libX11-1.8.12/src/xlibi18n/lcConv.c:80:20: warning[-Wanalyzer-malloc-leak]: leak of 'lc_conv'
libX11-1.8.12/src/xlibi18n/lcConv.c:244:1: enter_function: entry to 'open_indirect_converter'
libX11-1.8.12/src/xlibi18n/lcConv.c:264:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcConv.c:268:15: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcConv.c:269:8: branch_false: following 'false' branch (when 'lc_conv' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcConv.c:272:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcConv.c:275:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcConv.c:280:17: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcConv.c:280:17: call_function: calling 'get_converter' from 'open_indirect_converter'
#   78|   	    }
#   79|   
#   80|-> 	    conv = (*list->converter)(from_lcd, list->from, to_lcd, list->to);
#   81|   	    break;
#   82|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
libX11-1.8.12/src/xlibi18n/lcConv.c:87:5: warning[-Wanalyzer-malloc-leak]: leak of 'lc_conv'
libX11-1.8.12/src/xlibi18n/lcConv.c:244:1: enter_function: entry to 'open_indirect_converter'
libX11-1.8.12/src/xlibi18n/lcConv.c:264:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcConv.c:268:15: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcConv.c:269:8: branch_false: following 'false' branch (when 'lc_conv' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcConv.c:272:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcConv.c:275:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcConv.c:280:17: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcConv.c:280:17: call_function: calling 'get_converter' from 'open_indirect_converter'
#   85|       }
#   86|   
#   87|->     _XUnlockMutex(_conv_lock);
#   88|   
#   89|       return conv;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def344]
libX11-1.8.12/src/xlibi18n/lcConv.c:280:17: warning[-Wanalyzer-malloc-leak]: leak of 'calloc(1, 16)'
libX11-1.8.12/src/xlibi18n/lcConv.c:244:1: enter_function: entry to 'open_indirect_converter'
libX11-1.8.12/src/xlibi18n/lcConv.c:264:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcConv.c:269:8: branch_false: following 'false' branch (when 'lc_conv' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcConv.c:272:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcConv.c:274:22: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcConv.c:275:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcConv.c:280:17: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcConv.c:280:17: call_function: calling 'get_converter' from 'open_indirect_converter'
#  278|       conv = (Conv) lc_conv->state;
#  279|   
#  280|->     from_conv = get_converter(from_lcd, from_type, from_lcd, QCTCharSet);
#  281|       if (from_conv == NULL)
#  282|   	from_conv = get_converter(from_lcd, from_type, from_lcd, QCharSet);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def345]
libX11-1.8.12/src/xlibi18n/lcDB.c:344:9: warning[-Wanalyzer-null-argument]: use of NULL 'str' where non-null expected
libX11-1.8.12/src/xlibi18n/lcDB.c:1053:1: enter_function: entry to 'CreateDatabase'
libX11-1.8.12/src/xlibi18n/lcDB.c:1065:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcDB.c:1068:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcDB.c:1069:5: call_function: calling 'init_parse_info' from 'CreateDatabase'
libX11-1.8.12/src/xlibi18n/lcDB.c:1069:5: return_function: returning to 'CreateDatabase' from 'init_parse_info'
libX11-1.8.12/src/xlibi18n/lcDB.c:1072:18: call_function: calling 'read_line' from 'CreateDatabase'
#  342|   	    str = line->str;
#  343|   	}
#  344|-> 	memcpy(str + cur, p, (size_t) len);
#  345|   
#  346|   	cur += len;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def346]
libX11-1.8.12/src/xlibi18n/lcDB.c:482:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'value_list'
libX11-1.8.12/src/xlibi18n/lcDB.c:726:1: enter_function: entry to 'f_semicolon'
libX11-1.8.12/src/xlibi18n/lcDB.c:737:15: call_function: calling 'append_value_list' from 'f_semicolon'
#  480|       if (value_list == (char **)NULL) {
#  481|   	value_list = Xmalloc(sizeof(char *) * 2);
#  482|-> 	*value_list = NULL;
#  483|       } else {
#  484|   	char **prev_list = value_list;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def347]
libX11-1.8.12/src/xlibi18n/lcFile.c:699:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'args[0]'
libX11-1.8.12/src/xlibi18n/lcFile.c:638:1: enter_function: entry to '_XlcLocaleLibDirName'
libX11-1.8.12/src/xlibi18n/lcFile.c:657:5: call_function: calling 'xlocalelibdir' from '_XlcLocaleLibDirName'
libX11-1.8.12/src/xlibi18n/lcFile.c:657:5: return_function: returning to '_XlcLocaleLibDirName' from 'xlocalelibdir'
libX11-1.8.12/src/xlibi18n/lcFile.c:658:9: call_function: calling '_XlcParsePath' from '_XlcLocaleLibDirName'
libX11-1.8.12/src/xlibi18n/lcFile.c:658:9: return_function: returning to '_XlcLocaleLibDirName' from '_XlcParsePath'
libX11-1.8.12/src/xlibi18n/lcFile.c:659:17: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcFile.c:695:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcFile.c:697:8: branch_true: following 'true' branch (when 'target_name' is NULL)...
libX11-1.8.12/src/xlibi18n/lcFile.c:699:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcFile.c:699:9: danger: use of uninitialized value 'args[0]' here
#  697|       if (target_name == NULL)
#  698|    	/* vendor locale name == Xlocale name, no expansion of alias */
#  699|-> 	snprintf(dir_name, dir_len, "%s/%s", args[0], lc_name);
#  700|       else
#  701|   	snprintf(dir_name, dir_len, "%s/%s", target_dir, target_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
libX11-1.8.12/src/xlibi18n/lcGeneric.c:411:15: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1004:1: enter_function: entry to 'initialize'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1020:9: call_function: calling 'load_generic' from 'initialize'
#  409|   
#  410|       *new = 0;
#  411|->     charset = _XlcGetCharSet(name);
#  412|       if (charset == NULL &&
#  413|           (charset = _XlcCreateDefaultCharSet(name, ""))) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
libX11-1.8.12/src/xlibi18n/lcGeneric.c:411:15: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1004:1: enter_function: entry to 'initialize'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1020:9: call_function: calling 'load_generic' from 'initialize'
#  409|   
#  410|       *new = 0;
#  411|->     charset = _XlcGetCharSet(name);
#  412|       if (charset == NULL &&
#  413|           (charset = _XlcCreateDefaultCharSet(name, ""))) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def350]
libX11-1.8.12/src/xlibi18n/lcGeneric.c:413:20: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1004:1: enter_function: entry to 'initialize'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1020:9: call_function: calling 'load_generic' from 'initialize'
#  411|       charset = _XlcGetCharSet(name);
#  412|       if (charset == NULL &&
#  413|->         (charset = _XlcCreateDefaultCharSet(name, ""))) {
#  414|           _XlcAddCharSet(charset);
#  415|           *new = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
libX11-1.8.12/src/xlibi18n/lcGeneric.c:413:20: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1004:1: enter_function: entry to 'initialize'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1020:9: call_function: calling 'load_generic' from 'initialize'
#  411|       charset = _XlcGetCharSet(name);
#  412|       if (charset == NULL &&
#  413|->         (charset = _XlcCreateDefaultCharSet(name, ""))) {
#  414|           _XlcAddCharSet(charset);
#  415|           *new = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
libX11-1.8.12/src/xlibi18n/lcGeneric.c:414:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1004:1: enter_function: entry to 'initialize'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1020:9: call_function: calling 'load_generic' from 'initialize'
#  412|       if (charset == NULL &&
#  413|           (charset = _XlcCreateDefaultCharSet(name, ""))) {
#  414|->         _XlcAddCharSet(charset);
#  415|           *new = 1;
#  416|           charset->source = CSsrcXLC;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
libX11-1.8.12/src/xlibi18n/lcGeneric.c:414:9: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1004:1: enter_function: entry to 'initialize'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1020:9: call_function: calling 'load_generic' from 'initialize'
#  412|       if (charset == NULL &&
#  413|           (charset = _XlcCreateDefaultCharSet(name, ""))) {
#  414|->         _XlcAddCharSet(charset);
#  415|           *new = 1;
#  416|           charset->source = CSsrcXLC;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def354]
libX11-1.8.12/src/xlibi18n/lcGeneric.c:664:9: warning[-Wanalyzer-null-dereference]: dereference of NULL 'ptr'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1004:1: enter_function: entry to 'initialize'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1020:9: call_function: calling 'load_generic' from 'initialize'
#  662|       if (strchr(value[0],':')) {
#  663|           ptr = strchr(ret->name,':');
#  664|->         *ptr = '\0';
#  665|           ptr++;
#  666|           if (!_XlcNCompareISOLatin1(ptr, "GL", 2)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def355]
libX11-1.8.12/src/xlibi18n/lcGeneric.c:666:14: warning[-Wanalyzer-malloc-leak]: leak of 'cset_name'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1004:1: enter_function: entry to 'initialize'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1020:9: call_function: calling 'load_generic' from 'initialize'
#  664|           *ptr = '\0';
#  665|           ptr++;
#  666|->         if (!_XlcNCompareISOLatin1(ptr, "GL", 2)) {
#  667|               ret->side =  XlcGL;
#  668|               snprintf(cset_name, cset_len, "%s:%s", ret->name, "GL");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def356]
libX11-1.8.12/src/xlibi18n/lcGeneric.c:666:14: warning[-Wanalyzer-malloc-leak]: leak of 'ret'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1004:1: enter_function: entry to 'initialize'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1020:9: call_function: calling 'load_generic' from 'initialize'
#  664|           *ptr = '\0';
#  665|           ptr++;
#  666|->         if (!_XlcNCompareISOLatin1(ptr, "GL", 2)) {
#  667|               ret->side =  XlcGL;
#  668|               snprintf(cset_name, cset_len, "%s:%s", ret->name, "GL");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def357]
libX11-1.8.12/src/xlibi18n/lcGeneric.c:666:14: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(*value)'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1004:1: enter_function: entry to 'initialize'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1020:9: call_function: calling 'load_generic' from 'initialize'
#  664|           *ptr = '\0';
#  665|           ptr++;
#  666|->         if (!_XlcNCompareISOLatin1(ptr, "GL", 2)) {
#  667|               ret->side =  XlcGL;
#  668|               snprintf(cset_name, cset_len, "%s:%s", ret->name, "GL");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def358]
libX11-1.8.12/src/xlibi18n/lcGeneric.c:911:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'malloc(40)'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1004:1: enter_function: entry to 'initialize'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1020:9: call_function: calling 'load_generic' from 'initialize'
#  909|                   _XlcDbg_printValue(name,value,num);
#  910|                   codeset->mbconv = Xmalloc(sizeof(ConversionRec));
#  911|->                 codeset->mbconv->convlist =
#  912|                   _XlcParse_scopemaps(value[0],&(codeset->mbconv->conv_num));
#  913|                   dmpscope("mb_conv",codeset->mbconv->convlist,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def359]
libX11-1.8.12/src/xlibi18n/lcGeneric.c:923:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'malloc(40)'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1004:1: enter_function: entry to 'initialize'
libX11-1.8.12/src/xlibi18n/lcGeneric.c:1020:9: call_function: calling 'load_generic' from 'initialize'
#  921|                   _XlcDbg_printValue(name,value,num);
#  922|                   codeset->ctconv = Xmalloc(sizeof(ConversionRec));
#  923|->                 codeset->ctconv->convlist =
#  924|                   _XlcParse_scopemaps(value[0],&(codeset->ctconv->conv_num));
#  925|                   dmpscope("ctconv",codeset->ctconv->convlist,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
libX11-1.8.12/src/xlibi18n/lcPrTxt.c:171:16: warning[-Wanalyzer-malloc-leak]: leak of 'to'
libX11-1.8.12/src/xlibi18n/lcPrTxt.c:270:1: enter_function: entry to '_Xutf8TextPropertyToTextList'
libX11-1.8.12/src/xlibi18n/lcPrTxt.c:277:12: call_function: calling '_XTextPropertyToTextList' from '_Xutf8TextPropertyToTextList'
#  169|           do_strcpy = True;
#  170|       } else {
#  171|->         conv = _XlcOpenConverter(lcd, from_type, lcd, to_type);
#  172|           if (conv == NULL) {
#  173|   	    Xfree(buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
libX11-1.8.12/src/xlibi18n/lcPrTxt.c:196:23: warning[-Wanalyzer-malloc-leak]: leak of 'to'
libX11-1.8.12/src/xlibi18n/lcPrTxt.c:270:1: enter_function: entry to '_Xutf8TextPropertyToTextList'
libX11-1.8.12/src/xlibi18n/lcPrTxt.c:277:12: call_function: calling '_XTextPropertyToTextList' from '_Xutf8TextPropertyToTextList'
#  194|                   ret = 0;
#  195|               } else {
#  196|-> 	        ret = _XlcConvert(conv, &from, &from_left, &to, &to_left, NULL, 0);
#  197|               }
#  198|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def362]
libX11-1.8.12/src/xlibi18n/lcPubWrap.c:42:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libX11-1.8.12/src/xlibi18n/lcPubWrap.c:41:5: acquire_resource: 'va_start' called here
libX11-1.8.12/src/xlibi18n/lcPubWrap.c:42:5: throw: if '_XlcCountVaList' throws an exception...
libX11-1.8.12/src/xlibi18n/lcPubWrap.c:42:5: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   40|   
#   41|       va_start(var, lcd);
#   42|->     _XlcCountVaList(var, &num_args);
#   43|       va_end(var);
#   44|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def363]
libX11-1.8.12/src/xlibi18n/lcPubWrap.c:46:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libX11-1.8.12/src/xlibi18n/lcPubWrap.c:45:5: acquire_resource: 'va_start' called here
libX11-1.8.12/src/xlibi18n/lcPubWrap.c:46:5: throw: if '_XlcVaToArgList' throws an exception...
libX11-1.8.12/src/xlibi18n/lcPubWrap.c:46:5: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   44|   
#   45|       va_start(var, lcd);
#   46|->     _XlcVaToArgList(var, num_args, &args);
#   47|       va_end(var);
#   48|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def364]
libX11-1.8.12/src/xlibi18n/lcPublic.c:134:8: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(str)'
libX11-1.8.12/src/xlibi18n/lcPublic.c:114:7: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcPublic.c:117:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcPublic.c:133:26: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcPublic.c:134:8: danger: 'strdup(str)' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  132|       str = (num > 0) ? values[0] : "STRING";
#  133|       pub->encoding_name = strdup(str);
#  134|->     if (pub->encoding_name == NULL)
#  135|   	return False;
#  136|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
libX11-1.8.12/src/xlibi18n/lcPublic.c:228:12: warning[-Wanalyzer-malloc-leak]: leak of 'siname'
libX11-1.8.12/src/xlibi18n/lcPublic.c:222:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcPublic.c:225:18: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcPublic.c:225:18: branch_false: following 'false' branch (when 'len == -1')...
libX11-1.8.12/src/xlibi18n/lcPublic.c:225:18: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcPublic.c:225:18: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcPublic.c:226:8: branch_false: following 'false' branch (when 'siname' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcPublic.c:228:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcPublic.c:228:12: throw: if '_XlcMapOSLocaleName' throws an exception...
libX11-1.8.12/src/xlibi18n/lcPublic.c:228:12: danger: 'siname' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  226|       if (siname == NULL)
#  227|           return False;
#  228|->     name = _XlcMapOSLocaleName(name, siname);
#  229|   #endif
#  230|       /* _XlcResolveLocaleName will lookup the SI's name for the locale */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
libX11-1.8.12/src/xlibi18n/lcRM.c:215:23: warning[-Wanalyzer-malloc-leak]: leak of 'state'
libX11-1.8.12/src/xlibi18n/lcRM.c:198:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcRM.c:210:25: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcRM.c:210:25: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcRM.c:211:12: branch_false: following 'false' branch (when 'state' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcRM.c:214:9: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcRM.c:215:23: throw: if '_XlcOpenConverter' throws an exception...
libX11-1.8.12/src/xlibi18n/lcRM.c:215:23: danger: 'state' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  213|   
#  214|   	state->lcd = lcd;
#  215|-> 	state->conv = _XlcOpenConverter(lcd, XlcNMultiByte, lcd, XlcNWideChar);
#  216|   	if (state->conv == NULL) {
#  217|   	    Xfree(state);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
libX11-1.8.12/src/xlibi18n/lcTxtPr.c:102:24: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/src/xlibi18n/lcTxtPr.c:244:1: enter_function: entry to '_Xutf8TextListToTextProperty'
libX11-1.8.12/src/xlibi18n/lcTxtPr.c:252:12: call_function: calling '_XTextListToTextProperty' from '_Xutf8TextListToTextProperty'
#  100|   	    break;
#  101|   	case XUTF8StringStyle:
#  102|-> 	    encoding = XInternAtom(dpy, "UTF8_STRING", False);
#  103|   	    to_type = XlcNUtf8String;
#  104|   	    break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def368]
libX11-1.8.12/src/xlibi18n/lcTxtPr.c:106:24: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/src/xlibi18n/lcTxtPr.c:244:1: enter_function: entry to '_Xutf8TextListToTextProperty'
libX11-1.8.12/src/xlibi18n/lcTxtPr.c:252:12: call_function: calling '_XTextListToTextProperty' from '_Xutf8TextListToTextProperty'
#  104|   	    break;
#  105|   	case XCompoundTextStyle:
#  106|-> 	    encoding = XInternAtom(dpy, "COMPOUND_TEXT", False);
#  107|   	    to_type = XlcNCompoundText;
#  108|   	    break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def369]
libX11-1.8.12/src/xlibi18n/lcTxtPr.c:110:24: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/src/xlibi18n/lcTxtPr.c:244:1: enter_function: entry to '_Xutf8TextListToTextProperty'
libX11-1.8.12/src/xlibi18n/lcTxtPr.c:252:12: call_function: calling '_XTextListToTextProperty' from '_Xutf8TextListToTextProperty'
#  108|   	    break;
#  109|   	case XTextStyle:
#  110|-> 	    encoding = XInternAtom(dpy, XLC_PUBLIC(lcd, encoding_name), False);
#  111|   	    to_type = XlcNMultiByte;
#  112|   	    if (is_wide_char == False) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def370]
libX11-1.8.12/src/xlibi18n/lcTxtPr.c:141:12: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
libX11-1.8.12/src/xlibi18n/lcTxtPr.c:244:1: enter_function: entry to '_Xutf8TextListToTextProperty'
libX11-1.8.12/src/xlibi18n/lcTxtPr.c:252:12: call_function: calling '_XTextListToTextProperty' from '_Xutf8TextListToTextProperty'
#  139|   
#  140|   retry:
#  141|->     conv = _XlcOpenConverter(lcd, from_type, lcd, to_type);
#  142|       if (conv == NULL) {
#  143|   	Xfree(buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def371]
libX11-1.8.12/src/xlibi18n/lcTxtPr.c:191:5: warning[-Wanalyzer-malloc-leak]: leak of 'to'
libX11-1.8.12/src/xlibi18n/lcTxtPr.c:244:1: enter_function: entry to '_Xutf8TextListToTextProperty'
libX11-1.8.12/src/xlibi18n/lcTxtPr.c:252:12: call_function: calling '_XTextListToTextProperty' from '_Xutf8TextListToTextProperty'
#  189|       }
#  190|   
#  191|->     _XlcCloseConverter(conv);
#  192|   
#  193|       nitems = (int) (to - buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1743:9: warning[-Wanalyzer-malloc-leak]: leak of 'conv'
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1735:12: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1736:8: branch_false: following 'false' branch (when 'conv' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1738:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1743:9: throw: if '_XlcGetResource' throws an exception...
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1743:9: danger: 'conv' leaks here; was allocated at [(1)](sarif:/runs/0/results/145/codeFlows/0/threadFlows/0/locations/0)
# 1741|       for (i = 0, num = 0;; i++) {
# 1742|           snprintf(buf, sizeof(buf), "fs%d.charset.name", i);
# 1743|->         _XlcGetResource(lcd, "XLC_FONTSET", buf, &value, &count);
# 1744|           if (count < 1) {
# 1745|               snprintf(buf, sizeof(buf), "fs%d.charset", i);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def373]
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1746:13: warning[-Wanalyzer-malloc-leak]: leak of 'conv'
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1735:12: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1736:8: branch_false: following 'false' branch (when 'conv' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1738:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1744:12: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1745:13: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1746:13: throw: if '_XlcGetResource' throws an exception...
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1746:13: danger: 'conv' leaks here; was allocated at [(1)](sarif:/runs/0/results/146/codeFlows/0/threadFlows/0/locations/0)
# 1744|           if (count < 1) {
# 1745|               snprintf(buf, sizeof(buf), "fs%d.charset", i);
# 1746|->             _XlcGetResource(lcd, "XLC_FONTSET", buf, &value, &count);
# 1747|               if (count < 1)
# 1748|                   break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def374]
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1751:34: warning[-Wanalyzer-malloc-leak]: leak of 'conv'
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1735:12: acquire_memory: allocated here
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1736:8: branch_false: following 'false' branch (when 'conv' is non-NULL)...
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1738:5: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1751:34: throw: if '_XlcGetCharSet' throws an exception...
libX11-1.8.12/src/xlibi18n/lcUTF8.c:1751:34: danger: 'conv' leaks here; was allocated at [(1)](sarif:/runs/0/results/147/codeFlows/0/threadFlows/0/locations/0)
# 1749|           }
# 1750|   	while (count-- > 0) {
# 1751|-> 	    XlcCharSet charset = _XlcGetCharSet(*value++);
# 1752|   	    const char *name;
# 1753|   

Error: GCC_ANALYZER_WARNING (CWE-787): [#def375]
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:83:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:75:1: enter_function: entry to 'armscii_8_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:78:6: branch_false: following 'false' branch (when 'wc > 39')...
 branch_false: ...to here
 call_function: calling 'armscii_8_wctomb' from 'armscii_8_wctomb'
#   81|     }
#   82|     else if (wc >= 0x0028 && wc < 0x0030)
#   83|->     c = armscii_8_page00[wc-0x0028];
#   84|     else if (wc >= 0x0030 && wc < 0x00a0)
#   85|       c = (unsigned char) wc;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def376]
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:87:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:82:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:84:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:84:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:86:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:86:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:87:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:87:5: danger: read of 1 byte at offset 'wc + 4294967136' exceeds 'armscii_8_page00_1'
#   85|       c = (unsigned char) wc;
#   86|     else if (wc >= 0x00a0 && wc < 0x00c0)
#   87|->     c = armscii_8_page00_1[wc-0x00a0];
#   88|     else if (wc >= 0x0530 && wc < 0x0590)
#   89|       c = armscii_8_page05[wc-0x0530];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def377]
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:89:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:82:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:84:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:84:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:86:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:86:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:88:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:88:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:89:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:89:5: danger: read of 1 byte at offset 'wc + 4294965968' exceeds 'armscii_8_page05'
#   87|       c = armscii_8_page00_1[wc-0x00a0];
#   88|     else if (wc >= 0x0530 && wc < 0x0590)
#   89|->     c = armscii_8_page05[wc-0x0530];
#   90|     else if (wc >= 0x2010 && wc < 0x2028)
#   91|       c = armscii_8_page20[wc-0x2010];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def378]
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:91:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:82:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:84:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:84:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:86:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:86:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:88:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:88:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:90:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:90:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:91:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/armscii_8.h:91:5: danger: read of 1 byte at offset 'wc + 4294959088' exceeds 'armscii_8_page20'
#   89|       c = armscii_8_page05[wc-0x0530];
#   90|     else if (wc >= 0x2010 && wc < 0x2028)
#   91|->     c = armscii_8_page20[wc-0x2010];
#   92|     if (c != 0) {
#   93|       *r = c;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def379]
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1133.h:81:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1133.h:73:1: enter_function: entry to 'cp1133_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1133.h:76:6: branch_false: following 'false' branch (when 'wc > 159')...
 branch_false: ...to here
 call_function: calling 'cp1133_wctomb' from 'cp1133_wctomb'
#   79|     }
#   80|     else if (wc >= 0x00a0 && wc < 0x00b0)
#   81|->     c = cp1133_page00[wc-0x00a0];
#   82|     else if (wc >= 0x0e80 && wc < 0x0ee0)
#   83|       c = cp1133_page0e[wc-0x0e80];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def380]
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1133.h:83:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1133.h:80:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1133.h:82:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1133.h:82:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1133.h:83:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1133.h:83:5: danger: read of 1 byte at offset 'wc + 4294963584' exceeds 'cp1133_page0e'
#   81|       c = cp1133_page00[wc-0x00a0];
#   82|     else if (wc >= 0x0e80 && wc < 0x0ee0)
#   83|->     c = cp1133_page0e[wc-0x0e80];
#   84|     else if (wc == 0x20ad)
#   85|       c = 0xdf;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def381]
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1251.h:96:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1251.h:88:1: enter_function: entry to 'cp1251_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1251.h:91:6: branch_false: following 'false' branch (when 'wc > 127')...
 branch_false: ...to here
 call_function: calling 'cp1251_wctomb' from 'cp1251_wctomb'
#   94|     }
#   95|     else if (wc >= 0x00a0 && wc < 0x00c0)
#   96|->     c = cp1251_page00[wc-0x00a0];
#   97|     else if (wc >= 0x0400 && wc < 0x0498)
#   98|       c = cp1251_page04[wc-0x0400];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def382]
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1251.h:98:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1251.h:95:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1251.h:97:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1251.h:97:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1251.h:98:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1251.h:98:5: danger: read of 1 byte at offset 'wc + 4294966272' exceeds 'cp1251_page04'
#   96|       c = cp1251_page00[wc-0x00a0];
#   97|     else if (wc >= 0x0400 && wc < 0x0498)
#   98|->     c = cp1251_page04[wc-0x0400];
#   99|     else if (wc >= 0x2010 && wc < 0x2040)
#  100|       c = cp1251_page20[wc-0x2010];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def383]
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1251.h:100:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1251.h:95:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1251.h:97:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1251.h:97:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1251.h:99:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1251.h:99:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1251.h:100:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1251.h:100:5: danger: read of 1 byte at offset 'wc + 4294959088' exceeds 'cp1251_page20'
#   98|       c = cp1251_page04[wc-0x0400];
#   99|     else if (wc >= 0x2010 && wc < 0x2040)
#  100|->     c = cp1251_page20[wc-0x2010];
#  101|     else if (wc == 0x20ac)
#  102|       c = 0x88;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def384]
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:100:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:92:1: enter_function: entry to 'cp1255_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:95:6: branch_false: following 'false' branch (when 'wc > 127')...
 branch_false: ...to here
 call_function: calling 'cp1255_wctomb' from 'cp1255_wctomb'
#   98|     }
#   99|     else if (wc >= 0x00a0 && wc < 0x00f8)
#  100|->     c = cp1255_page00[wc-0x00a0];
#  101|     else if (wc == 0x0192)
#  102|       c = 0x83;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def385]
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:104:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:99:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:101:11: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:101:11: branch_false: following 'false' branch (when 'wc != 402')...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:103:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:103:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:104:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:104:5: danger: read of 1 byte at offset 'wc + 4294966592' exceeds 'cp1255_page02'
#  102|       c = 0x83;
#  103|     else if (wc >= 0x02c0 && wc < 0x02e0)
#  104|->     c = cp1255_page02[wc-0x02c0];
#  105|     else if (wc >= 0x05b0 && wc < 0x05f8)
#  106|       c = cp1255_page05[wc-0x05b0];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def386]
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:106:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:99:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:101:11: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:101:11: branch_false: following 'false' branch (when 'wc != 402')...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:103:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:103:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:105:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:105:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:106:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:106:5: danger: read of 1 byte at offset 'wc + 4294965840' exceeds 'cp1255_page05'
#  104|       c = cp1255_page02[wc-0x02c0];
#  105|     else if (wc >= 0x05b0 && wc < 0x05f8)
#  106|->     c = cp1255_page05[wc-0x05b0];
#  107|     else if (wc >= 0x2008 && wc < 0x2040)
#  108|       c = cp1255_page20[wc-0x2008];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def387]
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:108:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:99:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:101:11: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:101:11: branch_false: following 'false' branch (when 'wc != 402')...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:103:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:103:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:105:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:105:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:107:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:107:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:108:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1255.h:108:5: danger: read of 1 byte at offset 'wc + 4294959096' exceeds 'cp1255_page20'
#  106|       c = cp1255_page05[wc-0x05b0];
#  107|     else if (wc >= 0x2008 && wc < 0x2040)
#  108|->     c = cp1255_page20[wc-0x2008];
#  109|     else if (wc == 0x20aa)
#  110|       c = 0xa4;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def388]
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:116:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:108:1: enter_function: entry to 'cp1256_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:111:6: branch_false: following 'false' branch (when 'wc > 127')...
 branch_false: ...to here
 call_function: calling 'cp1256_wctomb' from 'cp1256_wctomb'
#  114|     }
#  115|     else if (wc >= 0x00a0 && wc < 0x0100)
#  116|->     c = cp1256_page00[wc-0x00a0];
#  117|     else if (wc >= 0x0150 && wc < 0x0198)
#  118|       c = cp1256_page01[wc-0x0150];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def389]
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:118:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:115:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:117:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:117:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:118:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:118:5: danger: read of 1 byte at offset 'wc + 4294966960' exceeds 'cp1256_page01'
#  116|       c = cp1256_page00[wc-0x00a0];
#  117|     else if (wc >= 0x0150 && wc < 0x0198)
#  118|->     c = cp1256_page01[wc-0x0150];
#  119|     else if (wc == 0x02c6)
#  120|       c = 0x88;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def390]
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:122:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:115:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:117:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:117:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:119:11: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:119:11: branch_false: following 'false' branch (when 'wc != 710')...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:121:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:121:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:122:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:122:5: danger: read of 1 byte at offset 'wc + 4294965752' exceeds 'cp1256_page06'
#  120|       c = 0x88;
#  121|     else if (wc >= 0x0608 && wc < 0x06d8)
#  122|->     c = cp1256_page06[wc-0x0608];
#  123|     else if (wc >= 0x2008 && wc < 0x2040)
#  124|       c = cp1256_page20[wc-0x2008];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def391]
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:124:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:115:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:117:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:117:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:119:11: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:119:11: branch_false: following 'false' branch (when 'wc != 710')...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:121:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:121:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:123:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:123:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:124:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/cp1256.h:124:5: danger: read of 1 byte at offset 'wc + 4294959096' exceeds 'cp1256_page20'
#  122|       c = cp1256_page06[wc-0x0608];
#  123|     else if (wc >= 0x2008 && wc < 0x2040)
#  124|->     c = cp1256_page20[wc-0x2008];
#  125|     else if (wc == 0x20ac)
#  126|       c = 0x80;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def392]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6146:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6146:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6146:7: danger: read of 2 bytes at offset 'wc * 2 + 8589933680' exceeds 'gbk_page01'
# 6144|         c = gbk_page00[wc-0x00a0];
# 6145|       else if (wc >= 0x01c8 && wc < 0x01e0)
# 6146|->       c = gbk_page01[wc-0x01c8];
# 6147|       else if (wc >= 0x0250 && wc < 0x0268)
# 6148|         c = gbk_page02a[wc-0x0250];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def393]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6148:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6148:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6148:7: danger: read of 2 bytes at offset 'wc * 2 + 8589933408' exceeds 'gbk_page02a'
# 6146|         c = gbk_page01[wc-0x01c8];
# 6147|       else if (wc >= 0x0250 && wc < 0x0268)
# 6148|->       c = gbk_page02a[wc-0x0250];
# 6149|       else if (wc >= 0x02c0 && wc < 0x02e0)
# 6150|         c = gbk_page02b[wc-0x02c0];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def394]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6150:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6150:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6150:7: danger: read of 2 bytes at offset 'wc * 2 + 8589933184' exceeds 'gbk_page02b'
# 6148|         c = gbk_page02a[wc-0x0250];
# 6149|       else if (wc >= 0x02c0 && wc < 0x02e0)
# 6150|->       c = gbk_page02b[wc-0x02c0];
# 6151|       else if (wc >= 0x0390 && wc < 0x03d0)
# 6152|         c = gbk_page03[wc-0x0390];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def395]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6152:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6152:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6152:7: danger: read of 2 bytes at offset 'wc * 2 + 8589932768' exceeds 'gbk_page03'
# 6150|         c = gbk_page02b[wc-0x02c0];
# 6151|       else if (wc >= 0x0390 && wc < 0x03d0)
# 6152|->       c = gbk_page03[wc-0x0390];
# 6153|       else if (wc >= 0x0400 && wc < 0x0458)
# 6154|         c = gbk_page04[wc-0x0400];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def396]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6154:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6154:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6154:7: danger: read of 2 bytes at offset 'wc * 2 + 8589932544' exceeds 'gbk_page04'
# 6152|         c = gbk_page03[wc-0x0390];
# 6153|       else if (wc >= 0x0400 && wc < 0x0458)
# 6154|->       c = gbk_page04[wc-0x0400];
# 6155|       else if (wc >= 0x2010 && wc < 0x2040)
# 6156|         c = gbk_page20[wc-0x2010];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def397]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6156:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6156:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6156:7: danger: read of 2 bytes at offset 'wc * 2 + 8589918176' exceeds 'gbk_page20'
# 6154|         c = gbk_page04[wc-0x0400];
# 6155|       else if (wc >= 0x2010 && wc < 0x2040)
# 6156|->       c = gbk_page20[wc-0x2010];
# 6157|       else if (wc >= 0x2100 && wc < 0x21a0)
# 6158|         c = gbk_page21[wc-0x2100];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def398]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6158:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6158:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6158:7: danger: read of 2 bytes at offset 'wc * 2 + 8589917696' exceeds 'gbk_page21'
# 6156|         c = gbk_page20[wc-0x2010];
# 6157|       else if (wc >= 0x2100 && wc < 0x21a0)
# 6158|->       c = gbk_page21[wc-0x2100];
# 6159|       else if (wc >= 0x2208 && wc < 0x22c0)
# 6160|         c = gbk_page22[wc-0x2208];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def399]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6160:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6160:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6160:7: danger: read of 2 bytes at offset 'wc * 2 + 8589917168' exceeds 'gbk_page22'
# 6158|         c = gbk_page21[wc-0x2100];
# 6159|       else if (wc >= 0x2208 && wc < 0x22c0)
# 6160|->       c = gbk_page22[wc-0x2208];
# 6161|       else if (wc == 0x2312)
# 6162|         c = 0xa1d0;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def400]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6164:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: following 'false' branch (when 'wc != 8978')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6164:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6164:7: danger: read of 2 bytes at offset 'wc * 2 + 8589915968' exceeds 'gbk_page24'
# 6162|         c = 0xa1d0;
# 6163|       else if (wc >= 0x2460 && wc < 0x24a0)
# 6164|->       c = gbk_page24[wc-0x2460];
# 6165|       else if (wc >= 0x2500 && wc < 0x25e8)
# 6166|         c = gbk_page25[wc-0x2500];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def401]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6166:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: following 'false' branch (when 'wc != 8978')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6166:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6166:7: danger: read of 2 bytes at offset 'wc * 2 + 8589915648' exceeds 'gbk_page25'
# 6164|         c = gbk_page24[wc-0x2460];
# 6165|       else if (wc >= 0x2500 && wc < 0x25e8)
# 6166|->       c = gbk_page25[wc-0x2500];
# 6167|       else if (wc >= 0x2600 && wc < 0x2648)
# 6168|         c = gbk_page26[wc-0x2600];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def402]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6168:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: following 'false' branch (when 'wc != 8978')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6168:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6168:7: danger: read of 2 bytes at offset 'wc * 2 + 8589915136' exceeds 'gbk_page26'
# 6166|         c = gbk_page25[wc-0x2500];
# 6167|       else if (wc >= 0x2600 && wc < 0x2648)
# 6168|->       c = gbk_page26[wc-0x2600];
# 6169|       else if (wc >= 0x3000 && wc < 0x3130)
# 6170|         c = gbk_page30[wc-0x3000];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def403]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6170:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: following 'false' branch (when 'wc != 8978')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6169:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6169:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6170:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6170:7: danger: read of 2 bytes at offset 'wc * 2 + 8589910016' exceeds 'gbk_page30'
# 6168|         c = gbk_page26[wc-0x2600];
# 6169|       else if (wc >= 0x3000 && wc < 0x3130)
# 6170|->       c = gbk_page30[wc-0x3000];
# 6171|       else if (wc >= 0x3220 && wc < 0x3238)
# 6172|         c = gbk_page32[wc-0x3220];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def404]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6172:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: following 'false' branch (when 'wc != 8978')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6169:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6169:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6171:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6171:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6172:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6172:7: danger: read of 2 bytes at offset 'wc * 2 + 8589908928' exceeds 'gbk_page32'
# 6170|         c = gbk_page30[wc-0x3000];
# 6171|       else if (wc >= 0x3220 && wc < 0x3238)
# 6172|->       c = gbk_page32[wc-0x3220];
# 6173|       else if (wc == 0x32a3)
# 6174|         c = 0xa949;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def405]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6176:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: following 'false' branch (when 'wc != 8978')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6169:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6169:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6171:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6171:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6173:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6173:13: branch_false: following 'false' branch (when 'wc != 12963')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6175:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6175:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6176:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6176:7: danger: read of 2 bytes at offset 'wc * 2 + 8589908208' exceeds 'gbk_page33'
# 6174|         c = 0xa949;
# 6175|       else if (wc >= 0x3388 && wc < 0x33d8)
# 6176|->       c = gbk_page33[wc-0x3388];
# 6177|       else if (wc >= 0x4e00 && wc < 0x9fa8)
# 6178|         c = gbk_page4e[wc-0x4e00];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def406]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6182:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: following 'false' branch (when 'wc != 8978')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6169:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6169:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6171:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6171:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6173:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6173:13: branch_false: following 'false' branch (when 'wc != 12963')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6175:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6175:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6177:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6177:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6179:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6179:13: branch_false: following 'false' branch (when 'wc != 63788')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6181:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6181:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6182:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6182:7: danger: read of 2 bytes at offset 'wc * 2 + 8589806864' exceeds 'gbk_pagef9a'
# 6180|         c = 0xfd9c;
# 6181|       else if (wc >= 0xf978 && wc < 0xf998)
# 6182|->       c = gbk_pagef9a[wc-0xf978];
# 6183|       else if (wc >= 0xf9e0 && wc < 0xf9f8)
# 6184|         c = gbk_pagef9b[wc-0xf9e0];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def407]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6184:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: following 'false' branch (when 'wc != 8978')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6169:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6169:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6171:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6171:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6173:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6173:13: branch_false: following 'false' branch (when 'wc != 12963')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6175:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6175:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6177:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6177:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6179:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6179:13: branch_false: following 'false' branch (when 'wc != 63788')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6181:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6181:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6183:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6183:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6184:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6184:7: danger: read of 2 bytes at offset 'wc * 2 + 8589806656' exceeds 'gbk_pagef9b'
# 6182|         c = gbk_pagef9a[wc-0xf978];
# 6183|       else if (wc >= 0xf9e0 && wc < 0xf9f8)
# 6184|->       c = gbk_pagef9b[wc-0xf9e0];
# 6185|       else if (wc >= 0xfa08 && wc < 0xfa30)
# 6186|         c = gbk_pagefa[wc-0xfa08];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def408]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6186:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: following 'false' branch (when 'wc != 8978')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6169:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6169:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6171:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6171:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6173:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6173:13: branch_false: following 'false' branch (when 'wc != 12963')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6175:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6175:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6177:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6177:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6179:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6179:13: branch_false: following 'false' branch (when 'wc != 63788')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6181:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6181:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6183:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6183:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6185:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6185:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6186:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6186:7: danger: read of 2 bytes at offset 'wc * 2 + 8589806576' exceeds 'gbk_pagefa'
# 6184|         c = gbk_pagef9b[wc-0xf9e0];
# 6185|       else if (wc >= 0xfa08 && wc < 0xfa30)
# 6186|->       c = gbk_pagefa[wc-0xfa08];
# 6187|       else if (wc >= 0xfe30 && wc < 0xfe70)
# 6188|         c = gbk_pagefe[wc-0xfe30];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def409]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6188:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: following 'false' branch (when 'wc != 8978')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6169:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6169:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6171:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6171:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6173:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6173:13: branch_false: following 'false' branch (when 'wc != 12963')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6175:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6175:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6177:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6177:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6179:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6179:13: branch_false: following 'false' branch (when 'wc != 63788')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6181:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6181:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6183:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6183:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6185:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6185:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6187:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6187:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6188:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6188:7: danger: read of 2 bytes at offset 'wc * 2 + 8589804448' exceeds 'gbk_pagefe'
# 6186|         c = gbk_pagefa[wc-0xfa08];
# 6187|       else if (wc >= 0xfe30 && wc < 0xfe70)
# 6188|->       c = gbk_pagefe[wc-0xfe30];
# 6189|       else if (wc >= 0xff00 && wc < 0xff60)
# 6190|         c = gbk_pageffa[wc-0xff00];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def410]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6190:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: following 'false' branch (when 'wc != 8978')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6169:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6169:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6171:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6171:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6173:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6173:13: branch_false: following 'false' branch (when 'wc != 12963')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6175:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6175:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6177:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6177:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6179:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6179:13: branch_false: following 'false' branch (when 'wc != 63788')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6181:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6181:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6183:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6183:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6185:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6185:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6187:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6187:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6189:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6189:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6190:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6190:7: danger: read of 2 bytes at offset 'wc * 2 + 8589804032' exceeds 'gbk_pageffa'
# 6188|         c = gbk_pagefe[wc-0xfe30];
# 6189|       else if (wc >= 0xff00 && wc < 0xff60)
# 6190|->       c = gbk_pageffa[wc-0xff00];
# 6191|       else if (wc >= 0xffe0 && wc < 0xffe8)
# 6192|         c = gbk_pageffb[wc-0xffe0];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def411]
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6192:7: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6141:6: branch_true: following 'true' branch (when 'n > 1')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:9: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6143:8: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6145:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6147:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6149:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6151:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6153:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6155:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6157:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6159:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6161:13: branch_false: following 'false' branch (when 'wc != 8978')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6163:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6165:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6167:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6169:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6169:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6171:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6171:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6173:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6173:13: branch_false: following 'false' branch (when 'wc != 12963')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6175:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6175:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6177:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6177:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6179:13: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6179:13: branch_false: following 'false' branch (when 'wc != 63788')...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6181:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6181:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6183:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6183:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6185:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6185:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6187:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6187:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6189:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6189:13: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6191:14: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6191:13: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6192:7: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/gbk.h:6192:7: danger: read of 2 bytes at offset 'wc * 2 + 8589803584' exceeds 'gbk_pageffb'
# 6190|         c = gbk_pageffa[wc-0xff00];
# 6191|       else if (wc >= 0xffe0 && wc < 0xffe8)
# 6192|->       c = gbk_pageffb[wc-0xffe0];
# 6193|       if (c != 0) {
# 6194|         r[0] = (c >> 8); r[1] = (c & 0xff);

Error: GCC_ANALYZER_WARNING (CWE-787): [#def412]
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:69:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:61:1: enter_function: entry to 'georgian_academy_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:64:6: branch_false: following 'false' branch (when 'wc > 127')...
 branch_false: ...to here
 call_function: calling 'georgian_academy_wctomb' from 'georgian_academy_wctomb'
#   67|     }
#   68|     else if (wc >= 0x0080 && wc < 0x00a0)
#   69|->     c = georgian_academy_page00[wc-0x0080];
#   70|     else if ((wc >= 0x00a0 && wc < 0x00c0) || (wc >= 0x00e7 && wc < 0x0100))
#   71|       c = (unsigned char) wc;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def413]
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:73:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:68:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:70:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:70:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:72:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:72:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:73:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:73:5: danger: read of 1 byte at offset 'wc + 4294966960' exceeds 'georgian_academy_page01'
#   71|       c = (unsigned char) wc;
#   72|     else if (wc >= 0x0150 && wc < 0x0198)
#   73|->     c = georgian_academy_page01[wc-0x0150];
#   74|     else if (wc >= 0x02c0 && wc < 0x02e0)
#   75|       c = georgian_academy_page02[wc-0x02c0];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def414]
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:75:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:68:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:70:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:70:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:72:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:72:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:74:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:74:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:75:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:75:5: danger: read of 1 byte at offset 'wc + 4294966592' exceeds 'georgian_academy_page02'
#   73|       c = georgian_academy_page01[wc-0x0150];
#   74|     else if (wc >= 0x02c0 && wc < 0x02e0)
#   75|->     c = georgian_academy_page02[wc-0x02c0];
#   76|     else if (wc >= 0x10d0 && wc < 0x10f7)
#   77|       c = (unsigned char) (wc - 0x1010);

Error: GCC_ANALYZER_WARNING (CWE-787): [#def415]
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:79:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:68:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:70:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:70:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:72:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:72:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:74:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:74:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:76:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:76:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:78:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:78:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:79:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_academy.h:79:5: danger: read of 1 byte at offset 'wc + 4294959088' exceeds 'georgian_academy_page20'
#   77|       c = (unsigned char) (wc - 0x1010);
#   78|     else if (wc >= 0x2010 && wc < 0x2040)
#   79|->     c = georgian_academy_page20[wc-0x2010];
#   80|     else if (wc == 0x2122)
#   81|       c = 0x99;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def416]
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:86:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:78:1: enter_function: entry to 'georgian_ps_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:81:6: branch_false: following 'false' branch (when 'wc > 127')...
 branch_false: ...to here
 call_function: calling 'georgian_ps_wctomb' from 'georgian_ps_wctomb'
#   84|     }
#   85|     else if (wc >= 0x0080 && wc < 0x00a0)
#   86|->     c = georgian_ps_page00[wc-0x0080];
#   87|     else if ((wc >= 0x00a0 && wc < 0x00c0) || (wc >= 0x00e6 && wc < 0x0100))
#   88|       c = (unsigned char) wc;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def417]
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:90:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:85:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:87:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:87:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:89:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:89:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:90:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:90:5: danger: read of 1 byte at offset 'wc + 4294966960' exceeds 'georgian_ps_page01'
#   88|       c = (unsigned char) wc;
#   89|     else if (wc >= 0x0150 && wc < 0x0198)
#   90|->     c = georgian_ps_page01[wc-0x0150];
#   91|     else if (wc >= 0x02c0 && wc < 0x02e0)
#   92|       c = georgian_ps_page02[wc-0x02c0];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def418]
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:92:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:85:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:87:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:87:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:89:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:89:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:91:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:91:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:92:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:92:5: danger: read of 1 byte at offset 'wc + 4294966592' exceeds 'georgian_ps_page02'
#   90|       c = georgian_ps_page01[wc-0x0150];
#   91|     else if (wc >= 0x02c0 && wc < 0x02e0)
#   92|->     c = georgian_ps_page02[wc-0x02c0];
#   93|     else if (wc >= 0x10d0 && wc < 0x10f8)
#   94|       c = georgian_ps_page10[wc-0x10d0];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def419]
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:94:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:85:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:87:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:87:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:89:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:89:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:91:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:91:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:93:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:93:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:94:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:94:5: danger: read of 1 byte at offset 'wc + 4294962992' exceeds 'georgian_ps_page10'
#   92|       c = georgian_ps_page02[wc-0x02c0];
#   93|     else if (wc >= 0x10d0 && wc < 0x10f8)
#   94|->     c = georgian_ps_page10[wc-0x10d0];
#   95|     else if (wc >= 0x2010 && wc < 0x2040)
#   96|       c = georgian_ps_page20[wc-0x2010];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def420]
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:96:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:85:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:87:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:87:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:89:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:89:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:91:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:91:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:93:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:93:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:95:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:95:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:96:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/georgian_ps.h:96:5: danger: read of 1 byte at offset 'wc + 4294959088' exceeds 'georgian_ps_page20'
#   94|       c = georgian_ps_page10[wc-0x10d0];
#   95|     else if (wc >= 0x2010 && wc < 0x2040)
#   96|->     c = georgian_ps_page20[wc-0x2010];
#   97|     else if (wc == 0x2122)
#   98|       c = 0x99;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def421]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_11.h:71:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_11.h:63:1: enter_function: entry to 'iso8859_11_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_11.h:66:6: branch_false: following 'false' branch...
 branch_false: ...to here
 call_function: calling 'iso8859_11_wctomb' from 'iso8859_11_wctomb'
#   69|     }
#   70|     else if (wc >= 0x0e00 && wc < 0x0e60)
#   71|->     c = iso8859_11_page0e[wc-0x0e00];
#   72|     if (c != 0) {
#   73|       *r = c;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def422]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_13.h:84:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_13.h:81:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_13.h:83:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_13.h:83:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_13.h:84:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_13.h:84:5: danger: read of 1 byte at offset 'wc + 4294959080' exceeds 'iso8859_13_page20'
#   82|       c = iso8859_13_page00[wc-0x00a0];
#   83|     else if (wc >= 0x2018 && wc < 0x2020)
#   84|->     c = iso8859_13_page20[wc-0x2018];
#   85|     if (c != 0) {
#   86|       *r = c;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def423]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:94:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:86:1: enter_function: entry to 'iso8859_14_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:89:6: branch_false: following 'false' branch (when 'wc > 159')...
 branch_false: ...to here
 call_function: calling 'iso8859_14_wctomb' from 'iso8859_14_wctomb'
#   92|     }
#   93|     else if (wc >= 0x00a0 && wc < 0x0100)
#   94|->     c = iso8859_14_page00[wc-0x00a0];
#   95|     else if (wc >= 0x0108 && wc < 0x0128)
#   96|       c = iso8859_14_page01_0[wc-0x0108];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def424]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:96:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:93:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:95:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:95:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:96:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:96:5: danger: read of 1 byte at offset 'wc + 4294967032' exceeds 'iso8859_14_page01_0'
#   94|       c = iso8859_14_page00[wc-0x00a0];
#   95|     else if (wc >= 0x0108 && wc < 0x0128)
#   96|->     c = iso8859_14_page01_0[wc-0x0108];
#   97|     else if (wc >= 0x0170 && wc < 0x0180)
#   98|       c = iso8859_14_page01_1[wc-0x0170];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def425]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:98:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:93:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:95:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:95:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:97:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:97:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:98:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:98:5: danger: read of 1 byte at offset 'wc + 4294966928' exceeds 'iso8859_14_page01_1'
#   96|       c = iso8859_14_page01_0[wc-0x0108];
#   97|     else if (wc >= 0x0170 && wc < 0x0180)
#   98|->     c = iso8859_14_page01_1[wc-0x0170];
#   99|     else if (wc >= 0x1e00 && wc < 0x1e88)
#  100|       c = iso8859_14_page1e_0[wc-0x1e00];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def426]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:100:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:93:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:95:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:95:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:97:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:97:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:99:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:99:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:100:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:100:5: danger: read of 1 byte at offset 'wc + 4294959616' exceeds 'iso8859_14_page1e_0'
#   98|       c = iso8859_14_page01_1[wc-0x0170];
#   99|     else if (wc >= 0x1e00 && wc < 0x1e88)
#  100|->     c = iso8859_14_page1e_0[wc-0x1e00];
#  101|     else if (wc >= 0x1ef0 && wc < 0x1ef8)
#  102|       c = iso8859_14_page1e_1[wc-0x1ef0];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def427]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:102:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:93:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:95:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:95:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:97:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:97:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:99:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:99:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:101:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:101:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:102:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_14.h:102:5: danger: read of 1 byte at offset 'wc + 4294959376' exceeds 'iso8859_14_page1e_1'
#  100|       c = iso8859_14_page1e_0[wc-0x1e00];
#  101|     else if (wc >= 0x1ef0 && wc < 0x1ef8)
#  102|->     c = iso8859_14_page1e_1[wc-0x1ef0];
#  103|     if (c != 0) {
#  104|       *r = c;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def428]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_15.h:50:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_15.h:42:1: enter_function: entry to 'iso8859_15_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_15.h:45:6: branch_false: following 'false' branch (when 'wc > 159')...
 branch_false: ...to here
 call_function: calling 'iso8859_15_wctomb' from 'iso8859_15_wctomb'
#   48|     }
#   49|     else if (wc >= 0x00a0 && wc < 0x00c0)
#   50|->     c = iso8859_15_page00[wc-0x00a0];
#   51|     else if (wc >= 0x00c0 && wc < 0x0100)
#   52|       c = (unsigned char) wc;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def429]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_15.h:54:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_15.h:49:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_15.h:51:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_15.h:51:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_15.h:53:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_15.h:53:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_15.h:54:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_15.h:54:5: danger: read of 1 byte at offset 'wc + 4294966960' exceeds 'iso8859_15_page01'
#   52|       c = (unsigned char) wc;
#   53|     else if (wc >= 0x0150 && wc < 0x0180)
#   54|->     c = iso8859_15_page01[wc-0x0150];
#   55|     else if (wc == 0x20ac)
#   56|       c = 0xa4;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def430]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_16.h:87:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_16.h:84:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_16.h:86:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_16.h:86:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_16.h:87:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_16.h:87:5: danger: read of 1 byte at offset 'wc + 4294966760' exceeds 'iso8859_16_page02'
#   85|       c = iso8859_16_page00[wc-0x00a0];
#   86|     else if (wc >= 0x0218 && wc < 0x0220)
#   87|->     c = iso8859_16_page02[wc-0x0218];
#   88|     else if (wc >= 0x2018 && wc < 0x2020)
#   89|       c = iso8859_16_page20[wc-0x2018];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def431]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_16.h:89:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_16.h:84:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_16.h:86:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_16.h:86:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_16.h:88:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_16.h:88:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_16.h:89:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_16.h:89:5: danger: read of 1 byte at offset 'wc + 4294959080' exceeds 'iso8859_16_page20'
#   87|       c = iso8859_16_page02[wc-0x0218];
#   88|     else if (wc >= 0x2018 && wc < 0x2020)
#   89|->     c = iso8859_16_page20[wc-0x2018];
#   90|     else if (wc == 0x20ac)
#   91|       c = 0xa4;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def432]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_2.h:87:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_2.h:84:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_2.h:86:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_2.h:86:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_2.h:87:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_2.h:87:5: danger: read of 1 byte at offset 'wc + 4294966592' exceeds 'iso8859_2_page02'
#   85|       c = iso8859_2_page00[wc-0x00a0];
#   86|     else if (wc >= 0x02c0 && wc < 0x02e0)
#   87|->     c = iso8859_2_page02[wc-0x02c0];
#   88|     if (c != 0) {
#   89|       *r = c;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def433]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_3.h:89:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_3.h:81:1: enter_function: entry to 'iso8859_3_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_3.h:84:6: branch_false: following 'false' branch (when 'wc > 159')...
 branch_false: ...to here
 call_function: calling 'iso8859_3_wctomb' from 'iso8859_3_wctomb'
#   87|     }
#   88|     else if (wc >= 0x00a0 && wc < 0x0100)
#   89|->     c = iso8859_3_page00[wc-0x00a0];
#   90|     else if (wc >= 0x0108 && wc < 0x0180)
#   91|       c = iso8859_3_page01[wc-0x0108];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def434]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_3.h:91:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_3.h:88:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_3.h:90:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_3.h:90:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_3.h:91:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_3.h:91:5: danger: read of 1 byte at offset 'wc + 4294967032' exceeds 'iso8859_3_page01'
#   89|       c = iso8859_3_page00[wc-0x00a0];
#   90|     else if (wc >= 0x0108 && wc < 0x0180)
#   91|->     c = iso8859_3_page01[wc-0x0108];
#   92|     else if (wc >= 0x02d8 && wc < 0x02e0)
#   93|       c = iso8859_3_page02[wc-0x02d8];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def435]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_3.h:93:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_3.h:88:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_3.h:90:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_3.h:90:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_3.h:92:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_3.h:92:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_3.h:93:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_3.h:93:5: danger: read of 1 byte at offset 'wc + 4294966568' exceeds 'iso8859_3_page02'
#   91|       c = iso8859_3_page01[wc-0x0108];
#   92|     else if (wc >= 0x02d8 && wc < 0x02e0)
#   93|->     c = iso8859_3_page02[wc-0x02d8];
#   94|     if (c != 0) {
#   95|       *r = c;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def436]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_4.h:87:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_4.h:84:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_4.h:86:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_4.h:86:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_4.h:87:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_4.h:87:5: danger: read of 1 byte at offset 'wc + 4294966592' exceeds 'iso8859_4_page02'
#   85|       c = iso8859_4_page00[wc-0x00a0];
#   86|     else if (wc >= 0x02c0 && wc < 0x02e0)
#   87|->     c = iso8859_4_page02[wc-0x02c0];
#   88|     if (c != 0) {
#   89|       *r = c;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def437]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_5.h:66:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_5.h:58:1: enter_function: entry to 'iso8859_5_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_5.h:61:6: branch_false: following 'false' branch (when 'wc > 159')...
 branch_false: ...to here
 call_function: calling 'iso8859_5_wctomb' from 'iso8859_5_wctomb'
#   64|     }
#   65|     else if (wc >= 0x00a0 && wc < 0x00b0)
#   66|->     c = iso8859_5_page00[wc-0x00a0];
#   67|     else if (wc >= 0x0400 && wc < 0x0460)
#   68|       c = iso8859_5_page04[wc-0x0400];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def438]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_5.h:68:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_5.h:65:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_5.h:67:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_5.h:67:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_5.h:68:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_5.h:68:5: danger: read of 1 byte at offset 'wc + 4294966272' exceeds 'iso8859_5_page04'
#   66|       c = iso8859_5_page00[wc-0x00a0];
#   67|     else if (wc >= 0x0400 && wc < 0x0460)
#   68|->     c = iso8859_5_page04[wc-0x0400];
#   69|     else if (wc == 0x2116)
#   70|       c = 0xf0;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def439]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_6.h:71:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_6.h:63:1: enter_function: entry to 'iso8859_6_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_6.h:66:6: branch_false: following 'false' branch (when 'wc > 159')...
 branch_false: ...to here
 call_function: calling 'iso8859_6_wctomb' from 'iso8859_6_wctomb'
#   69|     }
#   70|     else if (wc >= 0x00a0 && wc < 0x00b0)
#   71|->     c = iso8859_6_page00[wc-0x00a0];
#   72|     else if (wc >= 0x0608 && wc < 0x0658)
#   73|       c = iso8859_6_page06[wc-0x0608];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def440]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_6.h:73:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_6.h:70:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_6.h:72:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_6.h:72:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_6.h:73:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_6.h:73:5: danger: read of 1 byte at offset 'wc + 4294965752' exceeds 'iso8859_6_page06'
#   71|       c = iso8859_6_page00[wc-0x00a0];
#   72|     else if (wc >= 0x0608 && wc < 0x0658)
#   73|->     c = iso8859_6_page06[wc-0x0608];
#   74|     if (c != 0) {
#   75|       *r = c;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def441]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_7.h:77:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_7.h:69:1: enter_function: entry to 'iso8859_7_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_7.h:72:6: branch_false: following 'false' branch (when 'wc > 159')...
 branch_false: ...to here
 call_function: calling 'iso8859_7_wctomb' from 'iso8859_7_wctomb'
#   75|     }
#   76|     else if (wc >= 0x00a0 && wc < 0x00c0)
#   77|->     c = iso8859_7_page00[wc-0x00a0];
#   78|     else if (wc >= 0x0380 && wc < 0x03d0)
#   79|       c = iso8859_7_page03[wc-0x0380];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def442]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_7.h:79:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_7.h:76:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_7.h:78:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_7.h:78:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_7.h:79:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_7.h:79:5: danger: read of 1 byte at offset 'wc + 4294966400' exceeds 'iso8859_7_page03'
#   77|       c = iso8859_7_page00[wc-0x00a0];
#   78|     else if (wc >= 0x0380 && wc < 0x03d0)
#   79|->     c = iso8859_7_page03[wc-0x0380];
#   80|     else if (wc >= 0x2010 && wc < 0x2020)
#   81|       c = iso8859_7_page20[wc-0x2010];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def443]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_7.h:81:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_7.h:76:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_7.h:78:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_7.h:78:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_7.h:80:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_7.h:80:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_7.h:81:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_7.h:81:5: danger: read of 1 byte at offset 'wc + 4294959088' exceeds 'iso8859_7_page20'
#   79|       c = iso8859_7_page03[wc-0x0380];
#   80|     else if (wc >= 0x2010 && wc < 0x2020)
#   81|->     c = iso8859_7_page20[wc-0x2010];
#   82|     if (c != 0) {
#   83|       *r = c;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def444]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_8.h:78:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_8.h:70:1: enter_function: entry to 'iso8859_8_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_8.h:73:6: branch_false: following 'false' branch (when 'wc > 159')...
 branch_false: ...to here
 call_function: calling 'iso8859_8_wctomb' from 'iso8859_8_wctomb'
#   76|     }
#   77|     else if (wc >= 0x00a0 && wc < 0x00f8)
#   78|->     c = iso8859_8_page00[wc-0x00a0];
#   79|     else if (wc >= 0x05d0 && wc < 0x05f0)
#   80|       c = iso8859_8_page05[wc-0x05d0];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def445]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_8.h:80:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_8.h:77:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_8.h:79:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_8.h:79:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_8.h:80:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_8.h:80:5: danger: read of 1 byte at offset 'wc + 4294965808' exceeds 'iso8859_8_page05'
#   78|       c = iso8859_8_page00[wc-0x00a0];
#   79|     else if (wc >= 0x05d0 && wc < 0x05f0)
#   80|->     c = iso8859_8_page05[wc-0x05d0];
#   81|     else if (wc >= 0x2008 && wc < 0x2018)
#   82|       c = iso8859_8_page20[wc-0x2008];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def446]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_8.h:82:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_8.h:77:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_8.h:79:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_8.h:79:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_8.h:81:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_8.h:81:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_8.h:82:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_8.h:82:5: danger: read of 1 byte at offset 'wc + 4294959096' exceeds 'iso8859_8_page20'
#   80|       c = iso8859_8_page05[wc-0x05d0];
#   81|     else if (wc >= 0x2008 && wc < 0x2018)
#   82|->     c = iso8859_8_page20[wc-0x2008];
#   83|     if (c != 0) {
#   84|       *r = c;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def447]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9.h:58:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9.h:50:1: enter_function: entry to 'iso8859_9_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9.h:53:6: branch_false: following 'false' branch (when 'wc > 207')...
 branch_false: ...to here
 call_function: calling 'iso8859_9_wctomb' from 'iso8859_9_wctomb'
#   56|     }
#   57|     else if (wc >= 0x00d0 && wc < 0x0100)
#   58|->     c = iso8859_9_page00[wc-0x00d0];
#   59|     else if (wc >= 0x0118 && wc < 0x0160)
#   60|       c = iso8859_9_page01[wc-0x0118];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def448]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9.h:60:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9.h:57:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9.h:59:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9.h:59:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9.h:60:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9.h:60:5: danger: read of 1 byte at offset 'wc + 4294967016' exceeds 'iso8859_9_page01'
#   58|       c = iso8859_9_page00[wc-0x00d0];
#   59|     else if (wc >= 0x0118 && wc < 0x0160)
#   60|->     c = iso8859_9_page01[wc-0x0118];
#   61|     if (c != 0) {
#   62|       *r = c;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def449]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9e.h:86:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9e.h:78:1: enter_function: entry to 'iso8859_9e_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9e.h:81:6: branch_false: following 'false' branch (when 'wc > 159')...
 branch_false: ...to here
 call_function: calling 'iso8859_9e_wctomb' from 'iso8859_9e_wctomb'
#   84|     }
#   85|     else if (wc >= 0x00a0 && wc < 0x0100)
#   86|->     c = iso8859_9e_page00[wc-0x00a0];
#   87|     else if (wc >= 0x0118 && wc < 0x01a0)
#   88|       c = iso8859_9e_page01[wc-0x0118];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def450]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9e.h:88:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9e.h:85:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9e.h:87:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9e.h:87:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9e.h:88:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9e.h:88:5: danger: read of 1 byte at offset 'wc + 4294967016' exceeds 'iso8859_9e_page01'
#   86|       c = iso8859_9e_page00[wc-0x00a0];
#   87|     else if (wc >= 0x0118 && wc < 0x01a0)
#   88|->     c = iso8859_9e_page01[wc-0x0118];
#   89|     else if (wc >= 0x01d0 && wc < 0x01e8)
#   90|       c = iso8859_9e_page01_d[wc-0x01d0];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def451]
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9e.h:90:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9e.h:85:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9e.h:87:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9e.h:87:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9e.h:89:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9e.h:89:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9e.h:90:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/iso8859_9e.h:90:5: danger: read of 1 byte at offset 'wc + 4294966832' exceeds 'iso8859_9e_page01_d'
#   88|       c = iso8859_9e_page01[wc-0x0118];
#   89|     else if (wc >= 0x01d0 && wc < 0x01e8)
#   90|->     c = iso8859_9e_page01_d[wc-0x01d0];
#   91|     else if (wc == 0x0259)
#   92|       c = 0xe6;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def452]
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:120:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:112:1: enter_function: entry to 'koi8_r_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:115:6: branch_false: following 'false' branch (when 'wc > 127')...
 branch_false: ...to here
 call_function: calling 'koi8_r_wctomb' from 'koi8_r_wctomb'
#  118|     }
#  119|     else if (wc >= 0x00a0 && wc < 0x00f8)
#  120|->     c = koi8_r_page00[wc-0x00a0];
#  121|     else if (wc >= 0x0400 && wc < 0x0458)
#  122|       c = koi8_r_page04[wc-0x0400];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def453]
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:122:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:119:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:121:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:121:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:122:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:122:5: danger: read of 1 byte at offset 'wc + 4294966272' exceeds 'koi8_r_page04'
#  120|       c = koi8_r_page00[wc-0x00a0];
#  121|     else if (wc >= 0x0400 && wc < 0x0458)
#  122|->     c = koi8_r_page04[wc-0x0400];
#  123|     else if (wc >= 0x2218 && wc < 0x2268)
#  124|       c = koi8_r_page22[wc-0x2218];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def454]
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:124:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:119:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:121:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:121:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:123:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:123:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:124:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:124:5: danger: read of 1 byte at offset 'wc + 4294958568' exceeds 'koi8_r_page22'
#  122|       c = koi8_r_page04[wc-0x0400];
#  123|     else if (wc >= 0x2218 && wc < 0x2268)
#  124|->     c = koi8_r_page22[wc-0x2218];
#  125|     else if (wc >= 0x2320 && wc < 0x2328)
#  126|       c = koi8_r_page23[wc-0x2320];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def455]
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:126:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:119:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:121:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:121:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:123:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:123:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:125:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:125:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:126:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:126:5: danger: read of 1 byte at offset 'wc + 4294958304' exceeds 'koi8_r_page23'
#  124|       c = koi8_r_page22[wc-0x2218];
#  125|     else if (wc >= 0x2320 && wc < 0x2328)
#  126|->     c = koi8_r_page23[wc-0x2320];
#  127|     else if (wc >= 0x2500 && wc < 0x25a8)
#  128|       c = koi8_r_page25[wc-0x2500];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def456]
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:128:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:119:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:121:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:121:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:123:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:123:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:125:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:125:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:127:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:127:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:128:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_r.h:128:5: danger: read of 1 byte at offset 'wc + 4294957824' exceeds 'koi8_r_page25'
#  126|       c = koi8_r_page23[wc-0x2320];
#  127|     else if (wc >= 0x2500 && wc < 0x25a8)
#  128|->     c = koi8_r_page25[wc-0x2500];
#  129|     if (c != 0) {
#  130|       *r = c;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def457]
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:128:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:120:1: enter_function: entry to 'koi8_u_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:123:6: branch_false: following 'false' branch (when 'wc > 127')...
 branch_false: ...to here
 call_function: calling 'koi8_u_wctomb' from 'koi8_u_wctomb'
#  126|     }
#  127|     else if (wc >= 0x00a0 && wc < 0x00f8)
#  128|->     c = koi8_u_page00[wc-0x00a0];
#  129|     else if (wc >= 0x0400 && wc < 0x0498)
#  130|       c = koi8_u_page04[wc-0x0400];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def458]
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:130:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:127:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:129:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:129:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:130:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:130:5: danger: read of 1 byte at offset 'wc + 4294966272' exceeds 'koi8_u_page04'
#  128|       c = koi8_u_page00[wc-0x00a0];
#  129|     else if (wc >= 0x0400 && wc < 0x0498)
#  130|->     c = koi8_u_page04[wc-0x0400];
#  131|     else if (wc >= 0x2218 && wc < 0x2268)
#  132|       c = koi8_u_page22[wc-0x2218];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def459]
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:132:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:127:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:129:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:129:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:131:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:131:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:132:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:132:5: danger: read of 1 byte at offset 'wc + 4294958568' exceeds 'koi8_u_page22'
#  130|       c = koi8_u_page04[wc-0x0400];
#  131|     else if (wc >= 0x2218 && wc < 0x2268)
#  132|->     c = koi8_u_page22[wc-0x2218];
#  133|     else if (wc >= 0x2320 && wc < 0x2328)
#  134|       c = koi8_u_page23[wc-0x2320];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def460]
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:134:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:127:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:129:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:129:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:131:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:131:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:133:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:133:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:134:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:134:5: danger: read of 1 byte at offset 'wc + 4294958304' exceeds 'koi8_u_page23'
#  132|       c = koi8_u_page22[wc-0x2218];
#  133|     else if (wc >= 0x2320 && wc < 0x2328)
#  134|->     c = koi8_u_page23[wc-0x2320];
#  135|     else if (wc >= 0x2500 && wc < 0x25a8)
#  136|       c = koi8_u_page25[wc-0x2500];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def461]
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:136:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:127:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:129:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:129:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:131:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:131:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:133:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:133:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:135:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:135:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:136:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/koi8_u.h:136:5: danger: read of 1 byte at offset 'wc + 4294957824' exceeds 'koi8_u_page25'
#  134|       c = koi8_u_page23[wc-0x2320];
#  135|     else if (wc >= 0x2500 && wc < 0x25a8)
#  136|->     c = koi8_u_page25[wc-0x2500];
#  137|     if (c != 0) {
#  138|       *r = c;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def462]
libX11-1.8.12/src/xlibi18n/lcUniConv/mulelao.h:71:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/mulelao.h:61:1: enter_function: entry to 'mulelao_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/mulelao.h:64:6: branch_false: following 'false' branch (when 'wc > 159')...
 branch_false: ...to here
 call_function: calling 'mulelao_wctomb' from 'mulelao_wctomb'
#   69|       c = 0xa0;
#   70|     else if (wc >= 0x0e80 && wc < 0x0ee0)
#   71|->     c = mulelao_page0e[wc-0x0e80];
#   72|     if (c != 0) {
#   73|       *r = c;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def463]
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:108:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:100:1: enter_function: entry to 'tatar_cyr_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:103:6: branch_false: following 'false' branch (when 'wc > 127')...
 branch_false: ...to here
 call_function: calling 'tatar_cyr_wctomb' from 'tatar_cyr_wctomb'
#  106|     }
#  107|     else if (wc >= 0x00a0 && wc < 0x00bc)
#  108|->     c = tatar_cyr_page00[wc-0x00a0];
#  109|     else if (wc >= 0x0400 && wc < 0x04ef)
#  110|       c = tatar_cyr_page04[wc-0x0400];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def464]
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:112:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:107:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:109:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:109:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:111:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:111:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:112:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:112:5: danger: read of 1 byte at offset 'wc + 4294959088' exceeds 'tatar_cyr_page20'
#  110|       c = tatar_cyr_page04[wc-0x0400];
#  111|     else if (wc >= 0x2010 && wc < 0x203b)
#  112|->     c = tatar_cyr_page20[wc-0x2010];
#  113|     else if (wc == 0x20ac)
#  114|       c = 0x88;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def465]
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:116:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:107:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:109:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:109:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:111:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:111:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:113:11: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:113:11: branch_false: following 'false' branch (when 'wc != 8364')...
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:115:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:115:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:116:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/tatar_cyr.h:116:5: danger: read of 1 byte at offset 'wc + 4294958832' exceeds 'tatar_cyr_page21'
#  114|       c = 0x88;
#  115|     else if (wc >= 0x2110 && wc < 0x2123)
#  116|->     c = tatar_cyr_page21[wc-0x2110];
#  117|     if (c != 0) {
#  118|       *r = c;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def466]
libX11-1.8.12/src/xlibi18n/lcUniConv/tcvn.h:125:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/tcvn.h:122:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/tcvn.h:124:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/tcvn.h:124:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/tcvn.h:125:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/tcvn.h:125:5: danger: read of 1 byte at offset 'wc + 4294966528' exceeds 'tcvn_page03'
#  123|       c = tcvn_page00[wc-0x00a0];
#  124|     else if (wc >= 0x0300 && wc < 0x0328)
#  125|->     c = tcvn_page03[wc-0x0300];
#  126|     else if (wc >= 0x1ea0 && wc < 0x1f00)
#  127|       c = tcvn_page1e[wc-0x1ea0];

Error: GCC_ANALYZER_WARNING (CWE-787): [#def467]
libX11-1.8.12/src/xlibi18n/lcUniConv/tcvn.h:127:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/tcvn.h:122:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/tcvn.h:124:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/tcvn.h:124:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/tcvn.h:126:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/tcvn.h:126:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/tcvn.h:127:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/tcvn.h:127:5: danger: read of 1 byte at offset 'wc + 4294959456' exceeds 'tcvn_page1e'
#  125|       c = tcvn_page03[wc-0x0300];
#  126|     else if (wc >= 0x1ea0 && wc < 0x1f00)
#  127|->     c = tcvn_page1e[wc-0x1ea0];
#  128|     if (c != 0) {
#  129|       *r = c;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def468]
libX11-1.8.12/src/xlibi18n/lcUniConv/tis620.h:71:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/tis620.h:63:1: enter_function: entry to 'tis620_wctomb'
libX11-1.8.12/src/xlibi18n/lcUniConv/tis620.h:66:6: branch_false: following 'false' branch (when 'wc > 127')...
 branch_false: ...to here
 call_function: calling 'tis620_wctomb' from 'tis620_wctomb'
#   69|     }
#   70|     else if (wc >= 0x0e00 && wc < 0x0e60)
#   71|->     c = tis620_page0e[wc-0x0e00];
#   72|     if (c != 0) {
#   73|       *r = c;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def469]
libX11-1.8.12/src/xlibi18n/lcUniConv/viscii.h:116:5: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libX11-1.8.12/src/xlibi18n/lcUniConv/viscii.h:113:11: branch_false: following 'false' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/viscii.h:115:12: branch_false: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/viscii.h:115:11: branch_true: following 'true' branch...
libX11-1.8.12/src/xlibi18n/lcUniConv/viscii.h:116:5: branch_true: ...to here
libX11-1.8.12/src/xlibi18n/lcUniConv/viscii.h:116:5: danger: read of 1 byte at offset 'wc + 4294959456' exceeds 'viscii_page1e'
#  114|       c = viscii_page00[wc-0x00c0];
#  115|     else if (wc >= 0x1ea0 && wc < 0x1f00)
#  116|->     c = viscii_page1e[wc-0x1ea0];
#  117|     if (c != 0) {
#  118|       *r = c;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def470]
libX11-1.8.12/src/xlibi18n/lcWrap.c:269:16: warning[-Wanalyzer-malloc-leak]: leak of 'siname'
libX11-1.8.12/src/xlibi18n/lcWrap.c:460:1: enter_function: entry to 'XDefaultString'
libX11-1.8.12/src/xlibi18n/lcWrap.c:462:16: call_function: calling '_XlcCurrentLC' from 'XDefaultString'
#  267|                   return NULL;
#  268|           }
#  269|->         name = _XlcMapOSLocaleName(name, siname);
#  270|   #endif
#  271|       }

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-114.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-namelibX11-1.8.12-2.fc44
store-results-to/tmp/tmpl9a9j959/libX11-1.8.12-2.fc44.tar.xz
time-created2026-01-08 18:31:47
time-finished2026-01-08 18:35:41
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpl9a9j959/libX11-1.8.12-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpl9a9j959/libX11-1.8.12-2.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9