gobject-introspection-1.84.0-1.fc43

List of Findings

Error: CPPCHECK_WARNING (CWE-476): [#def1]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:166: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: marked_edge
#  164|   	cmph_uint32 tmp_edge;
#  165|   	cmph_uint8 * marked_edge =malloc((size_t)(nedges >> 3) + 1);
#  166|-> 	memset(marked_edge, 0, (size_t)(nedges >> 3) + 1);
#  167|   
#  168|   	for(i=0;i<nedges;i++){

Error: CPPCHECK_WARNING (CWE-476): [#def2]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:354: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  352|   	#endif
#  353|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  354|-> 	mphf->algo = mph->algo;
#  355|   	bdzf = (bdz_data_t *)malloc(sizeof(bdz_data_t));
#  356|   	bdzf->g = bdz->g;

Error: CPPCHECK_WARNING (CWE-476): [#def3]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:356: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdzf
#  354|   	mphf->algo = mph->algo;
#  355|   	bdzf = (bdz_data_t *)malloc(sizeof(bdz_data_t));
#  356|-> 	bdzf->g = bdz->g;
#  357|   	bdz->g = NULL; //transfer memory ownership
#  358|   	bdzf->hl = bdz->hl;

Error: CPPCHECK_WARNING (CWE-476): [#def4]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:358: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdzf
#  356|   	bdzf->g = bdz->g;
#  357|   	bdz->g = NULL; //transfer memory ownership
#  358|-> 	bdzf->hl = bdz->hl;
#  359|   	bdz->hl = NULL; //transfer memory ownership
#  360|   	bdzf->ranktable = bdz->ranktable;

Error: CPPCHECK_WARNING (CWE-476): [#def5]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:360: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdzf
#  358|   	bdzf->hl = bdz->hl;
#  359|   	bdz->hl = NULL; //transfer memory ownership
#  360|-> 	bdzf->ranktable = bdz->ranktable;
#  361|   	bdz->ranktable = NULL; //transfer memory ownership
#  362|   	bdzf->ranktablesize = bdz->ranktablesize;

Error: CPPCHECK_WARNING (CWE-476): [#def6]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:362: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdzf
#  360|   	bdzf->ranktable = bdz->ranktable;
#  361|   	bdz->ranktable = NULL; //transfer memory ownership
#  362|-> 	bdzf->ranktablesize = bdz->ranktablesize;
#  363|   	bdzf->k = bdz->k;
#  364|   	bdzf->b = bdz->b;

Error: CPPCHECK_WARNING (CWE-476): [#def7]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:363: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdzf
#  361|   	bdz->ranktable = NULL; //transfer memory ownership
#  362|   	bdzf->ranktablesize = bdz->ranktablesize;
#  363|-> 	bdzf->k = bdz->k;
#  364|   	bdzf->b = bdz->b;
#  365|   	bdzf->n = bdz->n;

Error: CPPCHECK_WARNING (CWE-476): [#def8]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:364: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdzf
#  362|   	bdzf->ranktablesize = bdz->ranktablesize;
#  363|   	bdzf->k = bdz->k;
#  364|-> 	bdzf->b = bdz->b;
#  365|   	bdzf->n = bdz->n;
#  366|   	bdzf->m = bdz->m;

Error: CPPCHECK_WARNING (CWE-476): [#def9]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:365: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdzf
#  363|   	bdzf->k = bdz->k;
#  364|   	bdzf->b = bdz->b;
#  365|-> 	bdzf->n = bdz->n;
#  366|   	bdzf->m = bdz->m;
#  367|   	bdzf->r = bdz->r;

Error: CPPCHECK_WARNING (CWE-476): [#def10]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:366: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdzf
#  364|   	bdzf->b = bdz->b;
#  365|   	bdzf->n = bdz->n;
#  366|-> 	bdzf->m = bdz->m;
#  367|   	bdzf->r = bdz->r;
#  368|   	mphf->data = bdzf;

Error: CPPCHECK_WARNING (CWE-476): [#def11]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:367: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdzf
#  365|   	bdzf->n = bdz->n;
#  366|   	bdzf->m = bdz->m;
#  367|-> 	bdzf->r = bdz->r;
#  368|   	mphf->data = bdzf;
#  369|   	mphf->size = bdz->m;

Error: CPPCHECK_WARNING (CWE-476): [#def12]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:368: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  366|   	bdzf->m = bdz->m;
#  367|   	bdzf->r = bdz->r;
#  368|-> 	mphf->data = bdzf;
#  369|   	mphf->size = bdz->m;
#  370|   

Error: CPPCHECK_WARNING (CWE-476): [#def13]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:369: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  367|   	bdzf->r = bdz->r;
#  368|   	mphf->data = bdzf;
#  369|-> 	mphf->size = bdz->m;
#  370|   
#  371|   	DEBUGP("Successfully generated minimal perfect hash\n");

Error: CPPCHECK_WARNING (CWE-476): [#def14]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:423: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: marked_vertices
#  421|           cmph_uint32 sizeg = (cmph_uint32)ceil(bdz->n/4.0);
#  422|   	bdz->g = (cmph_uint8 *)calloc((size_t)(sizeg), sizeof(cmph_uint8));	
#  423|-> 	memset(marked_vertices, 0, (size_t)(bdz->n >> 3) + 1);
#  424|   	memset(bdz->g, 0xff, (size_t)(sizeg));
#  425|   

Error: CPPCHECK_WARNING (CWE-476): [#def15]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:544: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  542|   	DEBUGP("Hash state has %u bytes\n", buflen);
#  543|   	buf = (char *)malloc((size_t)buflen);
#  544|-> 	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  545|   	bdz->hl = hash_state_load(buf, buflen);
#  546|   	free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def16]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:545: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz
#  543|   	buf = (char *)malloc((size_t)buflen);
#  544|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  545|-> 	bdz->hl = hash_state_load(buf, buflen);
#  546|   	free(buf);
#  547|   	

Error: CPPCHECK_WARNING (CWE-476): [#def17]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:553: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz
#  551|   	nbytes = fread(&(bdz->m), sizeof(cmph_uint32), (size_t)1, f);	
#  552|   	nbytes = fread(&(bdz->r), sizeof(cmph_uint32), (size_t)1, f);	
#  553|-> 	sizeg = (cmph_uint32)ceil(bdz->n/4.0);
#  554|   	bdz->g = (cmph_uint8 *)calloc((size_t)(sizeg), sizeof(cmph_uint8));
#  555|   	nbytes = fread(bdz->g, sizeg*sizeof(cmph_uint8), (size_t)1, f);

Error: CPPCHECK_WARNING (CWE-476): [#def18]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:554: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz
#  552|   	nbytes = fread(&(bdz->r), sizeof(cmph_uint32), (size_t)1, f);	
#  553|   	sizeg = (cmph_uint32)ceil(bdz->n/4.0);
#  554|-> 	bdz->g = (cmph_uint8 *)calloc((size_t)(sizeg), sizeof(cmph_uint8));
#  555|   	nbytes = fread(bdz->g, sizeg*sizeof(cmph_uint8), (size_t)1, f);
#  556|   

Error: CPPCHECK_WARNING (CWE-476): [#def19]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:555: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz
#  553|   	sizeg = (cmph_uint32)ceil(bdz->n/4.0);
#  554|   	bdz->g = (cmph_uint8 *)calloc((size_t)(sizeg), sizeof(cmph_uint8));
#  555|-> 	nbytes = fread(bdz->g, sizeg*sizeof(cmph_uint8), (size_t)1, f);
#  556|   
#  557|   	nbytes = fread(&(bdz->k), sizeof(cmph_uint32), (size_t)1, f);

Error: CPPCHECK_WARNING (CWE-476): [#def20]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:561: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz
#  559|   	nbytes = fread(&(bdz->ranktablesize), sizeof(cmph_uint32), (size_t)1, f);
#  560|   
#  561|-> 	bdz->ranktable = (cmph_uint32 *)calloc((size_t)bdz->ranktablesize, sizeof(cmph_uint32));
#  562|   	nbytes = fread(bdz->ranktable, sizeof(cmph_uint32)*(bdz->ranktablesize), (size_t)1, f);
#  563|   	if (nbytes == 0 && ferror(f)) {

Error: CPPCHECK_WARNING (CWE-476): [#def21]
gobject-introspection-1.84.0/girepository/cmph/bdz.c:562: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz
#  560|   
#  561|   	bdz->ranktable = (cmph_uint32 *)calloc((size_t)bdz->ranktablesize, sizeof(cmph_uint32));
#  562|-> 	nbytes = fread(bdz->ranktable, sizeof(cmph_uint32)*(bdz->ranktablesize), (size_t)1, f);
#  563|   	if (nbytes == 0 && ferror(f)) {
#  564|             fprintf(stderr, "ERROR: %s\n", strerror(errno));

Error: CPPCHECK_WARNING (CWE-476): [#def22]
gobject-introspection-1.84.0/girepository/cmph/bdz_ph.c:153: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: marked_edge
#  151|   	cmph_uint32 tmp_edge;
#  152|   	cmph_uint8 * marked_edge =malloc((size_t)(nedges >> 3) + 1);
#  153|-> 	memset(marked_edge, 0, (size_t)(nedges >> 3) + 1);
#  154|   
#  155|   	for(i=0;i<nedges;i++){

Error: CPPCHECK_WARNING (CWE-476): [#def23]
gobject-introspection-1.84.0/girepository/cmph/bdz_ph.c:324: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  322|   	#endif
#  323|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  324|-> 	mphf->algo = mph->algo;
#  325|   	bdz_phf = (bdz_ph_data_t *)malloc(sizeof(bdz_ph_data_t));
#  326|   	bdz_phf->g = bdz_ph->g;

Error: CPPCHECK_WARNING (CWE-476): [#def24]
gobject-introspection-1.84.0/girepository/cmph/bdz_ph.c:326: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz_phf
#  324|   	mphf->algo = mph->algo;
#  325|   	bdz_phf = (bdz_ph_data_t *)malloc(sizeof(bdz_ph_data_t));
#  326|-> 	bdz_phf->g = bdz_ph->g;
#  327|   	bdz_ph->g = NULL; //transfer memory ownership
#  328|   	bdz_phf->hl = bdz_ph->hl;

Error: CPPCHECK_WARNING (CWE-476): [#def25]
gobject-introspection-1.84.0/girepository/cmph/bdz_ph.c:328: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz_phf
#  326|   	bdz_phf->g = bdz_ph->g;
#  327|   	bdz_ph->g = NULL; //transfer memory ownership
#  328|-> 	bdz_phf->hl = bdz_ph->hl;
#  329|   	bdz_ph->hl = NULL; //transfer memory ownership
#  330|   	bdz_phf->n = bdz_ph->n;

Error: CPPCHECK_WARNING (CWE-476): [#def26]
gobject-introspection-1.84.0/girepository/cmph/bdz_ph.c:330: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz_phf
#  328|   	bdz_phf->hl = bdz_ph->hl;
#  329|   	bdz_ph->hl = NULL; //transfer memory ownership
#  330|-> 	bdz_phf->n = bdz_ph->n;
#  331|   	bdz_phf->m = bdz_ph->m;
#  332|   	bdz_phf->r = bdz_ph->r;

Error: CPPCHECK_WARNING (CWE-476): [#def27]
gobject-introspection-1.84.0/girepository/cmph/bdz_ph.c:331: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz_phf
#  329|   	bdz_ph->hl = NULL; //transfer memory ownership
#  330|   	bdz_phf->n = bdz_ph->n;
#  331|-> 	bdz_phf->m = bdz_ph->m;
#  332|   	bdz_phf->r = bdz_ph->r;
#  333|   	mphf->data = bdz_phf;

Error: CPPCHECK_WARNING (CWE-476): [#def28]
gobject-introspection-1.84.0/girepository/cmph/bdz_ph.c:332: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz_phf
#  330|   	bdz_phf->n = bdz_ph->n;
#  331|   	bdz_phf->m = bdz_ph->m;
#  332|-> 	bdz_phf->r = bdz_ph->r;
#  333|   	mphf->data = bdz_phf;
#  334|   	mphf->size = bdz_ph->n;

Error: CPPCHECK_WARNING (CWE-476): [#def29]
gobject-introspection-1.84.0/girepository/cmph/bdz_ph.c:333: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  331|   	bdz_phf->m = bdz_ph->m;
#  332|   	bdz_phf->r = bdz_ph->r;
#  333|-> 	mphf->data = bdz_phf;
#  334|   	mphf->size = bdz_ph->n;
#  335|   

Error: CPPCHECK_WARNING (CWE-476): [#def30]
gobject-introspection-1.84.0/girepository/cmph/bdz_ph.c:334: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  332|   	bdz_phf->r = bdz_ph->r;
#  333|   	mphf->data = bdz_phf;
#  334|-> 	mphf->size = bdz_ph->n;
#  335|   
#  336|   	DEBUGP("Successfully generated minimal perfect hash\n");

Error: CPPCHECK_WARNING (CWE-476): [#def31]
gobject-introspection-1.84.0/girepository/cmph/bdz_ph.c:388: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: marked_vertices
#  386|   	cmph_uint32 sizeg = (cmph_uint32)ceil(bdz_ph->n/4.0);
#  387|   	bdz_ph->g = (cmph_uint8 *)calloc((size_t)sizeg, sizeof(cmph_uint8));	
#  388|-> 	memset(marked_vertices, 0, (size_t)(bdz_ph->n >> 3) + 1);
#  389|   	//memset(bdz_ph->g, 0xff, sizeg);
#  390|   

Error: CPPCHECK_WARNING (CWE-476): [#def32]
gobject-introspection-1.84.0/girepository/cmph/bdz_ph.c:438: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_g
#  436|   	{	
#  437|               idx = i/5;
#  438|->             byte = new_g[idx];
#  439|               value = GETVALUE(bdz_ph->g, i);
#  440|               byte = (cmph_uint8) (byte + value*pow3_table[i%5U]);

Error: CPPCHECK_WARNING (CWE-476): [#def33]
gobject-introspection-1.84.0/girepository/cmph/bdz_ph.c:441: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_g
#  439|               value = GETVALUE(bdz_ph->g, i);
#  440|               byte = (cmph_uint8) (byte + value*pow3_table[i%5U]);
#  441|->             new_g[idx] = byte;
#  442|           }
#  443|   	free(bdz_ph->g);

Error: CPPCHECK_WARNING (CWE-476): [#def34]
gobject-introspection-1.84.0/girepository/cmph/bdz_ph.c:499: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  497|   	DEBUGP("Hash state has %u bytes\n", buflen);
#  498|   	buf = (char *)malloc((size_t)buflen);
#  499|-> 	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  500|   	bdz_ph->hl = hash_state_load(buf, buflen);
#  501|   	free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def35]
gobject-introspection-1.84.0/girepository/cmph/bdz_ph.c:500: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz_ph
#  498|   	buf = (char *)malloc((size_t)buflen);
#  499|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  500|-> 	bdz_ph->hl = hash_state_load(buf, buflen);
#  501|   	free(buf);
#  502|   	

Error: CPPCHECK_WARNING (CWE-476): [#def36]
gobject-introspection-1.84.0/girepository/cmph/bdz_ph.c:508: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz_ph
#  506|   	nbytes = fread(&(bdz_ph->m), sizeof(cmph_uint32), (size_t)1, f);	
#  507|   	nbytes = fread(&(bdz_ph->r), sizeof(cmph_uint32), (size_t)1, f);	
#  508|-> 	sizeg = (cmph_uint32)ceil(bdz_ph->n/5.0);
#  509|   	bdz_ph->g = (cmph_uint8 *)calloc((size_t)sizeg, sizeof(cmph_uint8));
#  510|   	nbytes = fread(bdz_ph->g, sizeg*sizeof(cmph_uint8), (size_t)1, f);

Error: CPPCHECK_WARNING (CWE-476): [#def37]
gobject-introspection-1.84.0/girepository/cmph/bdz_ph.c:509: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz_ph
#  507|   	nbytes = fread(&(bdz_ph->r), sizeof(cmph_uint32), (size_t)1, f);	
#  508|   	sizeg = (cmph_uint32)ceil(bdz_ph->n/5.0);
#  509|-> 	bdz_ph->g = (cmph_uint8 *)calloc((size_t)sizeg, sizeof(cmph_uint8));
#  510|   	nbytes = fread(bdz_ph->g, sizeg*sizeof(cmph_uint8), (size_t)1, f);
#  511|   

Error: CPPCHECK_WARNING (CWE-476): [#def38]
gobject-introspection-1.84.0/girepository/cmph/bdz_ph.c:510: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bdz_ph
#  508|   	sizeg = (cmph_uint32)ceil(bdz_ph->n/5.0);
#  509|   	bdz_ph->g = (cmph_uint8 *)calloc((size_t)sizeg, sizeof(cmph_uint8));
#  510|-> 	nbytes = fread(bdz_ph->g, sizeg*sizeof(cmph_uint8), (size_t)1, f);
#  511|   
#  512|   	if (nbytes == 0 && ferror(f)) {

Error: CPPCHECK_WARNING (CWE-476): [#def39]
gobject-introspection-1.84.0/girepository/cmph/bmz.c:136: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: visited
#  134|   	  DEBUGP("Searching step\n");
#  135|   	  visited = (cmph_uint8 *)malloc((size_t)bmz->n/8 + 1);
#  136|-> 	  memset(visited, 0, (size_t)bmz->n/8 + 1);
#  137|   	  used_edges = (cmph_uint8 *)malloc((size_t)bmz->m/8 + 1);
#  138|   	  memset(used_edges, 0, (size_t)bmz->m/8 + 1);

Error: CPPCHECK_WARNING (CWE-476): [#def40]
gobject-introspection-1.84.0/girepository/cmph/bmz.c:138: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: used_edges
#  136|   	  memset(visited, 0, (size_t)bmz->n/8 + 1);
#  137|   	  used_edges = (cmph_uint8 *)malloc((size_t)bmz->m/8 + 1);
#  138|-> 	  memset(used_edges, 0, (size_t)bmz->m/8 + 1);
#  139|   	  free(bmz->g);
#  140|   	  bmz->g = (cmph_uint32 *)calloc((size_t)bmz->n, sizeof(cmph_uint32));

Error: CPPCHECK_WARNING (CWE-476): [#def41]
gobject-introspection-1.84.0/girepository/cmph/bmz.c:174: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  172|   	}
#  173|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  174|-> 	mphf->algo = mph->algo;
#  175|   	bmzf = (bmz_data_t *)malloc(sizeof(bmz_data_t));
#  176|   	bmzf->g = bmz->g;

Error: CPPCHECK_WARNING (CWE-476): [#def42]
gobject-introspection-1.84.0/girepository/cmph/bmz.c:176: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmzf
#  174|   	mphf->algo = mph->algo;
#  175|   	bmzf = (bmz_data_t *)malloc(sizeof(bmz_data_t));
#  176|-> 	bmzf->g = bmz->g;
#  177|   	bmz->g = NULL; //transfer memory ownership
#  178|   	bmzf->hashes = bmz->hashes;

Error: CPPCHECK_WARNING (CWE-476): [#def43]
gobject-introspection-1.84.0/girepository/cmph/bmz.c:178: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmzf
#  176|   	bmzf->g = bmz->g;
#  177|   	bmz->g = NULL; //transfer memory ownership
#  178|-> 	bmzf->hashes = bmz->hashes;
#  179|   	bmz->hashes = NULL; //transfer memory ownership
#  180|   	bmzf->n = bmz->n;

Error: CPPCHECK_WARNING (CWE-476): [#def44]
gobject-introspection-1.84.0/girepository/cmph/bmz.c:180: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmzf
#  178|   	bmzf->hashes = bmz->hashes;
#  179|   	bmz->hashes = NULL; //transfer memory ownership
#  180|-> 	bmzf->n = bmz->n;
#  181|   	bmzf->m = bmz->m;
#  182|   	mphf->data = bmzf;

Error: CPPCHECK_WARNING (CWE-476): [#def45]
gobject-introspection-1.84.0/girepository/cmph/bmz.c:181: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmzf
#  179|   	bmz->hashes = NULL; //transfer memory ownership
#  180|   	bmzf->n = bmz->n;
#  181|-> 	bmzf->m = bmz->m;
#  182|   	mphf->data = bmzf;
#  183|   	mphf->size = bmz->m;

Error: CPPCHECK_WARNING (CWE-476): [#def46]
gobject-introspection-1.84.0/girepository/cmph/bmz.c:182: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  180|   	bmzf->n = bmz->n;
#  181|   	bmzf->m = bmz->m;
#  182|-> 	mphf->data = bmzf;
#  183|   	mphf->size = bmz->m;
#  184|   

Error: CPPCHECK_WARNING (CWE-476): [#def47]
gobject-introspection-1.84.0/girepository/cmph/bmz.c:183: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  181|   	bmzf->m = bmz->m;
#  182|   	mphf->data = bmzf;
#  183|-> 	mphf->size = bmz->m;
#  184|   
#  185|   	DEBUGP("Successfully generated minimal perfect hash\n");

Error: CPPCHECK_WARNING (CWE-401): [#def48]
gobject-introspection-1.84.0/girepository/cmph/bmz.c:321: error[memleakOnRealloc]: Common realloc mistake: 'unused_g_values' nulled but not freed upon failure
#  319|   					        if(nunused_g_values == unused_g_values_capacity)
#  320|   						{
#  321|->    						        unused_g_values = (cmph_uint32 *)realloc(unused_g_values, (unused_g_values_capacity + BUFSIZ)*sizeof(cmph_uint32));
#  322|   						        unused_g_values_capacity += BUFSIZ;  							
#  323|   						} 

Error: CPPCHECK_WARNING (CWE-476): [#def49]
gobject-introspection-1.84.0/girepository/cmph/bmz.c:500: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz
#  498|   	mphf->data = bmz;
#  499|   	nbytes = fread(&nhashes, sizeof(cmph_uint32), (size_t)1, f);
#  500|-> 	bmz->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(nhashes + 1));
#  501|   	bmz->hashes[nhashes] = NULL;
#  502|   	DEBUGP("Reading %u hashes\n", nhashes);

Error: CPPCHECK_WARNING (CWE-476): [#def50]
gobject-introspection-1.84.0/girepository/cmph/bmz.c:501: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz
#  499|   	nbytes = fread(&nhashes, sizeof(cmph_uint32), (size_t)1, f);
#  500|   	bmz->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(nhashes + 1));
#  501|-> 	bmz->hashes[nhashes] = NULL;
#  502|   	DEBUGP("Reading %u hashes\n", nhashes);
#  503|   	for (i = 0; i < nhashes; ++i)

Error: CPPCHECK_WARNING (CWE-476): [#def51]
gobject-introspection-1.84.0/girepository/cmph/bmz.c:509: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  507|   		DEBUGP("Hash state has %u bytes\n", buflen);
#  508|   		buf = (char *)malloc((size_t)buflen);
#  509|-> 		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  510|   		state = hash_state_load(buf, buflen);
#  511|   		bmz->hashes[i] = state;

Error: CPPCHECK_WARNING (CWE-476): [#def52]
gobject-introspection-1.84.0/girepository/cmph/bmz.c:511: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz
#  509|   		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  510|   		state = hash_state_load(buf, buflen);
#  511|-> 		bmz->hashes[i] = state;
#  512|   		free(buf);
#  513|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def53]
gobject-introspection-1.84.0/girepository/cmph/bmz.c:519: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz
#  517|   	nbytes = fread(&(bmz->m), sizeof(cmph_uint32), (size_t)1, f);	
#  518|   
#  519|-> 	bmz->g = (cmph_uint32 *)malloc(sizeof(cmph_uint32)*bmz->n);
#  520|   	nbytes = fread(bmz->g, bmz->n*sizeof(cmph_uint32), (size_t)1, f);
#  521|   	if (nbytes == 0 && ferror(f)) {

Error: CPPCHECK_WARNING (CWE-476): [#def54]
gobject-introspection-1.84.0/girepository/cmph/bmz.c:520: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz
#  518|   
#  519|   	bmz->g = (cmph_uint32 *)malloc(sizeof(cmph_uint32)*bmz->n);
#  520|-> 	nbytes = fread(bmz->g, bmz->n*sizeof(cmph_uint32), (size_t)1, f);
#  521|   	if (nbytes == 0 && ferror(f)) {
#  522|             fprintf(stderr, "ERROR: %s\n", strerror(errno));

Error: CPPCHECK_WARNING (CWE-476): [#def55]
gobject-introspection-1.84.0/girepository/cmph/bmz8.c:142: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: visited
#  140|   	  DEBUGP("Searching step\n");
#  141|   	  visited = (cmph_uint8 *)malloc((size_t)bmz8->n/8 + 1);
#  142|-> 	  memset(visited, 0, (size_t)bmz8->n/8 + 1);
#  143|   	  used_edges = (cmph_uint8 *)malloc((size_t)bmz8->m/8 + 1);
#  144|   	  memset(used_edges, 0, (size_t)bmz8->m/8 + 1);

Error: CPPCHECK_WARNING (CWE-476): [#def56]
gobject-introspection-1.84.0/girepository/cmph/bmz8.c:144: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: used_edges
#  142|   	  memset(visited, 0, (size_t)bmz8->n/8 + 1);
#  143|   	  used_edges = (cmph_uint8 *)malloc((size_t)bmz8->m/8 + 1);
#  144|-> 	  memset(used_edges, 0, (size_t)bmz8->m/8 + 1);
#  145|   	  free(bmz8->g);
#  146|   	  bmz8->g = (cmph_uint8 *)calloc((size_t)bmz8->n, sizeof(cmph_uint8));

Error: CPPCHECK_WARNING (CWE-476): [#def57]
gobject-introspection-1.84.0/girepository/cmph/bmz8.c:182: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  180|   	}
#  181|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  182|-> 	mphf->algo = mph->algo;
#  183|   	bmz8f = (bmz8_data_t *)malloc(sizeof(bmz8_data_t));
#  184|   	bmz8f->g = bmz8->g;

Error: CPPCHECK_WARNING (CWE-476): [#def58]
gobject-introspection-1.84.0/girepository/cmph/bmz8.c:184: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz8f
#  182|   	mphf->algo = mph->algo;
#  183|   	bmz8f = (bmz8_data_t *)malloc(sizeof(bmz8_data_t));
#  184|-> 	bmz8f->g = bmz8->g;
#  185|   	bmz8->g = NULL; //transfer memory ownership
#  186|   	bmz8f->hashes = bmz8->hashes;

Error: CPPCHECK_WARNING (CWE-476): [#def59]
gobject-introspection-1.84.0/girepository/cmph/bmz8.c:186: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz8f
#  184|   	bmz8f->g = bmz8->g;
#  185|   	bmz8->g = NULL; //transfer memory ownership
#  186|-> 	bmz8f->hashes = bmz8->hashes;
#  187|   	bmz8->hashes = NULL; //transfer memory ownership
#  188|   	bmz8f->n = bmz8->n;

Error: CPPCHECK_WARNING (CWE-476): [#def60]
gobject-introspection-1.84.0/girepository/cmph/bmz8.c:188: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz8f
#  186|   	bmz8f->hashes = bmz8->hashes;
#  187|   	bmz8->hashes = NULL; //transfer memory ownership
#  188|-> 	bmz8f->n = bmz8->n;
#  189|   	bmz8f->m = bmz8->m;
#  190|   	mphf->data = bmz8f;

Error: CPPCHECK_WARNING (CWE-476): [#def61]
gobject-introspection-1.84.0/girepository/cmph/bmz8.c:189: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz8f
#  187|   	bmz8->hashes = NULL; //transfer memory ownership
#  188|   	bmz8f->n = bmz8->n;
#  189|-> 	bmz8f->m = bmz8->m;
#  190|   	mphf->data = bmz8f;
#  191|   	mphf->size = bmz8->m;

Error: CPPCHECK_WARNING (CWE-476): [#def62]
gobject-introspection-1.84.0/girepository/cmph/bmz8.c:190: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  188|   	bmz8f->n = bmz8->n;
#  189|   	bmz8f->m = bmz8->m;
#  190|-> 	mphf->data = bmz8f;
#  191|   	mphf->size = bmz8->m;
#  192|   	DEBUGP("Successfully generated minimal perfect hash\n");

Error: CPPCHECK_WARNING (CWE-476): [#def63]
gobject-introspection-1.84.0/girepository/cmph/bmz8.c:191: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  189|   	bmz8f->m = bmz8->m;
#  190|   	mphf->data = bmz8f;
#  191|-> 	mphf->size = bmz8->m;
#  192|   	DEBUGP("Successfully generated minimal perfect hash\n");
#  193|   	if (mph->verbosity)

Error: CPPCHECK_WARNING (CWE-401): [#def64]
gobject-introspection-1.84.0/girepository/cmph/bmz8.c:330: error[memleakOnRealloc]: Common realloc mistake: 'unused_g_values' nulled but not freed upon failure
#  328|   					        if(nunused_g_values == unused_g_values_capacity)
#  329|   						{
#  330|-> 							unused_g_values = (cmph_uint8*)realloc(unused_g_values, ((size_t)(unused_g_values_capacity + BUFSIZ))*sizeof(cmph_uint8));
#  331|   						        unused_g_values_capacity += (cmph_uint8)BUFSIZ;  							
#  332|   						} 

Error: CPPCHECK_WARNING (CWE-476): [#def65]
gobject-introspection-1.84.0/girepository/cmph/bmz8.c:510: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz8
#  508|   	mphf->data = bmz8;
#  509|   	nbytes = fread(&nhashes, sizeof(cmph_uint8), (size_t)1, f);
#  510|-> 	bmz8->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(size_t)(nhashes + 1));
#  511|   	bmz8->hashes[nhashes] = NULL;
#  512|   	DEBUGP("Reading %u hashes\n", nhashes);

Error: CPPCHECK_WARNING (CWE-476): [#def66]
gobject-introspection-1.84.0/girepository/cmph/bmz8.c:511: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz8
#  509|   	nbytes = fread(&nhashes, sizeof(cmph_uint8), (size_t)1, f);
#  510|   	bmz8->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(size_t)(nhashes + 1));
#  511|-> 	bmz8->hashes[nhashes] = NULL;
#  512|   	DEBUGP("Reading %u hashes\n", nhashes);
#  513|   	for (i = 0; i < nhashes; ++i)

Error: CPPCHECK_WARNING (CWE-476): [#def67]
gobject-introspection-1.84.0/girepository/cmph/bmz8.c:519: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  517|   		DEBUGP("Hash state has %u bytes\n", buflen);
#  518|   		buf = (char *)malloc((size_t)buflen);
#  519|-> 		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  520|   		state = hash_state_load(buf, buflen);
#  521|   		bmz8->hashes[i] = state;

Error: CPPCHECK_WARNING (CWE-476): [#def68]
gobject-introspection-1.84.0/girepository/cmph/bmz8.c:521: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz8
#  519|   		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  520|   		state = hash_state_load(buf, buflen);
#  521|-> 		bmz8->hashes[i] = state;
#  522|   		free(buf);
#  523|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def69]
gobject-introspection-1.84.0/girepository/cmph/bmz8.c:529: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz8
#  527|   	nbytes = fread(&(bmz8->m), sizeof(cmph_uint8), (size_t)1, f);	
#  528|   
#  529|-> 	bmz8->g = (cmph_uint8 *)malloc(sizeof(cmph_uint8)*bmz8->n);
#  530|   	nbytes = fread(bmz8->g, bmz8->n*sizeof(cmph_uint8), (size_t)1, f);
#  531|   	if (nbytes == 0 && ferror(f)) {

Error: CPPCHECK_WARNING (CWE-476): [#def70]
gobject-introspection-1.84.0/girepository/cmph/bmz8.c:530: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: bmz8
#  528|   
#  529|   	bmz8->g = (cmph_uint8 *)malloc(sizeof(cmph_uint8)*bmz8->n);
#  530|-> 	nbytes = fread(bmz8->g, bmz8->n*sizeof(cmph_uint8), (size_t)1, f);
#  531|   	if (nbytes == 0 && ferror(f)) {
#  532|             fprintf(stderr, "ERROR: %s\n", strerror(errno));

Error: CPPCHECK_WARNING (CWE-476): [#def71]
gobject-introspection-1.84.0/girepository/cmph/brz.c:36: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   34|   	brz_config_data_t *brz = NULL; 	
#   35|   	brz = (brz_config_data_t *)malloc(sizeof(brz_config_data_t));
#   36|-> 	brz->algo = CMPH_FCH;
#   37|   	brz->b = 128;
#   38|   	brz->hashfuncs[0] = CMPH_HASH_JENKINS;

Error: CPPCHECK_WARNING (CWE-476): [#def72]
gobject-introspection-1.84.0/girepository/cmph/brz.c:37: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   35|   	brz = (brz_config_data_t *)malloc(sizeof(brz_config_data_t));
#   36|   	brz->algo = CMPH_FCH;
#   37|-> 	brz->b = 128;
#   38|   	brz->hashfuncs[0] = CMPH_HASH_JENKINS;
#   39|   	brz->hashfuncs[1] = CMPH_HASH_JENKINS;

Error: CPPCHECK_WARNING (CWE-476): [#def73]
gobject-introspection-1.84.0/girepository/cmph/brz.c:38: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   36|   	brz->algo = CMPH_FCH;
#   37|   	brz->b = 128;
#   38|-> 	brz->hashfuncs[0] = CMPH_HASH_JENKINS;
#   39|   	brz->hashfuncs[1] = CMPH_HASH_JENKINS;
#   40|   	brz->hashfuncs[2] = CMPH_HASH_JENKINS;

Error: CPPCHECK_WARNING (CWE-476): [#def74]
gobject-introspection-1.84.0/girepository/cmph/brz.c:39: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   37|   	brz->b = 128;
#   38|   	brz->hashfuncs[0] = CMPH_HASH_JENKINS;
#   39|-> 	brz->hashfuncs[1] = CMPH_HASH_JENKINS;
#   40|   	brz->hashfuncs[2] = CMPH_HASH_JENKINS;
#   41|   	brz->size   = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def75]
gobject-introspection-1.84.0/girepository/cmph/brz.c:40: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   38|   	brz->hashfuncs[0] = CMPH_HASH_JENKINS;
#   39|   	brz->hashfuncs[1] = CMPH_HASH_JENKINS;
#   40|-> 	brz->hashfuncs[2] = CMPH_HASH_JENKINS;
#   41|   	brz->size   = NULL;
#   42|   	brz->offset = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def76]
gobject-introspection-1.84.0/girepository/cmph/brz.c:41: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   39|   	brz->hashfuncs[1] = CMPH_HASH_JENKINS;
#   40|   	brz->hashfuncs[2] = CMPH_HASH_JENKINS;
#   41|-> 	brz->size   = NULL;
#   42|   	brz->offset = NULL;
#   43|   	brz->g      = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def77]
gobject-introspection-1.84.0/girepository/cmph/brz.c:42: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   40|   	brz->hashfuncs[2] = CMPH_HASH_JENKINS;
#   41|   	brz->size   = NULL;
#   42|-> 	brz->offset = NULL;
#   43|   	brz->g      = NULL;
#   44|   	brz->h1 = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def78]
gobject-introspection-1.84.0/girepository/cmph/brz.c:43: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   41|   	brz->size   = NULL;
#   42|   	brz->offset = NULL;
#   43|-> 	brz->g      = NULL;
#   44|   	brz->h1 = NULL;
#   45|   	brz->h2 = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def79]
gobject-introspection-1.84.0/girepository/cmph/brz.c:44: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   42|   	brz->offset = NULL;
#   43|   	brz->g      = NULL;
#   44|-> 	brz->h1 = NULL;
#   45|   	brz->h2 = NULL;
#   46|   	brz->h0 = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def80]
gobject-introspection-1.84.0/girepository/cmph/brz.c:45: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   43|   	brz->g      = NULL;
#   44|   	brz->h1 = NULL;
#   45|-> 	brz->h2 = NULL;
#   46|   	brz->h0 = NULL;
#   47|   	brz->memory_availability = 1024*1024;

Error: CPPCHECK_WARNING (CWE-476): [#def81]
gobject-introspection-1.84.0/girepository/cmph/brz.c:46: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   44|   	brz->h1 = NULL;
#   45|   	brz->h2 = NULL;
#   46|-> 	brz->h0 = NULL;
#   47|   	brz->memory_availability = 1024*1024;
#   48|   	brz->tmp_dir = (cmph_uint8 *)calloc((size_t)10, sizeof(cmph_uint8));

Error: CPPCHECK_WARNING (CWE-476): [#def82]
gobject-introspection-1.84.0/girepository/cmph/brz.c:47: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   45|   	brz->h2 = NULL;
#   46|   	brz->h0 = NULL;
#   47|-> 	brz->memory_availability = 1024*1024;
#   48|   	brz->tmp_dir = (cmph_uint8 *)calloc((size_t)10, sizeof(cmph_uint8));
#   49|   	brz->mphf_fd = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def83]
gobject-introspection-1.84.0/girepository/cmph/brz.c:48: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   46|   	brz->h0 = NULL;
#   47|   	brz->memory_availability = 1024*1024;
#   48|-> 	brz->tmp_dir = (cmph_uint8 *)calloc((size_t)10, sizeof(cmph_uint8));
#   49|   	brz->mphf_fd = NULL;
#   50|   	strcpy((char *)(brz->tmp_dir), "/var/tmp/"); 

Error: CPPCHECK_WARNING (CWE-476): [#def84]
gobject-introspection-1.84.0/girepository/cmph/brz.c:49: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   47|   	brz->memory_availability = 1024*1024;
#   48|   	brz->tmp_dir = (cmph_uint8 *)calloc((size_t)10, sizeof(cmph_uint8));
#   49|-> 	brz->mphf_fd = NULL;
#   50|   	strcpy((char *)(brz->tmp_dir), "/var/tmp/"); 
#   51|   	assert(brz);

Error: CPPCHECK_WARNING (CWE-476): [#def85]
gobject-introspection-1.84.0/girepository/cmph/brz.c:50: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#   48|   	brz->tmp_dir = (cmph_uint8 *)calloc((size_t)10, sizeof(cmph_uint8));
#   49|   	brz->mphf_fd = NULL;
#   50|-> 	strcpy((char *)(brz->tmp_dir), "/var/tmp/"); 
#   51|   	assert(brz);
#   52|   	return brz;

Error: CPPCHECK_WARNING (CWE-476): [#def86]
gobject-introspection-1.84.0/girepository/cmph/brz.c:199: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  197|   	// Generating a mphf
#  198|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  199|-> 	mphf->algo = mph->algo;
#  200|   	brzf = (brz_data_t *)malloc(sizeof(brz_data_t));
#  201|   	brzf->g = brz->g;

Error: CPPCHECK_WARNING (CWE-476): [#def87]
gobject-introspection-1.84.0/girepository/cmph/brz.c:201: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  199|   	mphf->algo = mph->algo;
#  200|   	brzf = (brz_data_t *)malloc(sizeof(brz_data_t));
#  201|-> 	brzf->g = brz->g;
#  202|   	brz->g = NULL; //transfer memory ownership
#  203|   	brzf->h1 = brz->h1;

Error: CPPCHECK_WARNING (CWE-476): [#def88]
gobject-introspection-1.84.0/girepository/cmph/brz.c:203: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  201|   	brzf->g = brz->g;
#  202|   	brz->g = NULL; //transfer memory ownership
#  203|-> 	brzf->h1 = brz->h1;
#  204|   	brz->h1 = NULL; //transfer memory ownership
#  205|   	brzf->h2 = brz->h2;

Error: CPPCHECK_WARNING (CWE-476): [#def89]
gobject-introspection-1.84.0/girepository/cmph/brz.c:205: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  203|   	brzf->h1 = brz->h1;
#  204|   	brz->h1 = NULL; //transfer memory ownership
#  205|-> 	brzf->h2 = brz->h2;
#  206|   	brz->h2 = NULL; //transfer memory ownership
#  207|   	brzf->h0 = brz->h0;

Error: CPPCHECK_WARNING (CWE-476): [#def90]
gobject-introspection-1.84.0/girepository/cmph/brz.c:207: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  205|   	brzf->h2 = brz->h2;
#  206|   	brz->h2 = NULL; //transfer memory ownership
#  207|-> 	brzf->h0 = brz->h0;
#  208|   	brz->h0 = NULL; //transfer memory ownership
#  209|   	brzf->size = brz->size;

Error: CPPCHECK_WARNING (CWE-476): [#def91]
gobject-introspection-1.84.0/girepository/cmph/brz.c:209: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  207|   	brzf->h0 = brz->h0;
#  208|   	brz->h0 = NULL; //transfer memory ownership
#  209|-> 	brzf->size = brz->size;
#  210|   	brz->size = NULL; //transfer memory ownership
#  211|   	brzf->offset = brz->offset;

Error: CPPCHECK_WARNING (CWE-476): [#def92]
gobject-introspection-1.84.0/girepository/cmph/brz.c:211: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  209|   	brzf->size = brz->size;
#  210|   	brz->size = NULL; //transfer memory ownership
#  211|-> 	brzf->offset = brz->offset;
#  212|   	brz->offset = NULL; //transfer memory ownership
#  213|   	brzf->k = brz->k;

Error: CPPCHECK_WARNING (CWE-476): [#def93]
gobject-introspection-1.84.0/girepository/cmph/brz.c:213: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  211|   	brzf->offset = brz->offset;
#  212|   	brz->offset = NULL; //transfer memory ownership
#  213|-> 	brzf->k = brz->k;
#  214|   	brzf->c = brz->c;
#  215|   	brzf->m = brz->m;

Error: CPPCHECK_WARNING (CWE-476): [#def94]
gobject-introspection-1.84.0/girepository/cmph/brz.c:214: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  212|   	brz->offset = NULL; //transfer memory ownership
#  213|   	brzf->k = brz->k;
#  214|-> 	brzf->c = brz->c;
#  215|   	brzf->m = brz->m;
#  216|   	brzf->algo = brz->algo;

Error: CPPCHECK_WARNING (CWE-476): [#def95]
gobject-introspection-1.84.0/girepository/cmph/brz.c:215: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  213|   	brzf->k = brz->k;
#  214|   	brzf->c = brz->c;
#  215|-> 	brzf->m = brz->m;
#  216|   	brzf->algo = brz->algo;
#  217|   	mphf->data = brzf;

Error: CPPCHECK_WARNING (CWE-476): [#def96]
gobject-introspection-1.84.0/girepository/cmph/brz.c:216: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brzf
#  214|   	brzf->c = brz->c;
#  215|   	brzf->m = brz->m;
#  216|-> 	brzf->algo = brz->algo;
#  217|   	mphf->data = brzf;
#  218|   	mphf->size = brz->m;	

Error: CPPCHECK_WARNING (CWE-476): [#def97]
gobject-introspection-1.84.0/girepository/cmph/brz.c:217: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  215|   	brzf->m = brz->m;
#  216|   	brzf->algo = brz->algo;
#  217|-> 	mphf->data = brzf;
#  218|   	mphf->size = brz->m;	
#  219|   	DEBUGP("Successfully generated minimal perfect hash\n");

Error: CPPCHECK_WARNING (CWE-476): [#def98]
gobject-introspection-1.84.0/girepository/cmph/brz.c:218: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  216|   	brzf->algo = brz->algo;
#  217|   	mphf->data = brzf;
#  218|-> 	mphf->size = brz->m;	
#  219|   	DEBUGP("Successfully generated minimal perfect hash\n");
#  220|   	if (mph->verbosity)

Error: CPPCHECK_WARNING (CWE-476): [#def99]
gobject-introspection-1.84.0/girepository/cmph/brz.c:283: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: keys_index
#  281|   				memcpy(&keylen1, buffer + memory_usage, sizeof(keylen1));
#  282|   				h0 = hash(brz->h0, (char *)(buffer + memory_usage + sizeof(keylen1)), keylen1) % brz->k;
#  283|-> 				keys_index[buckets_size[h0]] = memory_usage;
#  284|   				buckets_size[h0]++;
#  285|   				memory_usage +=  keylen1 + (cmph_uint32)sizeof(keylen1);

Error: CPPCHECK_WARNING (CWE-476): [#def100]
gobject-introspection-1.84.0/girepository/cmph/brz.c:294: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: keys_index
#  292|   			for(i = 0; i < nkeys_in_buffer; i++)
#  293|   			{
#  294|-> 				memcpy(&keylen1, buffer + keys_index[i], sizeof(keylen1));
#  295|   				nbytes = fwrite(buffer + keys_index[i], (size_t)1, keylen1 + sizeof(keylen1), tmp_fd);
#  296|   			}

Error: CPPCHECK_WARNING (CWE-476): [#def101]
gobject-introspection-1.84.0/girepository/cmph/brz.c:295: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: keys_index
#  293|   			{
#  294|   				memcpy(&keylen1, buffer + keys_index[i], sizeof(keylen1));
#  295|-> 				nbytes = fwrite(buffer + keys_index[i], (size_t)1, keylen1 + sizeof(keylen1), tmp_fd);
#  296|   			}
#  297|   			nkeys_in_buffer = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def102]
gobject-introspection-1.84.0/girepository/cmph/brz.c:295: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: tmp_fd
#  293|   			{
#  294|   				memcpy(&keylen1, buffer + keys_index[i], sizeof(keylen1));
#  295|-> 				nbytes = fwrite(buffer + keys_index[i], (size_t)1, keylen1 + sizeof(keylen1), tmp_fd);
#  296|   			}
#  297|   			nkeys_in_buffer = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def103]
gobject-introspection-1.84.0/girepository/cmph/brz.c:302: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: tmp_fd
#  300|   			nflushes++;
#  301|   			free(keys_index);
#  302|-> 			fclose(tmp_fd);
#  303|   		}
#  304|   		memcpy(buffer + memory_usage, &keylen, sizeof(keylen));

Error: CPPCHECK_WARNING (CWE-476): [#def104]
gobject-introspection-1.84.0/girepository/cmph/brz.c:345: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: keys_index
#  343|   			memcpy(&keylen1, buffer + memory_usage, sizeof(keylen1));
#  344|   			h0 = hash(brz->h0, (char *)(buffer + memory_usage + sizeof(keylen1)), keylen1) % brz->k;
#  345|-> 			keys_index[buckets_size[h0]] = memory_usage;
#  346|   			buckets_size[h0]++;
#  347|   			memory_usage +=  keylen1 + (cmph_uint32)sizeof(keylen1);

Error: CPPCHECK_WARNING (CWE-476): [#def105]
gobject-introspection-1.84.0/girepository/cmph/brz.c:356: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: keys_index
#  354|   		for(i = 0; i < nkeys_in_buffer; i++)
#  355|   		{
#  356|-> 			memcpy(&keylen1, buffer + keys_index[i], sizeof(keylen1));
#  357|   			nbytes = fwrite(buffer + keys_index[i], (size_t)1, keylen1 + sizeof(keylen1), tmp_fd);
#  358|   		}

Error: CPPCHECK_WARNING (CWE-476): [#def106]
gobject-introspection-1.84.0/girepository/cmph/brz.c:357: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: keys_index
#  355|   		{
#  356|   			memcpy(&keylen1, buffer + keys_index[i], sizeof(keylen1));
#  357|-> 			nbytes = fwrite(buffer + keys_index[i], (size_t)1, keylen1 + sizeof(keylen1), tmp_fd);
#  358|   		}
#  359|   		nkeys_in_buffer = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def107]
gobject-introspection-1.84.0/girepository/cmph/brz.c:357: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: tmp_fd
#  355|   		{
#  356|   			memcpy(&keylen1, buffer + keys_index[i], sizeof(keylen1));
#  357|-> 			nbytes = fwrite(buffer + keys_index[i], (size_t)1, keylen1 + sizeof(keylen1), tmp_fd);
#  358|   		}
#  359|   		nkeys_in_buffer = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def108]
gobject-introspection-1.84.0/girepository/cmph/brz.c:364: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: tmp_fd
#  362|   		nflushes++;
#  363|   		free(keys_index);
#  364|-> 		fclose(tmp_fd);
#  365|   	}
#  366|   

Error: CPPCHECK_WARNING (CWE-476): [#def109]
gobject-introspection-1.84.0/girepository/cmph/brz.c:402: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer_h0
#  400|   		key = (char *)buffer_manager_read_key(buff_manager, i, &keylen);
#  401|   		h0 = hash(brz->h0, key+sizeof(keylen), keylen) % brz->k;
#  402|-> 		buffer_h0[i] = h0;
#  403|                   buffer_merge[i] = (cmph_uint8 *)key;
#  404|                   key = NULL; //transfer memory ownership                 

Error: CPPCHECK_WARNING (CWE-476): [#def110]
gobject-introspection-1.84.0/girepository/cmph/brz.c:403: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer_merge
#  401|   		h0 = hash(brz->h0, key+sizeof(keylen), keylen) % brz->k;
#  402|   		buffer_h0[i] = h0;
#  403|->                 buffer_merge[i] = (cmph_uint8 *)key;
#  404|                   key = NULL; //transfer memory ownership                 
#  405|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def111]
gobject-introspection-1.84.0/girepository/cmph/brz.c:413: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer_h0
#  411|   	{
#  412|   		i = brz_min_index(buffer_h0, nflushes);
#  413|-> 		cur_bucket = buffer_h0[i];
#  414|   		key = (char *)buffer_manager_read_key(buff_manager, i, &keylen);
#  415|   		if(key)

Error: CPPCHECK_WARNING (CWE-476): [#def112]
gobject-introspection-1.84.0/girepository/cmph/brz.c:517: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vector
#  515|   	for(i = 1; i < n; i++)
#  516|   	{
#  517|-> 		if(vector[i] < vector[min_index]) min_index = i;
#  518|   	}
#  519|   	return min_index;

Error: CPPCHECK_WARNING (CWE-476): [#def113]
gobject-introspection-1.84.0/girepository/cmph/brz.c:541: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  539|   	*buflen = buflenh1 + buflenh2 + n + 2U * (cmph_uint32)sizeof(cmph_uint32);
#  540|   	buf = (char *)malloc((size_t)(*buflen));
#  541|-> 	memcpy(buf, &buflenh1, sizeof(cmph_uint32));
#  542|   	memcpy(buf+sizeof(cmph_uint32), bufh1, (size_t)buflenh1);
#  543|   	memcpy(buf+sizeof(cmph_uint32)+buflenh1, &buflenh2, sizeof(cmph_uint32));

Error: CPPCHECK_WARNING (CWE-682): [#def114]
gobject-introspection-1.84.0/girepository/cmph/brz.c:542: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  540|   	buf = (char *)malloc((size_t)(*buflen));
#  541|   	memcpy(buf, &buflenh1, sizeof(cmph_uint32));
#  542|-> 	memcpy(buf+sizeof(cmph_uint32), bufh1, (size_t)buflenh1);
#  543|   	memcpy(buf+sizeof(cmph_uint32)+buflenh1, &buflenh2, sizeof(cmph_uint32));
#  544|   	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1, bufh2, (size_t)buflenh2);	

Error: CPPCHECK_WARNING (CWE-682): [#def115]
gobject-introspection-1.84.0/girepository/cmph/brz.c:543: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  541|   	memcpy(buf, &buflenh1, sizeof(cmph_uint32));
#  542|   	memcpy(buf+sizeof(cmph_uint32), bufh1, (size_t)buflenh1);
#  543|-> 	memcpy(buf+sizeof(cmph_uint32)+buflenh1, &buflenh2, sizeof(cmph_uint32));
#  544|   	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1, bufh2, (size_t)buflenh2);	
#  545|   	for (i = 0; i < n; i++) memcpy(buf+2*sizeof(cmph_uint32)+buflenh1+buflenh2+i,(fchf->g + i), (size_t)1);

Error: CPPCHECK_WARNING (CWE-682): [#def116]
gobject-introspection-1.84.0/girepository/cmph/brz.c:544: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  542|   	memcpy(buf+sizeof(cmph_uint32), bufh1, (size_t)buflenh1);
#  543|   	memcpy(buf+sizeof(cmph_uint32)+buflenh1, &buflenh2, sizeof(cmph_uint32));
#  544|-> 	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1, bufh2, (size_t)buflenh2);	
#  545|   	for (i = 0; i < n; i++) memcpy(buf+2*sizeof(cmph_uint32)+buflenh1+buflenh2+i,(fchf->g + i), (size_t)1);
#  546|   	free(bufh1);

Error: CPPCHECK_WARNING (CWE-682): [#def117]
gobject-introspection-1.84.0/girepository/cmph/brz.c:545: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  543|   	memcpy(buf+sizeof(cmph_uint32)+buflenh1, &buflenh2, sizeof(cmph_uint32));
#  544|   	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1, bufh2, (size_t)buflenh2);	
#  545|-> 	for (i = 0; i < n; i++) memcpy(buf+2*sizeof(cmph_uint32)+buflenh1+buflenh2+i,(fchf->g + i), (size_t)1);
#  546|   	free(bufh1);
#  547|   	free(bufh2);

Error: CPPCHECK_WARNING (CWE-476): [#def118]
gobject-introspection-1.84.0/girepository/cmph/brz.c:562: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  560|   	*buflen = buflenh1 + buflenh2 + n + 2U * (cmph_uint32)sizeof(cmph_uint32);
#  561|   	buf = (char *)malloc((size_t)(*buflen));
#  562|-> 	memcpy(buf, &buflenh1, sizeof(cmph_uint32));
#  563|   	memcpy(buf+sizeof(cmph_uint32), bufh1, (size_t)buflenh1);
#  564|   	memcpy(buf+sizeof(cmph_uint32)+buflenh1, &buflenh2, sizeof(cmph_uint32));

Error: CPPCHECK_WARNING (CWE-682): [#def119]
gobject-introspection-1.84.0/girepository/cmph/brz.c:563: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  561|   	buf = (char *)malloc((size_t)(*buflen));
#  562|   	memcpy(buf, &buflenh1, sizeof(cmph_uint32));
#  563|-> 	memcpy(buf+sizeof(cmph_uint32), bufh1, (size_t)buflenh1);
#  564|   	memcpy(buf+sizeof(cmph_uint32)+buflenh1, &buflenh2, sizeof(cmph_uint32));
#  565|   	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1, bufh2, (size_t)buflenh2);

Error: CPPCHECK_WARNING (CWE-682): [#def120]
gobject-introspection-1.84.0/girepository/cmph/brz.c:564: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  562|   	memcpy(buf, &buflenh1, sizeof(cmph_uint32));
#  563|   	memcpy(buf+sizeof(cmph_uint32), bufh1, (size_t)buflenh1);
#  564|-> 	memcpy(buf+sizeof(cmph_uint32)+buflenh1, &buflenh2, sizeof(cmph_uint32));
#  565|   	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1, bufh2, (size_t)buflenh2);
#  566|   	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1+buflenh2,bmzf->g, (size_t)n);

Error: CPPCHECK_WARNING (CWE-682): [#def121]
gobject-introspection-1.84.0/girepository/cmph/brz.c:565: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  563|   	memcpy(buf+sizeof(cmph_uint32), bufh1, (size_t)buflenh1);
#  564|   	memcpy(buf+sizeof(cmph_uint32)+buflenh1, &buflenh2, sizeof(cmph_uint32));
#  565|-> 	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1, bufh2, (size_t)buflenh2);
#  566|   	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1+buflenh2,bmzf->g, (size_t)n);
#  567|   	free(bufh1);

Error: CPPCHECK_WARNING (CWE-682): [#def122]
gobject-introspection-1.84.0/girepository/cmph/brz.c:566: error[nullPointerArithmeticOutOfMemory]: If memory allocation fail: pointer addition with NULL pointer.
#  564|   	memcpy(buf+sizeof(cmph_uint32)+buflenh1, &buflenh2, sizeof(cmph_uint32));
#  565|   	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1, bufh2, (size_t)buflenh2);
#  566|-> 	memcpy(buf+2*sizeof(cmph_uint32)+buflenh1+buflenh2,bmzf->g, (size_t)n);
#  567|   	free(bufh1);
#  568|   	free(bufh2);

Error: CPPCHECK_WARNING (CWE-476): [#def123]
gobject-introspection-1.84.0/girepository/cmph/brz.c:610: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#  608|   	nbytes = fread(&(brz->algo), sizeof(brz->algo), (size_t)1, f); // Reading algo.
#  609|   	nbytes = fread(&(brz->k), sizeof(cmph_uint32), (size_t)1, f);
#  610|-> 	brz->size   = (cmph_uint8 *) malloc(sizeof(cmph_uint8)*brz->k);
#  611|   	nbytes = fread(brz->size, sizeof(cmph_uint8)*(brz->k), (size_t)1, f);	
#  612|   	brz->h1 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);

Error: CPPCHECK_WARNING (CWE-476): [#def124]
gobject-introspection-1.84.0/girepository/cmph/brz.c:611: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#  609|   	nbytes = fread(&(brz->k), sizeof(cmph_uint32), (size_t)1, f);
#  610|   	brz->size   = (cmph_uint8 *) malloc(sizeof(cmph_uint8)*brz->k);
#  611|-> 	nbytes = fread(brz->size, sizeof(cmph_uint8)*(brz->k), (size_t)1, f);	
#  612|   	brz->h1 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);
#  613|   	brz->h2 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);

Error: CPPCHECK_WARNING (CWE-476): [#def125]
gobject-introspection-1.84.0/girepository/cmph/brz.c:612: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#  610|   	brz->size   = (cmph_uint8 *) malloc(sizeof(cmph_uint8)*brz->k);
#  611|   	nbytes = fread(brz->size, sizeof(cmph_uint8)*(brz->k), (size_t)1, f);	
#  612|-> 	brz->h1 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);
#  613|   	brz->h2 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);
#  614|   	brz->g  = (cmph_uint8 **)  calloc((size_t)brz->k, sizeof(cmph_uint8 *));

Error: CPPCHECK_WARNING (CWE-476): [#def126]
gobject-introspection-1.84.0/girepository/cmph/brz.c:613: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#  611|   	nbytes = fread(brz->size, sizeof(cmph_uint8)*(brz->k), (size_t)1, f);	
#  612|   	brz->h1 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);
#  613|-> 	brz->h2 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);
#  614|   	brz->g  = (cmph_uint8 **)  calloc((size_t)brz->k, sizeof(cmph_uint8 *));
#  615|   	DEBUGP("Reading c = %f   k = %u   algo = %u \n", brz->c, brz->k, brz->algo);

Error: CPPCHECK_WARNING (CWE-476): [#def127]
gobject-introspection-1.84.0/girepository/cmph/brz.c:614: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#  612|   	brz->h1 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);
#  613|   	brz->h2 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);
#  614|-> 	brz->g  = (cmph_uint8 **)  calloc((size_t)brz->k, sizeof(cmph_uint8 *));
#  615|   	DEBUGP("Reading c = %f   k = %u   algo = %u \n", brz->c, brz->k, brz->algo);
#  616|   	//loading h_i1, h_i2 and g_i.

Error: CPPCHECK_WARNING (CWE-476): [#def128]
gobject-introspection-1.84.0/girepository/cmph/brz.c:617: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#  615|   	DEBUGP("Reading c = %f   k = %u   algo = %u \n", brz->c, brz->k, brz->algo);
#  616|   	//loading h_i1, h_i2 and g_i.
#  617|-> 	for(i = 0; i < brz->k; i++)
#  618|   	{
#  619|   		// h1

Error: CPPCHECK_WARNING (CWE-476): [#def129]
gobject-introspection-1.84.0/girepository/cmph/brz.c:623: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  621|   		DEBUGP("Hash state 1 has %u bytes\n", buflen);
#  622|   		buf = (char *)malloc((size_t)buflen);
#  623|-> 		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  624|   		brz->h1[i] = hash_state_load(buf, buflen);
#  625|   		free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def130]
gobject-introspection-1.84.0/girepository/cmph/brz.c:624: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#  622|   		buf = (char *)malloc((size_t)buflen);
#  623|   		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  624|-> 		brz->h1[i] = hash_state_load(buf, buflen);
#  625|   		free(buf);
#  626|   		//h2

Error: CPPCHECK_WARNING (CWE-476): [#def131]
gobject-introspection-1.84.0/girepository/cmph/brz.c:630: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  628|   		DEBUGP("Hash state 2 has %u bytes\n", buflen);
#  629|   		buf = (char *)malloc((size_t)buflen);
#  630|-> 		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  631|   		brz->h2[i] = hash_state_load(buf, buflen);
#  632|   		free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def132]
gobject-introspection-1.84.0/girepository/cmph/brz.c:631: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#  629|   		buf = (char *)malloc((size_t)buflen);
#  630|   		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  631|-> 		brz->h2[i] = hash_state_load(buf, buflen);
#  632|   		free(buf);
#  633|   		switch(brz->algo)

Error: CPPCHECK_WARNING (CWE-476): [#def133]
gobject-introspection-1.84.0/girepository/cmph/brz.c:633: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: brz
#  631|   		brz->h2[i] = hash_state_load(buf, buflen);
#  632|   		free(buf);
#  633|-> 		switch(brz->algo)
#  634|   		{
#  635|   			case CMPH_FCH:

Error: CPPCHECK_WARNING (CWE-476): [#def134]
gobject-introspection-1.84.0/girepository/cmph/brz.c:651: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  649|   	DEBUGP("Hash state has %u bytes\n", buflen);
#  650|   	buf = (char *)malloc((size_t)buflen);
#  651|-> 	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  652|   	brz->h0 = hash_state_load(buf, buflen);
#  653|   	free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def135]
gobject-introspection-1.84.0/girepository/cmph/buffer_entry.c:78: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#   76|   	copied_bytes = 0;
#   77|   	buf = (cmph_uint8 *)malloc(*keylen + sizeof(*keylen));
#   78|->         memcpy(buf, keylen, sizeof(*keylen));
#   79|   	if((buffer_entry->pos + lacked_bytes) > buffer_entry->nbytes) {
#   80|   		copied_bytes = buffer_entry->nbytes - buffer_entry->pos;

Error: CPPCHECK_WARNING (CWE-476): [#def136]
gobject-introspection-1.84.0/girepository/cmph/chd.c:146: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  144|   
#  145|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  146|-> 	mphf->algo = mph->algo;
#  147|   	chdf = (chd_data_t *)malloc(sizeof(chd_data_t));
#  148|   	

Error: CPPCHECK_WARNING (CWE-476): [#def137]
gobject-introspection-1.84.0/girepository/cmph/chd.c:149: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chdf
#  147|   	chdf = (chd_data_t *)malloc(sizeof(chd_data_t));
#  148|   	
#  149|-> 	chdf->packed_cr = packed_cr;
#  150|   	packed_cr = NULL; //transfer memory ownership
#  151|   

Error: CPPCHECK_WARNING (CWE-476): [#def138]
gobject-introspection-1.84.0/girepository/cmph/chd.c:152: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chdf
#  150|   	packed_cr = NULL; //transfer memory ownership
#  151|   
#  152|-> 	chdf->packed_chd_phf = packed_chd_phf;
#  153|   	packed_chd_phf = NULL; //transfer memory ownership
#  154|   	

Error: CPPCHECK_WARNING (CWE-476): [#def139]
gobject-introspection-1.84.0/girepository/cmph/chd.c:155: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chdf
#  153|   	packed_chd_phf = NULL; //transfer memory ownership
#  154|   	
#  155|-> 	chdf->packed_chd_phf_size = packed_chd_phf_size;
#  156|   	chdf->packed_cr_size = packed_cr_size;
#  157|   	

Error: CPPCHECK_WARNING (CWE-476): [#def140]
gobject-introspection-1.84.0/girepository/cmph/chd.c:156: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chdf
#  154|   	
#  155|   	chdf->packed_chd_phf_size = packed_chd_phf_size;
#  156|-> 	chdf->packed_cr_size = packed_cr_size;
#  157|   	
#  158|   	mphf->data = chdf;

Error: CPPCHECK_WARNING (CWE-476): [#def141]
gobject-introspection-1.84.0/girepository/cmph/chd.c:158: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  156|   	chdf->packed_cr_size = packed_cr_size;
#  157|   	
#  158|-> 	mphf->data = chdf;
#  159|   	mphf->size = nkeys;
#  160|   

Error: CPPCHECK_WARNING (CWE-476): [#def142]
gobject-introspection-1.84.0/girepository/cmph/chd.c:159: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  157|   	
#  158|   	mphf->data = chdf;
#  159|-> 	mphf->size = nkeys;
#  160|   
#  161|   	DEBUGP("Successfully generated minimal perfect hash\n");

Error: CPPCHECK_WARNING (CWE-476): [#def143]
gobject-introspection-1.84.0/girepository/cmph/chd.c:186: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd
#  184|   	nbytes = fread(&chd->packed_chd_phf_size, sizeof(cmph_uint32), (size_t)1, fd);
#  185|   	DEBUGP("Loading CHD_PH perfect hash function with %u bytes to disk\n", chd->packed_chd_phf_size);
#  186|-> 	chd->packed_chd_phf = (cmph_uint8 *) calloc((size_t)chd->packed_chd_phf_size,(size_t)1);
#  187|   	nbytes = fread(chd->packed_chd_phf, chd->packed_chd_phf_size, (size_t)1, fd);
#  188|   

Error: CPPCHECK_WARNING (CWE-476): [#def144]
gobject-introspection-1.84.0/girepository/cmph/chd.c:187: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd
#  185|   	DEBUGP("Loading CHD_PH perfect hash function with %u bytes to disk\n", chd->packed_chd_phf_size);
#  186|   	chd->packed_chd_phf = (cmph_uint8 *) calloc((size_t)chd->packed_chd_phf_size,(size_t)1);
#  187|-> 	nbytes = fread(chd->packed_chd_phf, chd->packed_chd_phf_size, (size_t)1, fd);
#  188|   
#  189|   	nbytes = fread(&chd->packed_cr_size, sizeof(cmph_uint32), (size_t)1, fd);

Error: CPPCHECK_WARNING (CWE-476): [#def145]
gobject-introspection-1.84.0/girepository/cmph/chd.c:191: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd
#  189|   	nbytes = fread(&chd->packed_cr_size, sizeof(cmph_uint32), (size_t)1, fd);
#  190|   	DEBUGP("Loading Compressed rank structure, which has %u bytes\n", chd->packed_cr_size);
#  191|-> 	chd->packed_cr = (cmph_uint8 *) calloc((size_t)chd->packed_cr_size, (size_t)1);
#  192|   	nbytes = fread(chd->packed_cr, chd->packed_cr_size, (size_t)1, fd);
#  193|   	if (nbytes == 0 && ferror(fd)) {

Error: CPPCHECK_WARNING (CWE-476): [#def146]
gobject-introspection-1.84.0/girepository/cmph/chd.c:192: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd
#  190|   	DEBUGP("Loading Compressed rank structure, which has %u bytes\n", chd->packed_cr_size);
#  191|   	chd->packed_cr = (cmph_uint8 *) calloc((size_t)chd->packed_cr_size, (size_t)1);
#  192|-> 	nbytes = fread(chd->packed_cr, chd->packed_cr_size, (size_t)1, fd);
#  193|   	if (nbytes == 0 && ferror(fd)) {
#  194|             fprintf(stderr, "ERROR: %s\n", strerror(errno));

Error: CPPCHECK_WARNING (CWE-476): [#def147]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:133: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: probe_counts
#  131|   	for(i = 0; i < n; i++)
#  132|   	{
#  133|-> 		probe_counts[disp_table[i]]++;
#  134|   	};
#  135|   	

Error: CPPCHECK_WARNING (CWE-476): [#def148]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:138: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: probe_counts
#  136|   	for(i = 0; i < max_probes; i++)
#  137|   	{
#  138|-> 		if(probe_counts[i] > 0)
#  139|   			entropy -= probe_counts[i]*log((double)probe_counts[i]/(double)n)/log(2);
#  140|   	};

Error: CPPCHECK_WARNING (CWE-476): [#def149]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:312: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sorted_lists
#  310|   		if(bucket_size == 0)
#  311|   			continue;
#  312|-> 		sorted_lists[bucket_size].size++;
#  313|   	};
#  314|   	sorted_lists[1].buckets_list = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def150]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:314: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sorted_lists
#  312|   		sorted_lists[bucket_size].size++;
#  313|   	};
#  314|-> 	sorted_lists[1].buckets_list = 0;
#  315|   	// Determine final position of list of buckets into the contiguous array that will store all the buckets
#  316|   	for(i = 2; i <= max_bucket_size; i++)

Error: CPPCHECK_WARNING (CWE-476): [#def151]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:335: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: output_buckets
#  333|   		};
#  334|   		position = sorted_lists[bucket_size].buckets_list + sorted_lists[bucket_size].size;
#  335|-> 		output_buckets[position].bucket_id = i;
#  336|   		output_buckets[position].items_list = input_buckets[i].items_list;
#  337|   		sorted_lists[bucket_size].size++;

Error: CPPCHECK_WARNING (CWE-476): [#def152]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:336: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: output_buckets
#  334|   		position = sorted_lists[bucket_size].buckets_list + sorted_lists[bucket_size].size;
#  335|   		output_buckets[position].bucket_id = i;
#  336|-> 		output_buckets[position].items_list = input_buckets[i].items_list;
#  337|   		sorted_lists[bucket_size].size++;
#  338|   	};

Error: CPPCHECK_WARNING (CWE-476): [#def153]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:358: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: output_items
#  356|   			for(j = 0; j < bucket_size; j++)
#  357|   			{
#  358|-> 				output_items[position].f = input_items[position2].f;
#  359|   				output_items[position].h = input_items[position2].h;
#  360|   				position++;

Error: CPPCHECK_WARNING (CWE-476): [#def154]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:359: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: output_items
#  357|   			{
#  358|   				output_items[position].f = input_items[position2].f;
#  359|-> 				output_items[position].h = input_items[position2].h;
#  360|   				position++;
#  361|   				position2++;

Error: CPPCHECK_WARNING (CWE-476): [#def155]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:808: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  806|   
#  807|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  808|-> 	mphf->algo = mph->algo;
#  809|   	chd_phf = (chd_ph_data_t *)malloc(sizeof(chd_ph_data_t));
#  810|   	

Error: CPPCHECK_WARNING (CWE-476): [#def156]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:811: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd_phf
#  809|   	chd_phf = (chd_ph_data_t *)malloc(sizeof(chd_ph_data_t));
#  810|   	
#  811|-> 	chd_phf->cs = chd_ph->cs;
#  812|   	chd_ph->cs = NULL; //transfer memory ownership
#  813|   	chd_phf->hl = chd_ph->hl;

Error: CPPCHECK_WARNING (CWE-476): [#def157]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:813: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd_phf
#  811|   	chd_phf->cs = chd_ph->cs;
#  812|   	chd_ph->cs = NULL; //transfer memory ownership
#  813|-> 	chd_phf->hl = chd_ph->hl;
#  814|   	chd_ph->hl = NULL; //transfer memory ownership
#  815|   	chd_phf->n = chd_ph->n;

Error: CPPCHECK_WARNING (CWE-476): [#def158]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:815: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd_phf
#  813|   	chd_phf->hl = chd_ph->hl;
#  814|   	chd_ph->hl = NULL; //transfer memory ownership
#  815|-> 	chd_phf->n = chd_ph->n;
#  816|   	chd_phf->nbuckets = chd_ph->nbuckets;
#  817|   	

Error: CPPCHECK_WARNING (CWE-476): [#def159]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:816: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd_phf
#  814|   	chd_ph->hl = NULL; //transfer memory ownership
#  815|   	chd_phf->n = chd_ph->n;
#  816|-> 	chd_phf->nbuckets = chd_ph->nbuckets;
#  817|   	
#  818|   	mphf->data = chd_phf;

Error: CPPCHECK_WARNING (CWE-476): [#def160]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:818: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  816|   	chd_phf->nbuckets = chd_ph->nbuckets;
#  817|   	
#  818|-> 	mphf->data = chd_phf;
#  819|   	mphf->size = chd_ph->n;
#  820|   

Error: CPPCHECK_WARNING (CWE-476): [#def161]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:819: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  817|   	
#  818|   	mphf->data = chd_phf;
#  819|-> 	mphf->size = chd_ph->n;
#  820|   
#  821|   	DEBUGP("Successfully generated minimal perfect hash\n");

Error: CPPCHECK_WARNING (CWE-476): [#def162]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:851: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  849|   	DEBUGP("Hash state has %u bytes\n", buflen);
#  850|   	buf = (char *)malloc((size_t)buflen);
#  851|-> 	nbytes = fread(buf, (size_t)buflen, (size_t)1, fd);
#  852|   	chd_ph->hl = hash_state_load(buf, buflen);
#  853|   	free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def163]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:852: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd_ph
#  850|   	buf = (char *)malloc((size_t)buflen);
#  851|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, fd);
#  852|-> 	chd_ph->hl = hash_state_load(buf, buflen);
#  853|   	free(buf);
#  854|   	

Error: CPPCHECK_WARNING (CWE-476): [#def164]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:858: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  856|   	DEBUGP("Compressed sequence structure has %u bytes\n", buflen);
#  857|   	buf = (char *)malloc((size_t)buflen);
#  858|-> 	nbytes = fread(buf, (size_t)buflen, (size_t)1, fd);
#  859|   	chd_ph->cs = (compressed_seq_t *) calloc(1, sizeof(compressed_seq_t)); 
#  860|   	compressed_seq_load(chd_ph->cs, buf, buflen);

Error: CPPCHECK_WARNING (CWE-476): [#def165]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:859: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd_ph
#  857|   	buf = (char *)malloc((size_t)buflen);
#  858|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, fd);
#  859|-> 	chd_ph->cs = (compressed_seq_t *) calloc(1, sizeof(compressed_seq_t)); 
#  860|   	compressed_seq_load(chd_ph->cs, buf, buflen);
#  861|   	free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def166]
gobject-introspection-1.84.0/girepository/cmph/chd_ph.c:860: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chd_ph
#  858|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, fd);
#  859|   	chd_ph->cs = (compressed_seq_t *) calloc(1, sizeof(compressed_seq_t)); 
#  860|-> 	compressed_seq_load(chd_ph->cs, buf, buflen);
#  861|   	free(buf);
#  862|   	

Error: CPPCHECK_WARNING (CWE-476): [#def167]
gobject-introspection-1.84.0/girepository/cmph/chm.c:112: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: visited
#  110|   	DEBUGP("Assignment step\n");
#  111|    	visited = (cmph_uint8 *)malloc((size_t)(chm->n/8 + 1));
#  112|-> 	memset(visited, 0, (size_t)(chm->n/8 + 1));
#  113|   	free(chm->g);
#  114|   	chm->g = (cmph_uint32 *)malloc(chm->n * sizeof(cmph_uint32));

Error: CPPCHECK_WARNING (CWE-476): [#def168]
gobject-introspection-1.84.0/girepository/cmph/chm.c:129: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  127|   
#  128|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  129|-> 	mphf->algo = mph->algo;
#  130|   	chmf = (chm_data_t *)malloc(sizeof(chm_data_t));
#  131|   	chmf->g = chm->g;

Error: CPPCHECK_WARNING (CWE-476): [#def169]
gobject-introspection-1.84.0/girepository/cmph/chm.c:131: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chmf
#  129|   	mphf->algo = mph->algo;
#  130|   	chmf = (chm_data_t *)malloc(sizeof(chm_data_t));
#  131|-> 	chmf->g = chm->g;
#  132|   	chm->g = NULL; //transfer memory ownership
#  133|   	chmf->hashes = chm->hashes;

Error: CPPCHECK_WARNING (CWE-476): [#def170]
gobject-introspection-1.84.0/girepository/cmph/chm.c:133: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chmf
#  131|   	chmf->g = chm->g;
#  132|   	chm->g = NULL; //transfer memory ownership
#  133|-> 	chmf->hashes = chm->hashes;
#  134|   	chm->hashes = NULL; //transfer memory ownership
#  135|   	chmf->n = chm->n;

Error: CPPCHECK_WARNING (CWE-476): [#def171]
gobject-introspection-1.84.0/girepository/cmph/chm.c:135: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chmf
#  133|   	chmf->hashes = chm->hashes;
#  134|   	chm->hashes = NULL; //transfer memory ownership
#  135|-> 	chmf->n = chm->n;
#  136|   	chmf->m = chm->m;
#  137|   	mphf->data = chmf;

Error: CPPCHECK_WARNING (CWE-476): [#def172]
gobject-introspection-1.84.0/girepository/cmph/chm.c:136: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chmf
#  134|   	chm->hashes = NULL; //transfer memory ownership
#  135|   	chmf->n = chm->n;
#  136|-> 	chmf->m = chm->m;
#  137|   	mphf->data = chmf;
#  138|   	mphf->size = chm->m;

Error: CPPCHECK_WARNING (CWE-476): [#def173]
gobject-introspection-1.84.0/girepository/cmph/chm.c:137: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  135|   	chmf->n = chm->n;
#  136|   	chmf->m = chm->m;
#  137|-> 	mphf->data = chmf;
#  138|   	mphf->size = chm->m;
#  139|   	DEBUGP("Successfully generated minimal perfect hash\n");

Error: CPPCHECK_WARNING (CWE-476): [#def174]
gobject-introspection-1.84.0/girepository/cmph/chm.c:138: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  136|   	chmf->m = chm->m;
#  137|   	mphf->data = chmf;
#  138|-> 	mphf->size = chm->m;
#  139|   	DEBUGP("Successfully generated minimal perfect hash\n");
#  140|   	if (mph->verbosity)

Error: CPPCHECK_WARNING (CWE-476): [#def175]
gobject-introspection-1.84.0/girepository/cmph/chm.c:252: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chm
#  250|   	mphf->data = chm;
#  251|   	nbytes = fread(&nhashes, sizeof(cmph_uint32), (size_t)1, f);
#  252|-> 	chm->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(nhashes + 1));
#  253|   	chm->hashes[nhashes] = NULL;
#  254|   	DEBUGP("Reading %u hashes\n", nhashes);

Error: CPPCHECK_WARNING (CWE-476): [#def176]
gobject-introspection-1.84.0/girepository/cmph/chm.c:253: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chm
#  251|   	nbytes = fread(&nhashes, sizeof(cmph_uint32), (size_t)1, f);
#  252|   	chm->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(nhashes + 1));
#  253|-> 	chm->hashes[nhashes] = NULL;
#  254|   	DEBUGP("Reading %u hashes\n", nhashes);
#  255|   	for (i = 0; i < nhashes; ++i)

Error: CPPCHECK_WARNING (CWE-476): [#def177]
gobject-introspection-1.84.0/girepository/cmph/chm.c:261: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  259|   		DEBUGP("Hash state has %u bytes\n", buflen);
#  260|   		buf = (char *)malloc((size_t)buflen);
#  261|-> 		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  262|   		state = hash_state_load(buf, buflen);
#  263|   		chm->hashes[i] = state;

Error: CPPCHECK_WARNING (CWE-476): [#def178]
gobject-introspection-1.84.0/girepository/cmph/chm.c:263: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chm
#  261|   		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  262|   		state = hash_state_load(buf, buflen);
#  263|-> 		chm->hashes[i] = state;
#  264|   		free(buf);
#  265|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def179]
gobject-introspection-1.84.0/girepository/cmph/chm.c:271: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chm
#  269|   	nbytes = fread(&(chm->m), sizeof(cmph_uint32), (size_t)1, f);	
#  270|   
#  271|-> 	chm->g = (cmph_uint32 *)malloc(sizeof(cmph_uint32)*chm->n);
#  272|   	nbytes = fread(chm->g, chm->n*sizeof(cmph_uint32), (size_t)1, f);
#  273|   	if (nbytes == 0 && ferror(f)) {

Error: CPPCHECK_WARNING (CWE-476): [#def180]
gobject-introspection-1.84.0/girepository/cmph/chm.c:272: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: chm
#  270|   
#  271|   	chm->g = (cmph_uint32 *)malloc(sizeof(cmph_uint32)*chm->n);
#  272|-> 	nbytes = fread(chm->g, chm->n*sizeof(cmph_uint32), (size_t)1, f);
#  273|   	if (nbytes == 0 && ferror(f)) {
#  274|             fprintf(stderr, "ERROR: %s\n", strerror(errno));

Error: CPPCHECK_WARNING (CWE-476): [#def181]
gobject-introspection-1.84.0/girepository/cmph/cmph_structs.c:12: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mph
#   10|   {
#   11|   	cmph_config_t *mph = (cmph_config_t *)malloc(sizeof(cmph_config_t));
#   12|-> 	memset(mph, 0, sizeof(cmph_config_t));
#   13|   	if (mph == NULL) return NULL;
#   14|   	mph->key_source = key_source;

Error: CPPCHECK_WARNING (CWE-476): [#def182]
gobject-introspection-1.84.0/girepository/cmph/cmph_structs.c:65: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#   63|   	}
#   64|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#   65|-> 	mphf->algo = algo;
#   66|   	nbytes = fread(&(mphf->size), sizeof(mphf->size), (size_t)1, f);
#   67|   	mphf->data = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def183]
gobject-introspection-1.84.0/girepository/cmph/cmph_structs.c:67: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#   65|   	mphf->algo = algo;
#   66|   	nbytes = fread(&(mphf->size), sizeof(mphf->size), (size_t)1, f);
#   67|-> 	mphf->data = NULL;
#   68|   	DEBUGP("Algorithm is %s and mphf is sized %u\n", cmph_names[algo],  mphf->size);
#   69|           if (nbytes == 0 && ferror(f)) {

Error: CPPCHECK_WARNING (CWE-476): [#def184]
gobject-introspection-1.84.0/girepository/cmph/compressed_rank.c:64: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: select_vec
#   62|   			j++;
#   63|   		}
#   64|-> 		select_vec[i - 1] = j;
#   65|   	};
#   66|   

Error: CPPCHECK_WARNING (CWE-476): [#def185]
gobject-introspection-1.84.0/girepository/cmph/fch.c:155: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vector
#  153|     for (i = 0; i < n; i++) {
#  154|       j = (cmph_uint32) rand() % n;
#  155|->     b = vector[i];
#  156|       vector[i] = vector[j];
#  157|       vector[j] = b;

Error: CPPCHECK_WARNING (CWE-476): [#def186]
gobject-introspection-1.84.0/girepository/cmph/fch.c:156: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vector
#  154|       j = (cmph_uint32) rand() % n;
#  155|       b = vector[i];
#  156|->     vector[i] = vector[j];
#  157|       vector[j] = b;
#  158|     }

Error: CPPCHECK_WARNING (CWE-476): [#def187]
gobject-introspection-1.84.0/girepository/cmph/fch.c:157: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vector
#  155|       b = vector[i];
#  156|       vector[i] = vector[j];
#  157|->     vector[j] = b;
#  158|     }
#  159|   }

Error: CPPCHECK_WARNING (CWE-476): [#def188]
gobject-introspection-1.84.0/girepository/cmph/fch.c:177: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: random_table
#  175|   	for(i = 0; i < fch->m; i++)
#  176|   	{
#  177|-> 		random_table[i] = i;
#  178|   	}
#  179|   	permut(random_table, fch->m);

Error: CPPCHECK_WARNING (CWE-476): [#def189]
gobject-introspection-1.84.0/girepository/cmph/fch.c:182: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: map_table
#  180|   	for(i = 0; i < fch->m; i++)
#  181|   	{
#  182|-> 		map_table[random_table[i]] = i;
#  183|   	}
#  184|   	do {   

Error: CPPCHECK_WARNING (CWE-476): [#def190]
gobject-introspection-1.84.0/girepository/cmph/fch.c:182: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: random_table
#  180|   	for(i = 0; i < fch->m; i++)
#  181|   	{
#  182|-> 		map_table[random_table[i]] = i;
#  183|   	}
#  184|   	do {   

Error: CPPCHECK_WARNING (CWE-476): [#def191]
gobject-introspection-1.84.0/girepository/cmph/fch.c:294: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  292|   	if (iterations == 0) return NULL;
#  293|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  294|-> 	mphf->algo = mph->algo;
#  295|   	fchf = (fch_data_t *)malloc(sizeof(fch_data_t));
#  296|   	fchf->g = fch->g;

Error: CPPCHECK_WARNING (CWE-476): [#def192]
gobject-introspection-1.84.0/girepository/cmph/fch.c:296: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fchf
#  294|   	mphf->algo = mph->algo;
#  295|   	fchf = (fch_data_t *)malloc(sizeof(fch_data_t));
#  296|-> 	fchf->g = fch->g;
#  297|   	fch->g = NULL; //transfer memory ownership
#  298|   	fchf->h1 = fch->h1;

Error: CPPCHECK_WARNING (CWE-476): [#def193]
gobject-introspection-1.84.0/girepository/cmph/fch.c:298: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fchf
#  296|   	fchf->g = fch->g;
#  297|   	fch->g = NULL; //transfer memory ownership
#  298|-> 	fchf->h1 = fch->h1;
#  299|   	fch->h1 = NULL; //transfer memory ownership
#  300|   	fchf->h2 = fch->h2;

Error: CPPCHECK_WARNING (CWE-476): [#def194]
gobject-introspection-1.84.0/girepository/cmph/fch.c:300: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fchf
#  298|   	fchf->h1 = fch->h1;
#  299|   	fch->h1 = NULL; //transfer memory ownership
#  300|-> 	fchf->h2 = fch->h2;
#  301|   	fch->h2 = NULL; //transfer memory ownership
#  302|   	fchf->p2 = fch->p2;

Error: CPPCHECK_WARNING (CWE-476): [#def195]
gobject-introspection-1.84.0/girepository/cmph/fch.c:302: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fchf
#  300|   	fchf->h2 = fch->h2;
#  301|   	fch->h2 = NULL; //transfer memory ownership
#  302|-> 	fchf->p2 = fch->p2;
#  303|   	fchf->p1 = fch->p1;
#  304|   	fchf->b = fch->b;

Error: CPPCHECK_WARNING (CWE-476): [#def196]
gobject-introspection-1.84.0/girepository/cmph/fch.c:303: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fchf
#  301|   	fch->h2 = NULL; //transfer memory ownership
#  302|   	fchf->p2 = fch->p2;
#  303|-> 	fchf->p1 = fch->p1;
#  304|   	fchf->b = fch->b;
#  305|   	fchf->c = fch->c;

Error: CPPCHECK_WARNING (CWE-476): [#def197]
gobject-introspection-1.84.0/girepository/cmph/fch.c:304: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fchf
#  302|   	fchf->p2 = fch->p2;
#  303|   	fchf->p1 = fch->p1;
#  304|-> 	fchf->b = fch->b;
#  305|   	fchf->c = fch->c;
#  306|   	fchf->m = fch->m;

Error: CPPCHECK_WARNING (CWE-476): [#def198]
gobject-introspection-1.84.0/girepository/cmph/fch.c:305: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fchf
#  303|   	fchf->p1 = fch->p1;
#  304|   	fchf->b = fch->b;
#  305|-> 	fchf->c = fch->c;
#  306|   	fchf->m = fch->m;
#  307|   	mphf->data = fchf;

Error: CPPCHECK_WARNING (CWE-476): [#def199]
gobject-introspection-1.84.0/girepository/cmph/fch.c:306: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fchf
#  304|   	fchf->b = fch->b;
#  305|   	fchf->c = fch->c;
#  306|-> 	fchf->m = fch->m;
#  307|   	mphf->data = fchf;
#  308|   	mphf->size = fch->m;

Error: CPPCHECK_WARNING (CWE-476): [#def200]
gobject-introspection-1.84.0/girepository/cmph/fch.c:307: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  305|   	fchf->c = fch->c;
#  306|   	fchf->m = fch->m;
#  307|-> 	mphf->data = fchf;
#  308|   	mphf->size = fch->m;
#  309|   	//DEBUGP("Successfully generated minimal perfect hash\n");

Error: CPPCHECK_WARNING (CWE-476): [#def201]
gobject-introspection-1.84.0/girepository/cmph/fch.c:308: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mphf
#  306|   	fchf->m = fch->m;
#  307|   	mphf->data = fchf;
#  308|-> 	mphf->size = fch->m;
#  309|   	//DEBUGP("Successfully generated minimal perfect hash\n");
#  310|   	if (mph->verbosity)

Error: CPPCHECK_WARNING (CWE-476): [#def202]
gobject-introspection-1.84.0/girepository/cmph/fch.c:373: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fch
#  371|   	mphf->data = fch;
#  372|   	//DEBUGP("Reading h1\n");
#  373|-> 	fch->h1 = NULL;
#  374|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  375|   	//DEBUGP("Hash state of h1 has %u bytes\n", buflen);

Error: CPPCHECK_WARNING (CWE-476): [#def203]
gobject-introspection-1.84.0/girepository/cmph/fch.c:377: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  375|   	//DEBUGP("Hash state of h1 has %u bytes\n", buflen);
#  376|   	buf = (char *)malloc((size_t)buflen);
#  377|-> 	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  378|   	fch->h1 = hash_state_load(buf, buflen);
#  379|   	free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def204]
gobject-introspection-1.84.0/girepository/cmph/fch.c:378: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fch
#  376|   	buf = (char *)malloc((size_t)buflen);
#  377|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  378|-> 	fch->h1 = hash_state_load(buf, buflen);
#  379|   	free(buf);
#  380|   	

Error: CPPCHECK_WARNING (CWE-476): [#def205]
gobject-introspection-1.84.0/girepository/cmph/fch.c:384: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fch
#  382|   	mphf->data = fch;
#  383|   	//DEBUGP("Reading h2\n");
#  384|-> 	fch->h2 = NULL;
#  385|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  386|   	//DEBUGP("Hash state of h2 has %u bytes\n", buflen);

Error: CPPCHECK_WARNING (CWE-476): [#def206]
gobject-introspection-1.84.0/girepository/cmph/fch.c:388: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  386|   	//DEBUGP("Hash state of h2 has %u bytes\n", buflen);
#  387|   	buf = (char *)malloc((size_t)buflen);
#  388|-> 	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  389|   	fch->h2 = hash_state_load(buf, buflen);
#  390|   	free(buf);

Error: CPPCHECK_WARNING (CWE-476): [#def207]
gobject-introspection-1.84.0/girepository/cmph/fch.c:389: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fch
#  387|   	buf = (char *)malloc((size_t)buflen);
#  388|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  389|-> 	fch->h2 = hash_state_load(buf, buflen);
#  390|   	free(buf);
#  391|   	

Error: CPPCHECK_WARNING (CWE-476): [#def208]
gobject-introspection-1.84.0/girepository/cmph/fch.c:400: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fch
#  398|   	nbytes = fread(&(fch->p2), sizeof(double), (size_t)1, f);
#  399|   
#  400|-> 	fch->g = (cmph_uint32 *)malloc(sizeof(cmph_uint32)*fch->b);
#  401|   	nbytes = fread(fch->g, fch->b*sizeof(cmph_uint32), (size_t)1, f);
#  402|   	if (nbytes == 0 && ferror(f)) {

Error: CPPCHECK_WARNING (CWE-476): [#def209]
gobject-introspection-1.84.0/girepository/cmph/fch.c:401: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fch
#  399|   
#  400|   	fch->g = (cmph_uint32 *)malloc(sizeof(cmph_uint32)*fch->b);
#  401|-> 	nbytes = fread(fch->g, fch->b*sizeof(cmph_uint32), (size_t)1, f);
#  402|   	if (nbytes == 0 && ferror(f)) {
#  403|             fprintf(stderr, "ERROR: %s\n", strerror(errno));

Error: CPPCHECK_WARNING (CWE-476): [#def210]
gobject-introspection-1.84.0/girepository/cmph/fch_buckets.c:181: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: nbuckets_size
#  179|   	
#  180|   	// collect how many buckets for each size.
#  181|-> 	for(i = 0; i < buckets->nbuckets; i++) nbuckets_size[fch_bucket_size(buckets->values + i)] ++;
#  182|   	
#  183|   	// calculating offset considering a decreasing order of buckets size.

Error: CPPCHECK_WARNING (CWE-476): [#def211]
gobject-introspection-1.84.0/girepository/cmph/fch_buckets.c:184: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: nbuckets_size
#  182|   	
#  183|   	// calculating offset considering a decreasing order of buckets size.
#  184|-> 	value = nbuckets_size[buckets->max_size];
#  185|   	nbuckets_size[buckets->max_size] = sum;
#  186|   	for(i = (int)buckets->max_size - 1; i >= 0; i--)

Error: CPPCHECK_WARNING (CWE-476): [#def212]
gobject-introspection-1.84.0/girepository/cmph/fch_buckets.c:185: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: nbuckets_size
#  183|   	// calculating offset considering a decreasing order of buckets size.
#  184|   	value = nbuckets_size[buckets->max_size];
#  185|-> 	nbuckets_size[buckets->max_size] = sum;
#  186|   	for(i = (int)buckets->max_size - 1; i >= 0; i--)
#  187|   	{

Error: CPPCHECK_WARNING (CWE-476): [#def213]
gobject-introspection-1.84.0/girepository/cmph/fch_buckets.c:189: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: nbuckets_size
#  187|   	{
#  188|   		sum += value;
#  189|-> 		value = nbuckets_size[i];
#  190|   		nbuckets_size[i] = sum;
#  191|   		

Error: CPPCHECK_WARNING (CWE-476): [#def214]
gobject-introspection-1.84.0/girepository/cmph/fch_buckets.c:190: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: nbuckets_size
#  188|   		sum += value;
#  189|   		value = nbuckets_size[i];
#  190|-> 		nbuckets_size[i] = sum;
#  191|   		
#  192|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def215]
gobject-introspection-1.84.0/girepository/cmph/fch_buckets.c:195: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: nbuckets_size
#  193|   	for(i = 0; i < buckets->nbuckets; i++) 
#  194|   	{
#  195|-> 		sorted_indexes[nbuckets_size[fch_bucket_size(buckets->values + i)]] = (cmph_uint32)i;
#  196|   		nbuckets_size[fch_bucket_size(buckets->values + i)] ++;
#  197|   	}	

Error: CPPCHECK_WARNING (CWE-476): [#def216]
gobject-introspection-1.84.0/girepository/cmph/fch_buckets.c:195: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sorted_indexes
#  193|   	for(i = 0; i < buckets->nbuckets; i++) 
#  194|   	{
#  195|-> 		sorted_indexes[nbuckets_size[fch_bucket_size(buckets->values + i)]] = (cmph_uint32)i;
#  196|   		nbuckets_size[fch_bucket_size(buckets->values + i)] ++;
#  197|   	}	

Error: CPPCHECK_WARNING (CWE-476): [#def217]
gobject-introspection-1.84.0/girepository/cmph/fch_buckets.c:196: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: nbuckets_size
#  194|   	{
#  195|   		sorted_indexes[nbuckets_size[fch_bucket_size(buckets->values + i)]] = (cmph_uint32)i;
#  196|-> 		nbuckets_size[fch_bucket_size(buckets->values + i)] ++;
#  197|   	}	
#  198|   	free(nbuckets_size);

Error: CPPCHECK_WARNING (CWE-476): [#def218]
gobject-introspection-1.84.0/girepository/cmph/graph.c:212: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: deleted
#  210|   	{
#  211|   		DEBUGP("Deleting edge %u (%u->%u)\n", e, g->edges[abs_edge(e, 0)], g->edges[abs_edge(e, 1)]);
#  212|-> 		SETBIT(deleted, abs_edge(e, 0));
#  213|   		
#  214|   		v2 = g->edges[abs_edge(e, 0)];

Error: CPPCHECK_WARNING (CWE-476): [#def219]
gobject-introspection-1.84.0/girepository/cmph/graph.c:234: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: deleted
#  232|   	cmph_uint8 *deleted = (cmph_uint8 *)malloc((g->nedges*sizeof(cmph_uint8))/8 + 1);
#  233|   	size_t deleted_len = g->nedges/8 + 1;
#  234|-> 	memset(deleted, 0, deleted_len);
#  235|   
#  236|   	DEBUGP("Looking for cycles in graph with %u vertices and %u edges\n", g->nnodes, g->nedges);

Error: CPPCHECK_WARNING (CWE-476): [#def220]
gobject-introspection-1.84.0/girepository/cmph/graph.c:265: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: deleted
#  263|   	cmph_uint8 *deleted = (cmph_uint8 *)malloc((g->nedges*sizeof(cmph_uint8))/8+1);
#  264|   	size_t deleted_len = g->nedges/8 + 1;
#  265|-> 	memset(deleted, 0, deleted_len);
#  266|   	free(g->critical_nodes);
#  267|   	g->critical_nodes = (cmph_uint8 *)malloc((g->nnodes*sizeof(cmph_uint8))/8 + 1);

Error: CPPCHECK_WARNING (CWE-476): [#def221]
gobject-introspection-1.84.0/girepository/cmph/jenkins_hash.c:91: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: state
#   89|   	jenkins_state_t *state = (jenkins_state_t *)malloc(sizeof(jenkins_state_t));
#   90|   	DEBUGP("Initializing jenkins hash\n");
#   91|-> 	state->seed = ((cmph_uint32)rand() % size);
#   92|   	return state;
#   93|   }

Error: CPPCHECK_WARNING (CWE-476): [#def222]
gobject-introspection-1.84.0/girepository/cmph/jenkins_hash.c:237: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dest_state
#  235|   {
#  236|   	jenkins_state_t *dest_state = (jenkins_state_t *)malloc(sizeof(jenkins_state_t));
#  237|-> 	dest_state->hashfunc = src_state->hashfunc;
#  238|   	dest_state->seed = src_state->seed;
#  239|   	return dest_state;

Error: CPPCHECK_WARNING (CWE-476): [#def223]
gobject-introspection-1.84.0/girepository/cmph/jenkins_hash.c:238: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dest_state
#  236|   	jenkins_state_t *dest_state = (jenkins_state_t *)malloc(sizeof(jenkins_state_t));
#  237|   	dest_state->hashfunc = src_state->hashfunc;
#  238|-> 	dest_state->seed = src_state->seed;
#  239|   	return dest_state;
#  240|   }

Error: CPPCHECK_WARNING (CWE-476): [#def224]
gobject-introspection-1.84.0/girepository/cmph/jenkins_hash.c:245: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: state
#  243|   {
#  244|   	jenkins_state_t *state = (jenkins_state_t *)malloc(sizeof(jenkins_state_t));
#  245|-> 	state->seed = *(cmph_uint32 *)buf;
#  246|   	state->hashfunc = CMPH_HASH_JENKINS;
#  247|   	DEBUGP("Loaded jenkins state with seed %u\n", state->seed);

Error: CPPCHECK_WARNING (CWE-476): [#def225]
gobject-introspection-1.84.0/girepository/cmph/jenkins_hash.c:246: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: state
#  244|   	jenkins_state_t *state = (jenkins_state_t *)malloc(sizeof(jenkins_state_t));
#  245|   	state->seed = *(cmph_uint32 *)buf;
#  246|-> 	state->hashfunc = CMPH_HASH_JENKINS;
#  247|   	DEBUGP("Loaded jenkins state with seed %u\n", state->seed);
#  248|   	return state;

Error: CPPCHECK_WARNING (CWE-457): [#def226]
gobject-introspection-1.84.0/girepository/gibaseinfo.c:545: error[uninitvar]: Uninitialized variables: &blob.name, &blob.value
#  543|     first = (AttributeBlob *) &rinfo->typelib->data[header->attributes];
#  544|   
#  545|->   res = bsearch (&blob, first, header->n_attributes,
#  546|                    header->attribute_blob_size, cmp_attribute);
#  547|   

Error: CPPCHECK_WARNING (CWE-457): [#def227]
gobject-introspection-1.84.0/girepository/girparser.c:1635: error[legacyUninitvar]: Uninitialized variable: target_state
# 1633|       g_assert_not_reached ();
# 1634|   
# 1635|->   if (!introspectable_prelude (context, attribute_names, attribute_values, ctx, target_state))
# 1636|       return TRUE;
# 1637|   

Error: CPPCHECK_WARNING (CWE-476): [#def228]
gobject-introspection-1.84.0/giscanner/scannerparser.y:1668: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: f
# 1666|     do
# 1667|       {
# 1668|->       c = fgetc (f);
# 1669|       }
# 1670|     while (c == ' ' || c == '\t');

Error: CPPCHECK_WARNING (CWE-476): [#def229]
gobject-introspection-1.84.0/giscanner/scannerparser.y:1914: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
# 1912|     file = g_fopen (filename, "r");
# 1913|     result = parse_file (scanner, file);
# 1914|->   fclose (file);
# 1915|   
# 1916|     return result;

Error: CPPCHECK_WARNING (CWE-758): [#def230]
gobject-introspection-1.84.0/gobject-introspection-tests/gimarshallingtestsextra.h:37: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   35|   {
#   36|     GI_MARSHALLING_TESTS_EXTRA_FLAGS_VALUE1 = 0,
#   37|->   GI_MARSHALLING_TESTS_EXTRA_FLAGS_VALUE2 = (gint) (1 << 31),
#   38|   } GIMarshallingTestsExtraFlags;
#   39|   

Error: GCC_ANALYZER_WARNING: [#def231]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:70:28: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
#   68|   {
#   69|   	graph3->edges=malloc(nedges*sizeof(bdz_edge_t));
#   70|-> 	graph3->first_edge=malloc(nvertices*sizeof(cmph_uint32));
#   71|   	graph3->vert_degree=malloc((size_t)nvertices);	
#   72|   };

Error: GCC_ANALYZER_WARNING: [#def232]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:71:29: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
#   69|   	graph3->edges=malloc(nedges*sizeof(bdz_edge_t));
#   70|   	graph3->first_edge=malloc(nvertices*sizeof(cmph_uint32));
#   71|-> 	graph3->vert_degree=malloc((size_t)nvertices);	
#   72|   };
#   73|   static void bdz_init_graph3(bdz_graph3_t * graph3, cmph_uint32 nedges, cmph_uint32 nvertices)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def233]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:169:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>.vertices[0]’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
#  167|   
#  168|   	for(i=0;i<nedges;i++){
#  169|-> 		v0=graph3->edges[i].vertices[0];
#  170|   		v1=graph3->edges[i].vertices[1];
#  171|   		v2=graph3->edges[i].vertices[2];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def234]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:175:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘marked_edge’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:389:12: enter_function: entry to ‘bdz_mapping’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:397:21: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:410:18: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:410:18: call_function: calling ‘bdz_generate_queue’ from ‘bdz_mapping’
#  173|   				graph3->vert_degree[v1]==1 ||
#  174|   				graph3->vert_degree[v2]==1){
#  175|-> 			if(!GETBIT(marked_edge,i)) {
#  176|   				queue[queue_head++]=i;
#  177|   				SETBIT(marked_edge,i);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def235]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:176:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘queue’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:295:9: call_function: inlined call to ‘bdz_alloc_queue’ from ‘bdz_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
#  174|   				graph3->vert_degree[v2]==1){
#  175|   			if(!GETBIT(marked_edge,i)) {
#  176|-> 				queue[queue_head++]=i;
#  177|   				SETBIT(marked_edge,i);
#  178|   			}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def236]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:354:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mphf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:312:22: return_function: returning to ‘bdz_new’ from ‘bdz_mapping’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:329:12: branch_false: following ‘false’ branch (when ‘iterations != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:335:9: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:341:9: call_function: calling ‘assigning’ from ‘bdz_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:341:9: return_function: returning to ‘bdz_new’ from ‘assigning’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:353:26: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:354:9: danger: ‘mphf’ could be NULL: unchecked value from [(19)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/18)
#  352|   	#endif
#  353|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  354|-> 	mphf->algo = mph->algo;
#  355|   	bdzf = (bdz_data_t *)malloc(sizeof(bdz_data_t));
#  356|   	bdzf->g = bdz->g;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def237]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:356:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bdzf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:312:22: return_function: returning to ‘bdz_new’ from ‘bdz_mapping’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:329:12: branch_false: following ‘false’ branch (when ‘iterations != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:335:9: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:341:9: call_function: calling ‘assigning’ from ‘bdz_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:341:9: return_function: returning to ‘bdz_new’ from ‘assigning’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:355:30: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:356:9: danger: ‘bdzf’ could be NULL: unchecked value from [(19)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/18)
#  354|   	mphf->algo = mph->algo;
#  355|   	bdzf = (bdz_data_t *)malloc(sizeof(bdz_data_t));
#  356|-> 	bdzf->g = bdz->g;
#  357|   	bdz->g = NULL; //transfer memory ownership
#  358|   	bdzf->hl = bdz->hl;

Error: GCC_ANALYZER_WARNING: [#def238]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:422:32: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
#  420|   	cmph_uint8 * marked_vertices =malloc((size_t)(bdz->n >> 3) + 1);
#  421|           cmph_uint32 sizeg = (cmph_uint32)ceil(bdz->n/4.0);
#  422|-> 	bdz->g = (cmph_uint8 *)calloc((size_t)(sizeg), sizeof(cmph_uint8));	
#  423|   	memset(marked_vertices, 0, (size_t)(bdz->n >> 3) + 1);
#  424|   	memset(bdz->g, 0xff, (size_t)(sizeg));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def239]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:468:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*bdz.ranktable’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:466:41: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:468:9: danger: ‘calloc((long unsigned int)*bdz.ranktablesize, 4)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  466|   	bdz->ranktable = (cmph_uint32 *)calloc((size_t)bdz->ranktablesize, sizeof(cmph_uint32));
#  467|   	// ranktable computation
#  468|-> 	bdz->ranktable[0] = 0;	
#  469|   	i = 1;
#  470|   	while(1)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def240]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:468:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc((long unsigned int)*bdz.ranktablesize, 4)’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:265:9: enter_function: entry to ‘bdz_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:294:9: call_function: calling ‘bdz_alloc_graph3’ from ‘bdz_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:294:9: return_function: returning to ‘bdz_new’ from ‘bdz_alloc_graph3’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:312:22: call_function: calling ‘bdz_mapping’ from ‘bdz_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:312:22: return_function: returning to ‘bdz_new’ from ‘bdz_mapping’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:314:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:329:12: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:329:12: branch_false: following ‘false’ branch (when ‘iterations != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:335:9: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:335:9: call_function: calling ‘bdz_partial_free_graph3’ from ‘bdz_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:335:9: return_function: returning to ‘bdz_new’ from ‘bdz_partial_free_graph3’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:341:9: call_function: calling ‘assigning’ from ‘bdz_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:341:9: return_function: returning to ‘bdz_new’ from ‘assigning’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:349:9: call_function: calling ‘ranking’ from ‘bdz_new’
#  466|   	bdz->ranktable = (cmph_uint32 *)calloc((size_t)bdz->ranktablesize, sizeof(cmph_uint32));
#  467|   	// ranktable computation
#  468|-> 	bdz->ranktable[0] = 0;	
#  469|   	i = 1;
#  470|   	while(1)

Error: GCC_ANALYZER_WARNING (CWE-789): [#def241]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:543:23: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
#  541|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  542|   	DEBUGP("Hash state has %u bytes\n", buflen);
#  543|-> 	buf = (char *)malloc((size_t)buflen);
#  544|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  545|   	bdz->hl = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING: [#def242]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz.c:554:32: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
#  552|   	nbytes = fread(&(bdz->r), sizeof(cmph_uint32), (size_t)1, f);	
#  553|   	sizeg = (cmph_uint32)ceil(bdz->n/4.0);
#  554|-> 	bdz->g = (cmph_uint8 *)calloc((size_t)(sizeg), sizeof(cmph_uint8));
#  555|   	nbytes = fread(bdz->g, sizeg*sizeof(cmph_uint8), (size_t)1, f);
#  556|   

Error: GCC_ANALYZER_WARNING: [#def243]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:57:28: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
#   55|   {
#   56|   	graph3->edges=malloc(nedges*sizeof(bdz_ph_edge_t));
#   57|-> 	graph3->first_edge=malloc(nvertices*sizeof(cmph_uint32));
#   58|   	graph3->vert_degree=malloc((size_t)nvertices);	
#   59|   };

Error: GCC_ANALYZER_WARNING: [#def244]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:58:29: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
#   56|   	graph3->edges=malloc(nedges*sizeof(bdz_ph_edge_t));
#   57|   	graph3->first_edge=malloc(nvertices*sizeof(cmph_uint32));
#   58|-> 	graph3->vert_degree=malloc((size_t)nvertices);	
#   59|   };
#   60|   static void bdz_ph_init_graph3(bdz_ph_graph3_t * graph3, cmph_uint32 nedges, cmph_uint32 nvertices)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def245]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:156:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>.vertices[0]’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:261:9: call_function: calling ‘bdz_ph_alloc_graph3’ from ‘bdz_ph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:261:9: return_function: returning to ‘bdz_ph_new’ from ‘bdz_ph_alloc_graph3’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:279:22: call_function: calling ‘bdz_ph_mapping’ from ‘bdz_ph_new’
#  154|   
#  155|   	for(i=0;i<nedges;i++){
#  156|-> 		v0=graph3->edges[i].vertices[0];
#  157|   		v1=graph3->edges[i].vertices[1];
#  158|   		v2=graph3->edges[i].vertices[2];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def246]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:162:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘marked_edge’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:353:12: enter_function: entry to ‘bdz_ph_mapping’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:362:21: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:375:18: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:375:18: call_function: calling ‘bdz_ph_generate_queue’ from ‘bdz_ph_mapping’
#  160|   				graph3->vert_degree[v1]==1 ||
#  161|   				graph3->vert_degree[v2]==1){
#  162|-> 			if(!GETBIT(marked_edge,i)) {
#  163|   				queue[queue_head++]=i;
#  164|   				SETBIT(marked_edge,i);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def247]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:163:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘queue’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:238:9: enter_function: entry to ‘bdz_ph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:262:9: call_function: inlined call to ‘bdz_ph_alloc_queue’ from ‘bdz_ph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:279:22: call_function: calling ‘bdz_ph_mapping’ from ‘bdz_ph_new’
#  161|   				graph3->vert_degree[v2]==1){
#  162|   			if(!GETBIT(marked_edge,i)) {
#  163|-> 				queue[queue_head++]=i;
#  164|   				SETBIT(marked_edge,i);
#  165|   			}

Error: GCC_ANALYZER_WARNING: [#def248]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:387:35: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
#  385|   	cmph_uint8 * marked_vertices =malloc((size_t)(bdz_ph->n >> 3) + 1);
#  386|   	cmph_uint32 sizeg = (cmph_uint32)ceil(bdz_ph->n/4.0);
#  387|-> 	bdz_ph->g = (cmph_uint8 *)calloc((size_t)sizeg, sizeof(cmph_uint8));	
#  388|   	memset(marked_vertices, 0, (size_t)(bdz_ph->n >> 3) + 1);
#  389|   	//memset(bdz_ph->g, 0xff, sizeg);

Error: GCC_ANALYZER_WARNING: [#def249]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:432:44: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
#  430|   	cmph_uint8 byte = 0;
#  431|   	cmph_uint32 sizeg = (cmph_uint32)ceil(bdz_ph->n/5.0);
#  432|-> 	cmph_uint8 * new_g = (cmph_uint8 *)calloc((size_t)sizeg, sizeof(cmph_uint8));	
#  433|   	cmph_uint8 value;
#  434|   	cmph_uint32 idx;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def250]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:438:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_g’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:432:44: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:435:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:437:13: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:438:13: danger: ‘new_g + (sizetype)idx’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  436|   	{	
#  437|               idx = i/5;
#  438|->             byte = new_g[idx];
#  439|               value = GETVALUE(bdz_ph->g, i);
#  440|               byte = (cmph_uint8) (byte + value*pow3_table[i%5U]);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def251]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:498:23: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
#  496|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  497|   	DEBUGP("Hash state has %u bytes\n", buflen);
#  498|-> 	buf = (char *)malloc((size_t)buflen);
#  499|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  500|   	bdz_ph->hl = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING: [#def252]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bdz_ph.c:509:35: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
#  507|   	nbytes = fread(&(bdz_ph->r), sizeof(cmph_uint32), (size_t)1, f);	
#  508|   	sizeg = (cmph_uint32)ceil(bdz_ph->n/5.0);
#  509|-> 	bdz_ph->g = (cmph_uint8 *)calloc((size_t)sizeg, sizeof(cmph_uint8));
#  510|   	nbytes = fread(bdz_ph->g, sizeg*sizeof(cmph_uint8), (size_t)1, f);
#  511|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def253]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bitbool.h:121:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bits_table’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:37:6: enter_function: entry to ‘compressed_rank_generate’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:50:41: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:53:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:55:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:55:17: call_function: calling ‘set_bits_value’ from ‘compressed_rank_generate’
#  119|   	register cmph_uint32 shift2 = 32 - shift1;
#  120|   	
#  121|-> 	bits_table[word_idx] &= ~((string_mask) << shift1);
#  122|   	bits_table[word_idx] |= bits_string << shift1;
#  123|   	

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def254]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bitbool.h:126:44: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘32’) >= precision of type (‘32’)
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:37:6: enter_function: entry to ‘compressed_rank_generate’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:53:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:55:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:55:17: call_function: calling ‘set_bits_value’ from ‘compressed_rank_generate’
#  124|   	if(shift2 < string_length)
#  125|   	{
#  126|-> 		bits_table[word_idx+1] &= ~((string_mask) >> shift2);
#  127|   		bits_table[word_idx+1] |= bits_string >> shift2;
#  128|   	};

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def255]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bitbool.h:127:43: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘32’) >= precision of type (‘32’)
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:37:6: enter_function: entry to ‘compressed_rank_generate’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:53:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:55:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:55:17: call_function: calling ‘set_bits_value’ from ‘compressed_rank_generate’
#  125|   	{
#  126|   		bits_table[word_idx+1] &= ~((string_mask) >> shift2);
#  127|-> 		bits_table[word_idx+1] |= bits_string >> shift2;
#  128|   	};
#  129|   };

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def256]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bitbool.h:142:32: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘32’) >= precision of type (‘32’)
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:272:13: enter_function: entry to ‘compressed_rank_query_packed’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:291:11: branch_false: following ‘false’ branch (when ‘max_val >= idx’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:296:9: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:299:11: branch_true: following ‘true’ branch (when ‘val_quot == 0’)...
 branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:311:19: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:315:20: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:315:20: call_function: calling ‘get_bits_value’ from ‘compressed_rank_query_packed’
#  140|   	
#  141|   	if(shift2 < string_length)
#  142|-> 		bits_string |= (bits_table[word_idx+1] << shift2) & string_mask;
#  143|   
#  144|   	return bits_string;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def257]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bitbool.h:154:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bits_table’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:45:6: enter_function: entry to ‘compressed_seq_generate’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:56:20: branch_true: following ‘true’ branch (when ‘i < n’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:58:30: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:73:43: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:76:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:78:30: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:78:19: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:80:63: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:81:17: call_function: calling ‘set_bits_at_pos’ from ‘compressed_seq_generate’
#  152|   	register cmph_uint32 string_mask = (1U << string_length) - 1;
#  153|   	
#  154|-> 	bits_table[word_idx] &= ~((string_mask) << shift1);
#  155|   	bits_table[word_idx] |= bits_string << shift1;
#  156|   	if(shift2 < string_length)

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def258]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bitbool.h:158:44: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘32’) >= precision of type (‘32’)
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:45:6: enter_function: entry to ‘compressed_seq_generate’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:56:20: branch_true: following ‘true’ branch (when ‘i < n’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:58:30: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:76:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:78:30: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:78:19: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:80:63: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:81:17: call_function: calling ‘set_bits_at_pos’ from ‘compressed_seq_generate’
#  156|   	if(shift2 < string_length)
#  157|   	{
#  158|-> 		bits_table[word_idx+1] &= ~((string_mask) >> shift2);
#  159|   		bits_table[word_idx+1] |= bits_string >> shift2;
#  160|   	}

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def259]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bitbool.h:159:43: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘32’) >= precision of type (‘32’)
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:45:6: enter_function: entry to ‘compressed_seq_generate’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:56:20: branch_true: following ‘true’ branch (when ‘i < n’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:58:30: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:76:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:78:30: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:78:19: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:80:63: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:81:17: call_function: calling ‘set_bits_at_pos’ from ‘compressed_seq_generate’
#  157|   	{
#  158|   		bits_table[word_idx+1] &= ~((string_mask) >> shift2);
#  159|-> 		bits_table[word_idx+1] |= bits_string >> shift2;
#  160|   	}
#  161|   };

Error: GCC_ANALYZER_WARNING (CWE-1335): [#def260]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bitbool.h:174:32: warning[-Wanalyzer-shift-count-overflow]: shift by count (‘32’) >= precision of type (‘32’)
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:339:13: enter_function: entry to ‘compressed_seq_query_packed’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:361:11: branch_true: following ‘true’ branch (when ‘idx == 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:364:27: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:379:11: branch_false: following ‘false’ branch (when ‘enc_length != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:382:24: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:382:24: call_function: calling ‘get_bits_at_pos’ from ‘compressed_seq_query_packed’
#  172|   
#  173|   	if(shift2 < string_length)
#  174|-> 		bits_string |= (bits_table[word_idx+1] << shift2) & string_mask;
#  175|   	return bits_string;
#  176|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def261]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:79:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*bmz.hashes + (long unsigned int)i * 8’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:78:40: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:79:20: branch_true: following ‘true’ branch (when ‘i != 3’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:79:32: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:79:32: danger: ‘*bmz.hashes + (long unsigned int)i * 8’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   77|   
#   78|   	bmz->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*3);
#   79|-> 	for(i = 0; i < 3; ++i) bmz->hashes[i] = NULL;
#   80|   
#   81|   	do

Error: GCC_ANALYZER_WARNING (CWE-476): [#def262]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:144:64: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘visited’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:79:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:79:20: branch_false: following ‘false’ branch (when ‘i == 3’)...
 branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:100:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:116:14: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:116:14: branch_false: following ‘false’ branch (when ‘iterations != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:122:15: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:135:35: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:141:11: branch_true: following ‘true’ branch...
 branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:142:23: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:144:21: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:144:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:144:64: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:144:64: danger: ‘visited + (sizetype)(i >> 3)’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  142|   	  for (i = 0; i < bmz->n; ++i) // critical nodes
#  143|   	  {
#  144|->                 if (graph_node_is_critical(bmz->graph, i) && (!GETBIT(visited,i)))
#  145|   		{
#  146|   		  if(c > 1.14) restart_mapping = bmz_traverse_critical_nodes(bmz, i, &biggest_g_value, &biggest_edge_value, used_edges, visited);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def263]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:324:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘unused_g_values’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:277:15: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:279:21: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:281:24: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:283:29: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:283:28: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:287:39: branch_true: following ‘true’ branch (when ‘collision != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:289:44: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:289:44: branch_false: following ‘false’ branch (when ‘nunused_g_values <= next_g_index’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:295:58: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:304:59: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:310:61: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:317:43: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:319:51: branch_true: following ‘true’ branch (when ‘unused_g_values_capacity == nunused_g_values’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:321:115: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:324:64: release_memory: ‘unused_g_values’ is NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:324:49: danger: dereference of NULL ‘unused_g_values + (long unsigned int)nunused_g_values * 4’
#  322|   						        unused_g_values_capacity += BUFSIZ;  							
#  323|   						} 
#  324|-> 						unused_g_values[nunused_g_values++] = next_g;							
#  325|   
#  326|   					}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def264]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:359:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘used_edges’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:58:9: enter_function: entry to ‘bmz_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:79:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:79:20: branch_false: following ‘false’ branch (when ‘i == 3’)...
 branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:100:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:116:14: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:116:14: branch_false: following ‘false’ branch (when ‘iterations != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:122:15: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:137:38: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:141:11: branch_true: following ‘true’ branch...
 branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:142:23: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:151:13: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:151:13: branch_true: following ‘true’ branch (when ‘restart_mapping == 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:153:21: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:157:17: call_function: calling ‘bmz_traverse_non_critical_nodes’ from ‘bmz_new’
#  357|          {
#  358|   		assert(unused_edge_index < bmz->m);
#  359|-> 		if(GETBIT(used_edges, unused_edge_index)) unused_edge_index ++;
#  360|   		else break;
#  361|          }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def265]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:500:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bmz’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:495:41: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:500:9: danger: ‘bmz’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  498|   	mphf->data = bmz;
#  499|   	nbytes = fread(&nhashes, sizeof(cmph_uint32), (size_t)1, f);
#  500|-> 	bmz->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(nhashes + 1));
#  501|   	bmz->hashes[nhashes] = NULL;
#  502|   	DEBUGP("Reading %u hashes\n", nhashes);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def266]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:500:40: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘(long unsigned int)(nhashes + 1) * 8’ as allocation size without upper-bounds checking
#  498|   	mphf->data = bmz;
#  499|   	nbytes = fread(&nhashes, sizeof(cmph_uint32), (size_t)1, f);
#  500|-> 	bmz->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(nhashes + 1));
#  501|   	bmz->hashes[nhashes] = NULL;
#  502|   	DEBUGP("Reading %u hashes\n", nhashes);

Error: GCC_ANALYZER_WARNING (CWE-823): [#def267]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:501:9: warning[-Wanalyzer-tainted-offset]: use of attacker-controlled value ‘(long unsigned int)nhashes * 8’ as offset without upper-bounds checking
#  499|   	nbytes = fread(&nhashes, sizeof(cmph_uint32), (size_t)1, f);
#  500|   	bmz->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(nhashes + 1));
#  501|-> 	bmz->hashes[nhashes] = NULL;
#  502|   	DEBUGP("Reading %u hashes\n", nhashes);
#  503|   	for (i = 0; i < nhashes; ++i)

Error: GCC_ANALYZER_WARNING (CWE-789): [#def268]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:508:31: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:503:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:506:26: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:508:31: danger: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
#  506|   		nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  507|   		DEBUGP("Hash state has %u bytes\n", buflen);
#  508|-> 		buf = (char *)malloc((size_t)buflen);
#  509|   		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  510|   		state = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:516:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:500:40: acquire_memory: allocated here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:503:21: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:516:24: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz.c:516:18: danger: ‘<unknown>’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  514|   
#  515|   	DEBUGP("Reading m and n\n");
#  516|-> 	nbytes = fread(&(bmz->n), sizeof(cmph_uint32), (size_t)1, f);	
#  517|   	nbytes = fread(&(bmz->m), sizeof(cmph_uint32), (size_t)1, f);	
#  518|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def270]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:83:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*bmz8.hashes + (long unsigned int)i * 8’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:69:12: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:74:12: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:82:41: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:83:20: branch_true: following ‘true’ branch (when ‘i != 3’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:83:32: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:83:32: danger: ‘*bmz8.hashes + (long unsigned int)i * 8’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   81|   
#   82|   	bmz8->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*3);
#   83|-> 	for(i = 0; i < 3; ++i) bmz8->hashes[i] = NULL;
#   84|   
#   85|   	do

Error: GCC_ANALYZER_WARNING (CWE-476): [#def271]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:150:65: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘visited’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:69:12: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:74:12: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:83:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:83:20: branch_false: following ‘false’ branch (when ‘i == 3’)...
 branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:104:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:120:14: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:120:14: branch_false: following ‘false’ branch (when ‘iterations != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:127:15: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:141:35: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:147:11: branch_true: following ‘true’ branch...
 branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:148:23: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:150:21: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:150:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:150:65: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:150:65: danger: ‘visited + (sizetype)(i >> 3)’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
#  148|   	  for (i = 0; i < bmz8->n; ++i) // critical nodes
#  149|   	  {
#  150|->                 if (graph_node_is_critical(bmz8->graph, i) && (!GETBIT(visited,i)))
#  151|   		{
#  152|   		  if(c > 1.14) restart_mapping = bmz8_traverse_critical_nodes(bmz8, i, &biggest_g_value, &biggest_edge_value, used_edges, visited);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def272]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:333:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘unused_g_values’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:286:15: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:288:21: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:290:24: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:292:29: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:292:28: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:296:39: branch_true: following ‘true’ branch (when ‘collision != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:298:44: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:298:44: branch_false: following ‘false’ branch (when ‘nunused_g_values <= next_g_index’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:304:71: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:313:59: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:319:61: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:326:43: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:328:51: branch_true: following ‘true’ branch (when ‘nunused_g_values == 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:330:88: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:333:64: release_memory: ‘unused_g_values’ is NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:333:49: danger: dereference of NULL ‘unused_g_values + (sizetype)nunused_g_values’
#  331|   						        unused_g_values_capacity += (cmph_uint8)BUFSIZ;  							
#  332|   						} 
#  333|-> 						unused_g_values[nunused_g_values++] = next_g;							
#  334|   
#  335|   					}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def273]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:372:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘used_edges’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:57:9: enter_function: entry to ‘bmz8_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:69:12: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:74:12: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:83:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:83:20: branch_false: following ‘false’ branch (when ‘i == 3’)...
 branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:104:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:120:14: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:120:14: branch_false: following ‘false’ branch (when ‘iterations != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:127:15: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:143:38: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:147:11: branch_true: following ‘true’ branch...
 branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:148:23: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:157:13: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:157:13: branch_true: following ‘true’ branch (when ‘restart_mapping == 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:159:21: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:163:17: call_function: calling ‘bmz8_traverse_non_critical_nodes’ from ‘bmz8_new’
#  370|          {
#  371|   		assert(unused_edge_index < bmz8->m);
#  372|-> 		if(GETBIT(used_edges, unused_edge_index)) unused_edge_index ++;
#  373|   		else break;
#  374|          }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def274]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:510:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bmz8’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:505:44: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:510:9: danger: ‘bmz8’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  508|   	mphf->data = bmz8;
#  509|   	nbytes = fread(&nhashes, sizeof(cmph_uint8), (size_t)1, f);
#  510|-> 	bmz8->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(size_t)(nhashes + 1));
#  511|   	bmz8->hashes[nhashes] = NULL;
#  512|   	DEBUGP("Reading %u hashes\n", nhashes);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def275]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:510:41: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘(long unsigned int)((int)nhashes + 1) * 8’ as allocation size without upper-bounds checking
#  508|   	mphf->data = bmz8;
#  509|   	nbytes = fread(&nhashes, sizeof(cmph_uint8), (size_t)1, f);
#  510|-> 	bmz8->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(size_t)(nhashes + 1));
#  511|   	bmz8->hashes[nhashes] = NULL;
#  512|   	DEBUGP("Reading %u hashes\n", nhashes);

Error: GCC_ANALYZER_WARNING (CWE-823): [#def276]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:511:9: warning[-Wanalyzer-tainted-offset]: use of attacker-controlled value ‘(long unsigned int)nhashes * 8’ as offset without upper-bounds checking
#  509|   	nbytes = fread(&nhashes, sizeof(cmph_uint8), (size_t)1, f);
#  510|   	bmz8->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(size_t)(nhashes + 1));
#  511|-> 	bmz8->hashes[nhashes] = NULL;
#  512|   	DEBUGP("Reading %u hashes\n", nhashes);
#  513|   	for (i = 0; i < nhashes; ++i)

Error: GCC_ANALYZER_WARNING (CWE-789): [#def277]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:518:31: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:513:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:516:26: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:518:31: danger: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
#  516|   		nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  517|   		DEBUGP("Hash state has %u bytes\n", buflen);
#  518|-> 		buf = (char *)malloc((size_t)buflen);
#  519|   		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  520|   		state = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:526:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:510:41: acquire_memory: allocated here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:513:21: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:526:24: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/bmz8.c:526:18: danger: ‘<unknown>’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  524|   
#  525|   	DEBUGP("Reading m and n\n");
#  526|-> 	nbytes = fread(&(bmz8->n), sizeof(cmph_uint8), (size_t)1, f);	
#  527|   	nbytes = fread(&(bmz8->m), sizeof(cmph_uint8), (size_t)1, f);	
#  528|   

Error: GCC_ANALYZER_WARNING: [#def279]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:155:38: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
#  153|           brz->k = (cmph_uint32)ceil(brz->m/((double)brz->b));
#  154|   	DEBUGP("k: %u\n", brz->k);
#  155|-> 	brz->size   = (cmph_uint8 *) calloc((size_t)brz->k, sizeof(cmph_uint8));
#  156|   	
#  157|   	// Clustering the keys by graph id.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def280]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:265:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buckets_size’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:234:52: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:255:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:258:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:261:28: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:265:25: danger: ‘buckets_size’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  263|   				fprintf(stderr, "Flushing  %u\n", nkeys_in_buffer);
#  264|   			}
#  265|-> 			value = buckets_size[0];
#  266|   			sum = 0;
#  267|   			keylen1 = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def281]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:288:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘filename’ where non-null expected
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:255:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:258:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:261:28: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:279:36: branch_false: following ‘false’ branch (when ‘i >= nkeys_in_buffer’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:287:66: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:287:44: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:288:25: danger: argument 1 (‘filename’) from [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
#argument 1 of ‘__builtin_sprintf’ must be non-null
#  286|   			}
#  287|   			filename = (char *)calloc(strlen((char *)(brz->tmp_dir)) + 11, sizeof(char));
#  288|-> 			sprintf(filename, "%s%u.cmph",brz->tmp_dir, nflushes);
#  289|   			tmp_fd = fopen(filename, "wb");
#  290|   			free(filename);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def282]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:294:59: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘keys_index’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:255:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:258:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:304:17: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:60: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:255:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:258:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:261:28: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:269:36: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:278:53: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:278:53: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:279:36: branch_true: following ‘true’ branch (when ‘i < nkeys_in_buffer’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:281:33: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:279:36: branch_false: following ‘false’ branch (when ‘i >= nkeys_in_buffer’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:287:66: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:292:36: branch_true: following ‘true’ branch (when ‘i < nkeys_in_buffer’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:294:69: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:294:59: danger: ‘keys_index + (long unsigned int)i * 4’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
#  292|   			for(i = 0; i < nkeys_in_buffer; i++)
#  293|   			{
#  294|-> 				memcpy(&keylen1, buffer + keys_index[i], sizeof(keylen1));
#  295|   				nbytes = fwrite(buffer + keys_index[i], (size_t)1, keylen1 + sizeof(keylen1), tmp_fd);
#  296|   			}

Error: GCC_ANALYZER_WARNING (CWE-688): [#def283]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:295:42: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(filename, "wb")’ where non-null expected
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:255:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:258:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:304:17: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:60: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:255:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:258:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:261:28: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:269:36: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:278:53: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:279:36: branch_true: following ‘true’ branch (when ‘i < nkeys_in_buffer’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:281:33: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:279:36: branch_false: following ‘false’ branch (when ‘i >= nkeys_in_buffer’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:287:66: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:289:34: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:292:36: branch_true: following ‘true’ branch (when ‘i < nkeys_in_buffer’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:294:69: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:295:42: danger: argument 4 (‘fopen(filename, "wb")’) from [(17)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/16) could be NULL where non-null expected
#  293|   			{
#  294|   				memcpy(&keylen1, buffer + keys_index[i], sizeof(keylen1));
#  295|-> 				nbytes = fwrite(buffer + keys_index[i], (size_t)1, keylen1 + sizeof(keylen1), tmp_fd);
#  296|   			}
#  297|   			nkeys_in_buffer = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def284]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:302:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(filename, "wb")’ where non-null expected
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:255:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:258:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:261:28: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:279:36: branch_false: following ‘false’ branch (when ‘i >= nkeys_in_buffer’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:287:66: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:289:34: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:292:36: branch_false: following ‘false’ branch (when ‘i >= nkeys_in_buffer’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:299:57: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:302:25: danger: argument 1 (‘fopen(filename, "wb")’) from [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
#  300|   			nflushes++;
#  301|   			free(keys_index);
#  302|-> 			fclose(tmp_fd);
#  303|   		}
#  304|   		memcpy(buffer + memory_usage, &keylen, sizeof(keylen));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def285]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:304:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buffer’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:233:44: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:255:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:258:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:304:17: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:304:17: danger: ‘buffer + (sizetype)memory_usage’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  302|   			fclose(tmp_fd);
#  303|   		}
#  304|-> 		memcpy(buffer + memory_usage, &keylen, sizeof(keylen));
#  305|   		memcpy(buffer + memory_usage + sizeof(keylen), key, (size_t)keylen);
#  306|   		memory_usage += keylen + (cmph_uint32)sizeof(keylen);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def286]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:328:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buckets_size’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:234:52: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:255:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:258:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:304:17: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:60: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:320:12: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:320:12: branch_true: following ‘true’ branch (when ‘memory_usage != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:324:20: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:328:17: danger: ‘buckets_size’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  326|   			fprintf(stderr, "Flushing  %u\n", nkeys_in_buffer);
#  327|   		}
#  328|-> 		value = buckets_size[0];
#  329|   		sum = 0;
#  330|   		keylen1 = 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def287]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:350:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘filename’ where non-null expected
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:255:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:60: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:320:12: branch_true: following ‘true’ branch (when ‘memory_usage != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:324:20: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:332:28: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:340:45: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:341:28: branch_true: following ‘true’ branch (when ‘i < nkeys_in_buffer’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:343:25: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:341:28: branch_false: following ‘false’ branch (when ‘i >= nkeys_in_buffer’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:349:58: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:349:36: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:350:17: danger: argument 1 (‘filename’) from [(13)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/12) could be NULL where non-null expected
#argument 1 of ‘__builtin_sprintf’ must be non-null
#  348|   		}
#  349|   		filename = (char *)calloc(strlen((char *)(brz->tmp_dir)) + 11, sizeof(char));
#  350|-> 		sprintf(filename, "%s%u.cmph",brz->tmp_dir, nflushes);
#  351|   		tmp_fd = fopen(filename, "wb");
#  352|   		free(filename);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def288]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:356:51: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘keys_index’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:255:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:60: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:320:12: branch_true: following ‘true’ branch (when ‘memory_usage != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:324:20: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:332:28: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:340:45: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:340:45: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:341:28: branch_true: following ‘true’ branch (when ‘i < nkeys_in_buffer’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:343:25: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:341:28: branch_false: following ‘false’ branch (when ‘i >= nkeys_in_buffer’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:349:58: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:354:28: branch_true: following ‘true’ branch (when ‘i < nkeys_in_buffer’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:356:61: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:356:51: danger: ‘keys_index + (long unsigned int)i * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
#  354|   		for(i = 0; i < nkeys_in_buffer; i++)
#  355|   		{
#  356|-> 			memcpy(&keylen1, buffer + keys_index[i], sizeof(keylen1));
#  357|   			nbytes = fwrite(buffer + keys_index[i], (size_t)1, keylen1 + sizeof(keylen1), tmp_fd);
#  358|   		}

Error: GCC_ANALYZER_WARNING (CWE-688): [#def289]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:357:34: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(filename, "wb")’ where non-null expected
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:255:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:60: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:320:12: branch_true: following ‘true’ branch (when ‘memory_usage != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:324:20: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:332:28: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:340:45: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:341:28: branch_true: following ‘true’ branch (when ‘i < nkeys_in_buffer’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:343:25: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:341:28: branch_false: following ‘false’ branch (when ‘i >= nkeys_in_buffer’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:349:58: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:351:26: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:354:28: branch_true: following ‘true’ branch (when ‘i < nkeys_in_buffer’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:356:61: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:357:34: danger: argument 4 (‘fopen(filename, "wb")’) from [(13)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/12) could be NULL where non-null expected
#  355|   		{
#  356|   			memcpy(&keylen1, buffer + keys_index[i], sizeof(keylen1));
#  357|-> 			nbytes = fwrite(buffer + keys_index[i], (size_t)1, keylen1 + sizeof(keylen1), tmp_fd);
#  358|   		}
#  359|   		nkeys_in_buffer = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def290]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:413:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buffer_h0’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:227:12: enter_function: entry to ‘brz_gen_mphf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:234:52: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:255:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:60: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:369:11: branch_false: following ‘false’ branch (when ‘nflushes <= 1024’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:371:12: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:390:39: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:393:20: branch_false: following ‘false’ branch (when ‘i >= nflushes’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:407:34: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:410:15: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:412:21: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:412:21: call_function: calling ‘brz_min_index’ from ‘brz_gen_mphf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:412:21: return_function: returning to ‘brz_gen_mphf’ from ‘brz_min_index’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:413:17: danger: ‘buffer_h0 + (long unsigned int)brz_min_index(buffer_h0,  nflushes) * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
#  411|   	{
#  412|   		i = brz_min_index(buffer_h0, nflushes);
#  413|-> 		cur_bucket = buffer_h0[i];
#  414|   		key = (char *)buffer_manager_read_key(buff_manager, i, &keylen);
#  415|   		if(key)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def291]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:422:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘keys_vd’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:227:12: enter_function: entry to ‘brz_gen_mphf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:255:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:60: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:369:11: branch_false: following ‘false’ branch (when ‘nflushes <= 1024’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:371:12: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:393:20: branch_false: following ‘false’ branch (when ‘i >= nflushes’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:407:34: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:407:34: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:410:15: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:412:21: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:412:21: call_function: calling ‘brz_min_index’ from ‘brz_gen_mphf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:412:21: return_function: returning to ‘brz_gen_mphf’ from ‘brz_min_index’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:415:19: branch_true: following ‘true’ branch...
 branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:417:31: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:420:38: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:421:36: branch_false: following ‘false’ branch (when ‘cur_bucket == h0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:422:41: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:422:33: danger: ‘keys_vd + (long unsigned int)nkeys_vd * 8’ could be NULL: unchecked value from [(10)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/9)
#  420|   				h0 = hash(brz->h0, key+sizeof(keylen), keylen) % brz->k;
#  421|   				if (h0 != buffer_h0[i]) break;
#  422|-> 				keys_vd[nkeys_vd++] = (cmph_uint8 *)key;
#  423|   				key = NULL; //transfer memory ownership
#  424|   				e++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def292]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:430:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘keys_vd’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:227:12: enter_function: entry to ‘brz_gen_mphf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:255:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:60: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:369:11: branch_false: following ‘false’ branch (when ‘nflushes <= 1024’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:371:12: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:393:20: branch_false: following ‘false’ branch (when ‘i >= nflushes’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:407:34: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:407:34: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:410:15: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:412:21: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:412:21: call_function: calling ‘brz_min_index’ from ‘brz_gen_mphf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:412:21: return_function: returning to ‘brz_gen_mphf’ from ‘brz_min_index’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:415:19: branch_true: following ‘true’ branch...
 branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:417:31: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:420:38: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:421:36: branch_true: following ‘true’ branch (when ‘cur_bucket != h0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:427:29: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:427:28: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:429:33: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:429:33: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:430:67: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:430:33: danger: ‘keys_vd + (long unsigned int)nkeys_vd * 8’ could be NULL: unchecked value from [(10)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/9)
#  428|   			{
#  429|   				assert(nkeys_vd < brz->size[cur_bucket]);
#  430|-> 				keys_vd[nkeys_vd++] = buffer_merge[i];
#  431|   				buffer_merge[i] = NULL; //transfer memory ownership
#  432|   				e++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def293]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:430:55: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buffer_merge’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:227:12: enter_function: entry to ‘brz_gen_mphf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:255:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:60: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:369:11: branch_false: following ‘false’ branch (when ‘nflushes <= 1024’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:371:12: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:389:39: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:393:20: branch_false: following ‘false’ branch (when ‘i >= nflushes’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:407:34: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:410:15: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:412:21: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:412:21: call_function: calling ‘brz_min_index’ from ‘brz_gen_mphf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:412:21: return_function: returning to ‘brz_gen_mphf’ from ‘brz_min_index’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:415:19: branch_true: following ‘true’ branch...
 branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:417:31: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:420:38: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:421:36: branch_true: following ‘true’ branch (when ‘cur_bucket != h0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:427:29: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:427:28: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:429:33: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:429:33: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:430:67: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:430:55: danger: ‘buffer_merge + (long unsigned int)brz_min_index(buffer_h0,  nflushes) * 8’ could be NULL: unchecked value from [(8)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/7)
#  428|   			{
#  429|   				assert(nkeys_vd < brz->size[cur_bucket]);
#  430|-> 				keys_vd[nkeys_vd++] = buffer_merge[i];
#  431|   				buffer_merge[i] = NULL; //transfer memory ownership
#  432|   				e++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def294]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:440:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘keys_vd’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:227:12: enter_function: entry to ‘brz_gen_mphf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:255:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:60: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:369:11: branch_false: following ‘false’ branch (when ‘nflushes <= 1024’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:371:12: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:393:20: branch_false: following ‘false’ branch (when ‘i >= nflushes’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:407:34: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:407:34: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:410:15: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:412:21: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:412:21: call_function: calling ‘brz_min_index’ from ‘brz_gen_mphf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:412:21: return_function: returning to ‘brz_gen_mphf’ from ‘brz_min_index’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:437:19: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:439:25: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:439:25: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:440:59: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:440:25: danger: ‘keys_vd + (long unsigned int)nkeys_vd * 8’ could be NULL: unchecked value from [(10)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/9)
#  438|   		{
#  439|   			assert(nkeys_vd < brz->size[cur_bucket]);
#  440|-> 			keys_vd[nkeys_vd++] = buffer_merge[i];
#  441|   			buffer_merge[i] = NULL; //transfer memory ownership
#  442|   			e++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def295]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:440:47: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buffer_merge’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:227:12: enter_function: entry to ‘brz_gen_mphf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:253:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:255:17: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:309:60: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:369:11: branch_false: following ‘false’ branch (when ‘nflushes <= 1024’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:371:12: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:389:39: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:393:20: branch_false: following ‘false’ branch (when ‘i >= nflushes’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:407:34: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:410:15: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:412:21: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:412:21: call_function: calling ‘brz_min_index’ from ‘brz_gen_mphf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:412:21: return_function: returning to ‘brz_gen_mphf’ from ‘brz_min_index’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:437:19: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:439:25: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:439:25: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:440:59: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:440:47: danger: ‘buffer_merge + (long unsigned int)brz_min_index(buffer_h0,  nflushes) * 8’ could be NULL: unchecked value from [(8)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/7)
#  438|   		{
#  439|   			assert(nkeys_vd < brz->size[cur_bucket]);
#  440|-> 			keys_vd[nkeys_vd++] = buffer_merge[i];
#  441|   			buffer_merge[i] = NULL; //transfer memory ownership
#  442|   			e++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def296]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:541:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:540:23: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:541:9: danger: ‘buf’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  539|   	*buflen = buflenh1 + buflenh2 + n + 2U * (cmph_uint32)sizeof(cmph_uint32);
#  540|   	buf = (char *)malloc((size_t)(*buflen));
#  541|-> 	memcpy(buf, &buflenh1, sizeof(cmph_uint32));
#  542|   	memcpy(buf+sizeof(cmph_uint32), bufh1, (size_t)buflenh1);
#  543|   	memcpy(buf+sizeof(cmph_uint32)+buflenh1, &buflenh2, sizeof(cmph_uint32));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def297]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:562:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:561:23: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:562:9: danger: ‘buf’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  560|   	*buflen = buflenh1 + buflenh2 + n + 2U * (cmph_uint32)sizeof(cmph_uint32);
#  561|   	buf = (char *)malloc((size_t)(*buflen));
#  562|-> 	memcpy(buf, &buflenh1, sizeof(cmph_uint32));
#  563|   	memcpy(buf+sizeof(cmph_uint32), bufh1, (size_t)buflenh1);
#  564|   	memcpy(buf+sizeof(cmph_uint32)+buflenh1, &buflenh2, sizeof(cmph_uint32));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def298]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:610:64: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘brz’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:603:41: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:610:64: danger: ‘brz’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  608|   	nbytes = fread(&(brz->algo), sizeof(brz->algo), (size_t)1, f); // Reading algo.
#  609|   	nbytes = fread(&(brz->k), sizeof(cmph_uint32), (size_t)1, f);
#  610|-> 	brz->size   = (cmph_uint8 *) malloc(sizeof(cmph_uint8)*brz->k);
#  611|   	nbytes = fread(brz->size, sizeof(cmph_uint8)*(brz->k), (size_t)1, f);	
#  612|   	brz->h1 = (hash_state_t **)malloc(sizeof(hash_state_t *)*brz->k);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def299]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:622:31: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:617:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:620:26: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:622:31: danger: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
#  620|   		nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  621|   		DEBUGP("Hash state 1 has %u bytes\n", buflen);
#  622|-> 		buf = (char *)malloc((size_t)buflen);
#  623|   		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  624|   		brz->h1[i] = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def300]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:629:31: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:617:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:620:26: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:629:31: danger: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
#  627|   		nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  628|   		DEBUGP("Hash state 2 has %u bytes\n", buflen);
#  629|-> 		buf = (char *)malloc((size_t)buflen);
#  630|   		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  631|   		brz->h2[i] = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING: [#def301]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:644:43: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:617:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:620:26: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:644:43: danger: at least one operand of the size argument is of a floating-point type
#  642|   		}
#  643|   		DEBUGP("g_i has %u bytes\n", n);
#  644|-> 		brz->g[i] = (cmph_uint8 *)calloc((size_t)n, sizeof(cmph_uint8));
#  645|   		nbytes = fread(brz->g[i], sizeof(cmph_uint8)*n, (size_t)1, f);
#  646|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:645:32: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)n, 1)’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:617:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:620:26: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:644:43: acquire_memory: allocated here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:645:32: danger: ‘calloc((long unsigned int)n, 1)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/4)
#  643|   		DEBUGP("g_i has %u bytes\n", n);
#  644|   		brz->g[i] = (cmph_uint8 *)calloc((size_t)n, sizeof(cmph_uint8));
#  645|-> 		nbytes = fread(brz->g[i], sizeof(cmph_uint8)*n, (size_t)1, f);
#  646|   	}
#  647|   	//loading h0

Error: GCC_ANALYZER_WARNING (CWE-789): [#def303]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:650:23: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:617:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:648:18: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/brz.c:650:23: danger: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
#  648|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  649|   	DEBUGP("Hash state has %u bytes\n", buflen);
#  650|-> 	buf = (char *)malloc((size_t)buflen);
#  651|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  652|   	brz->h0 = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def304]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/buffer_entry.c:78:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/buffer_entry.c:77:29: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/buffer_entry.c:78:9: danger: ‘buf’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   76|   	copied_bytes = 0;
#   77|   	buf = (cmph_uint8 *)malloc(*keylen + sizeof(*keylen));
#   78|->         memcpy(buf, keylen, sizeof(*keylen));
#   79|   	if((buffer_entry->pos + lacked_bytes) > buffer_entry->nbytes) {
#   80|   		copied_bytes = buffer_entry->nbytes - buffer_entry->pos;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def305]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/buffer_manager.c:28:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc((long unsigned int)nentries, 8)’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/buffer_manager.c:19:9: branch_true: following ‘true’ branch (when ‘buff_manager’ is non-NULL)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/buffer_manager.c:20:9: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/buffer_manager.c:21:59: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/buffer_manager.c:26:20: branch_true: following ‘true’ branch (when ‘i < nentries’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/buffer_manager.c:28:45: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/buffer_manager.c:28:17: danger: ‘calloc((long unsigned int)nentries, 8) + (long unsigned int)i * 8’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   26|   	for(i = 0; i < buff_manager->nentries; i++)
#   27|   	{
#   28|-> 		buff_manager->buffer_entries[i] = buffer_entry_new(memory_avail_entry);
#   29|   	}	
#   30|   	return buff_manager;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def306]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:133:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘vals_table’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:99:11: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:104:31: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:126:37: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:129:29: branch_true: following ‘true’ branch (when ‘i < nbins’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:131:21: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:131:19: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:133:36: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:133:25: danger: ‘vals_table + (long unsigned int)idx * 4’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  131|   		if(!GETBIT32(occup_table, i))
#  132|   		{
#  133|-> 			vals_table[idx++] = i;
#  134|   		}
#  135|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def307]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:146:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mphf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:99:11: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:104:31: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:145:26: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:146:9: danger: ‘mphf’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  144|   
#  145|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  146|-> 	mphf->algo = mph->algo;
#  147|   	chdf = (chd_data_t *)malloc(sizeof(chd_data_t));
#  148|   	

Error: GCC_ANALYZER_WARNING (CWE-476): [#def308]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:149:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘chdf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:99:11: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:104:31: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:147:30: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:149:9: danger: ‘chdf’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  147|   	chdf = (chd_data_t *)malloc(sizeof(chd_data_t));
#  148|   	
#  149|-> 	chdf->packed_cr = packed_cr;
#  150|   	packed_cr = NULL; //transfer memory ownership
#  151|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def309]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:186:61: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘chd’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:179:41: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:186:61: danger: ‘chd’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  184|   	nbytes = fread(&chd->packed_chd_phf_size, sizeof(cmph_uint32), (size_t)1, fd);
#  185|   	DEBUGP("Loading CHD_PH perfect hash function with %u bytes to disk\n", chd->packed_chd_phf_size);
#  186|-> 	chd->packed_chd_phf = (cmph_uint8 *) calloc((size_t)chd->packed_chd_phf_size,(size_t)1);
#  187|   	nbytes = fread(chd->packed_chd_phf, chd->packed_chd_phf_size, (size_t)1, fd);
#  188|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def310]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:189:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:186:46: acquire_memory: allocated here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd.c:189:18: danger: ‘<unknown>’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  187|   	nbytes = fread(chd->packed_chd_phf, chd->packed_chd_phf_size, (size_t)1, fd);
#  188|   
#  189|-> 	nbytes = fread(&chd->packed_cr_size, sizeof(cmph_uint32), (size_t)1, fd);
#  190|   	DEBUGP("Loading Compressed rank structure, which has %u bytes\n", chd->packed_cr_size);
#  191|   	chd->packed_cr = (cmph_uint8 *) calloc((size_t)chd->packed_cr_size, (size_t)1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def311]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:87:55: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘tmp_map_item’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:627:9: enter_function: entry to ‘chd_ph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:698:11: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:699:63: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:715:21: call_function: calling ‘chd_ph_mapping’ from ‘chd_ph_new’
#   85|   	register chd_ph_item_t * tmp_item;
#   86|   	register chd_ph_map_item_t * tmp_map_item = map_items + item_idx;
#   87|-> 	register chd_ph_bucket_t * bucket = buckets + tmp_map_item->bucket_num;
#   88|   	tmp_item = items + bucket->items_list;
#   89|   	

Error: GCC_ANALYZER_WARNING (CWE-457): [#def312]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:87:55: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*tmp_map_item.bucket_num’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:627:9: enter_function: entry to ‘chd_ph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:698:11: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:699:63: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:715:21: call_function: calling ‘chd_ph_mapping’ from ‘chd_ph_new’
#   85|   	register chd_ph_item_t * tmp_item;
#   86|   	register chd_ph_map_item_t * tmp_map_item = map_items + item_idx;
#   87|-> 	register chd_ph_bucket_t * bucket = buckets + tmp_map_item->bucket_num;
#   88|   	tmp_item = items + bucket->items_list;
#   89|   	

Error: GCC_ANALYZER_WARNING (CWE-476): [#def313]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:248:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘map_item’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:627:9: enter_function: entry to ‘chd_ph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:698:11: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:699:63: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:715:21: call_function: calling ‘chd_ph_mapping’ from ‘chd_ph_new’
#  246|   
#  247|   			g = hl[0] % chd_ph->nbuckets;
#  248|-> 			map_item->f = hl[1] % chd_ph->n;
#  249|   			map_item->h = hl[2] % (chd_ph->n - 1) + 1;
#  250|   			map_item->bucket_num=g;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def314]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:314:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sorted_lists’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:627:9: enter_function: entry to ‘chd_ph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:698:11: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:699:63: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:715:21: call_function: calling ‘chd_ph_mapping’ from ‘chd_ph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:715:21: return_function: returning to ‘chd_ph_new’ from ‘chd_ph_mapping’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:715:19: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:725:21: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:729:19: branch_false: following ‘false’ branch (when ‘sorted_lists’ is NULL)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:734:32: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:734:32: call_function: calling ‘chd_ph_ordering’ from ‘chd_ph_new’
#  312|   		sorted_lists[bucket_size].size++;
#  313|   	};
#  314|-> 	sorted_lists[1].buckets_list = 0;
#  315|   	// Determine final position of list of buckets into the contiguous array that will store all the buckets
#  316|   	for(i = 2; i <= max_bucket_size; i++)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def315]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:808:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mphf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:627:9: enter_function: entry to ‘chd_ph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:698:11: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:699:63: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:715:21: call_function: calling ‘chd_ph_mapping’ from ‘chd_ph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:715:21: return_function: returning to ‘chd_ph_new’ from ‘chd_ph_mapping’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:715:19: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:725:21: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:729:19: branch_false: following ‘false’ branch (when ‘sorted_lists’ is NULL)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:734:32: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:741:37: call_function: calling ‘chd_ph_searching’ from ‘chd_ph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:741:37: return_function: returning to ‘chd_ph_new’ from ‘chd_ph_searching’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:742:19: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:773:13: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:797:11: branch_false: following ‘false’ branch (when ‘failure == 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:807:26: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:807:26: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:808:9: danger: ‘mphf’ could be NULL: unchecked value from [(32)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/31)
#  806|   
#  807|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  808|-> 	mphf->algo = mph->algo;
#  809|   	chd_phf = (chd_ph_data_t *)malloc(sizeof(chd_ph_data_t));
#  810|   	

Error: GCC_ANALYZER_WARNING (CWE-476): [#def316]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:811:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘chd_phf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:627:9: enter_function: entry to ‘chd_ph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:698:11: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:699:63: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:715:21: call_function: calling ‘chd_ph_mapping’ from ‘chd_ph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:715:21: return_function: returning to ‘chd_ph_new’ from ‘chd_ph_mapping’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:715:19: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:725:21: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:729:19: branch_false: following ‘false’ branch (when ‘sorted_lists’ is NULL)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:734:32: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:741:37: call_function: calling ‘chd_ph_searching’ from ‘chd_ph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:741:37: return_function: returning to ‘chd_ph_new’ from ‘chd_ph_searching’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:742:19: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:773:13: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:797:11: branch_false: following ‘false’ branch (when ‘failure == 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:807:26: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:809:36: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:811:9: danger: ‘chd_phf’ could be NULL: unchecked value from [(32)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/31)
#  809|   	chd_phf = (chd_ph_data_t *)malloc(sizeof(chd_ph_data_t));
#  810|   	
#  811|-> 	chd_phf->cs = chd_ph->cs;
#  812|   	chd_ph->cs = NULL; //transfer memory ownership
#  813|   	chd_phf->hl = chd_ph->hl;

Error: GCC_ANALYZER_WARNING (CWE-789): [#def317]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:850:23: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
#  848|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, fd);
#  849|   	DEBUGP("Hash state has %u bytes\n", buflen);
#  850|-> 	buf = (char *)malloc((size_t)buflen);
#  851|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, fd);
#  852|   	chd_ph->hl = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def318]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chd_ph.c:857:23: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
#  855|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, fd);
#  856|   	DEBUGP("Compressed sequence structure has %u bytes\n", buflen);
#  857|-> 	buf = (char *)malloc((size_t)buflen);
#  858|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, fd);
#  859|   	chd_ph->cs = (compressed_seq_t *) calloc(1, sizeof(compressed_seq_t)); 

Error: GCC_ANALYZER_WARNING (CWE-476): [#def319]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:71:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*chm.hashes + (long unsigned int)i * 8’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:70:40: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:71:20: branch_true: following ‘true’ branch (when ‘i != 3’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:71:32: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:71:32: danger: ‘*chm.hashes + (long unsigned int)i * 8’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   69|   
#   70|   	chm->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*3);
#   71|-> 	for(i = 0; i < 3; ++i) chm->hashes[i] = NULL;
#   72|   	//Mapping step
#   73|   	if (mph->verbosity)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def320]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:118:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘visited’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:71:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:71:20: branch_false: following ‘false’ branch (when ‘i == 3’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:73:13: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:99:12: branch_false: following ‘false’ branch (when ‘iterations != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:106:13: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:111:33: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:115:9: branch_true: following ‘true’ branch...
 branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:116:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:118:22: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:118:22: danger: ‘visited + (sizetype)(i >> 3)’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  116|   	for (i = 0; i < chm->n; ++i)
#  117|   	{
#  118|-> 	        if (!GETBIT(visited,i))
#  119|   		{
#  120|   			chm->g[i] = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def321]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:129:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mphf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:71:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:71:20: branch_false: following ‘false’ branch (when ‘i == 3’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:73:13: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:99:12: branch_false: following ‘false’ branch (when ‘iterations != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:106:13: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:115:9: branch_true: following ‘true’ branch...
 branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:128:26: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:129:9: danger: ‘mphf’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
#  127|   
#  128|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  129|-> 	mphf->algo = mph->algo;
#  130|   	chmf = (chm_data_t *)malloc(sizeof(chm_data_t));
#  131|   	chmf->g = chm->g;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def322]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:131:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘chmf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:71:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:71:20: branch_false: following ‘false’ branch (when ‘i == 3’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:73:13: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:99:12: branch_false: following ‘false’ branch (when ‘iterations != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:106:13: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:115:9: branch_true: following ‘true’ branch...
 branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:130:30: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:131:9: danger: ‘chmf’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#  129|   	mphf->algo = mph->algo;
#  130|   	chmf = (chm_data_t *)malloc(sizeof(chm_data_t));
#  131|-> 	chmf->g = chm->g;
#  132|   	chm->g = NULL; //transfer memory ownership
#  133|   	chmf->hashes = chm->hashes;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def323]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:252:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘chm’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:247:41: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:252:9: danger: ‘chm’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  250|   	mphf->data = chm;
#  251|   	nbytes = fread(&nhashes, sizeof(cmph_uint32), (size_t)1, f);
#  252|-> 	chm->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(nhashes + 1));
#  253|   	chm->hashes[nhashes] = NULL;
#  254|   	DEBUGP("Reading %u hashes\n", nhashes);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def324]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:252:40: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘(long unsigned int)(nhashes + 1) * 8’ as allocation size without upper-bounds checking
#  250|   	mphf->data = chm;
#  251|   	nbytes = fread(&nhashes, sizeof(cmph_uint32), (size_t)1, f);
#  252|-> 	chm->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(nhashes + 1));
#  253|   	chm->hashes[nhashes] = NULL;
#  254|   	DEBUGP("Reading %u hashes\n", nhashes);

Error: GCC_ANALYZER_WARNING (CWE-823): [#def325]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:253:9: warning[-Wanalyzer-tainted-offset]: use of attacker-controlled value ‘(long unsigned int)nhashes * 8’ as offset without upper-bounds checking
#  251|   	nbytes = fread(&nhashes, sizeof(cmph_uint32), (size_t)1, f);
#  252|   	chm->hashes = (hash_state_t **)malloc(sizeof(hash_state_t *)*(nhashes + 1));
#  253|-> 	chm->hashes[nhashes] = NULL;
#  254|   	DEBUGP("Reading %u hashes\n", nhashes);
#  255|   	for (i = 0; i < nhashes; ++i)

Error: GCC_ANALYZER_WARNING (CWE-789): [#def326]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:260:31: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:255:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:258:26: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:260:31: danger: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
#  258|   		nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  259|   		DEBUGP("Hash state has %u bytes\n", buflen);
#  260|-> 		buf = (char *)malloc((size_t)buflen);
#  261|   		nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  262|   		state = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:268:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:252:40: acquire_memory: allocated here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:255:21: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:268:24: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/chm.c:268:18: danger: ‘<unknown>’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  266|   
#  267|   	DEBUGP("Reading m and n\n");
#  268|-> 	nbytes = fread(&(chm->n), sizeof(cmph_uint32), (size_t)1, f);	
#  269|   	nbytes = fread(&(chm->m), sizeof(cmph_uint32), (size_t)1, f);	
#  270|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def328]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/cmph.c:116:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*key’ where non-null expected
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/cmph.c:115:24: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/cmph.c:116:9: danger: argument 1 (‘malloc((strlen(*<unknown>) & 4294967295) + 1)’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  114|   	size = *keylen;
#  115|           *key = (char *)malloc(size + 1);
#  116|->         strcpy(*key, keys_vd[cmph_vector->position]);
#  117|           cmph_vector->position = cmph_vector->position + 1;
#  118|   	return (int)(*keylen);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def329]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/cmph_structs.c:12:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘mph’ where non-null expected
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/cmph_structs.c:11:47: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/cmph_structs.c:12:9: danger: argument 1 (‘mph’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#argument 1 of ‘__builtin_memset’ must be non-null
#   10|   {
#   11|   	cmph_config_t *mph = (cmph_config_t *)malloc(sizeof(cmph_config_t));
#   12|-> 	memset(mph, 0, sizeof(cmph_config_t));
#   13|   	if (mph == NULL) return NULL;
#   14|   	mph->key_source = key_source;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def330]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/cmph_structs.c:65:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mphf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/cmph_structs.c:48:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/cmph_structs.c:49:21: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/cmph_structs.c:52:20: branch_true: following ‘true’ branch (when ‘i != 9’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/cmph_structs.c:54:21: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/cmph_structs.c:59:12: branch_false: following ‘false’ branch (when ‘algo != 9’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/cmph_structs.c:64:26: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/cmph_structs.c:64:26: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/cmph_structs.c:65:9: danger: ‘mphf’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#   63|   	}
#   64|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#   65|-> 	mphf->algo = algo;
#   66|   	nbytes = fread(&(mphf->size), sizeof(mphf->size), (size_t)1, f);
#   67|   	mphf->data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def331]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:64:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘select_vec’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:49:38: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:53:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:58:27: branch_true: following ‘true’ branch...
 branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_rank.c:64:17: danger: ‘select_vec + (long unsigned int)(i + 4294967295) * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#   62|   			j++;
#   63|   		}
#   64|-> 		select_vec[i - 1] = j;
#   65|   	};
#   66|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def332]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:60:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lengths’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:49:57: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:56:20: branch_true: following ‘true’ branch (when ‘i < n’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:58:30: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:58:19: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:60:32: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:60:25: danger: ‘lengths + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#   58|   		if(vals_table[i] == 0)
#   59|   		{
#   60|-> 			lengths[i] = 0;
#   61|   		}
#   62|   		else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def333]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:64:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lengths’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:49:57: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:56:20: branch_true: following ‘true’ branch (when ‘i < n’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:58:30: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:58:19: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:64:38: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/compressed_seq.c:64:25: danger: ‘lengths + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#   62|   		else
#   63|   		{
#   64|-> 			lengths[i] = compressed_seq_i_log2(vals_table[i] + 1);
#   65|   			cs->total_length += lengths[i];
#   66|   		};

Error: GCC_ANALYZER_WARNING (CWE-476): [#def334]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:177:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘random_table’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:163:54: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:175:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:177:29: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:177:17: danger: ‘random_table + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  175|   	for(i = 0; i < fch->m; i++)
#  176|   	{
#  177|-> 		random_table[i] = i;
#  178|   	}
#  179|   	permut(random_table, fch->m);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def335]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:182:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘random_table’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:161:19: enter_function: entry to ‘searching’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:163:54: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:175:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:179:9: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:179:9: call_function: calling ‘permut’ from ‘searching’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:179:9: return_function: returning to ‘searching’ from ‘permut’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:180:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:182:39: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:182:27: danger: ‘random_table + (long unsigned int)i * 4’ could be NULL: unchecked value from [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
#  180|   	for(i = 0; i < fch->m; i++)
#  181|   	{
#  182|-> 		map_table[random_table[i]] = i;
#  183|   	}
#  184|   	do {   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def336]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:212:71: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘random_table’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:161:19: enter_function: entry to ‘searching’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:163:54: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:175:20: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:179:9: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:179:9: call_function: calling ‘permut’ from ‘searching’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:179:9: return_function: returning to ‘searching’ from ‘permut’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:180:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:189:20: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:191:25: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:198:28: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:199:94: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:200:28: branch_false: following ‘false’ branch...
 branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:206:36: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:212:71: danger: ‘random_table + (long unsigned int)(z + filled_count) * 4’ could be NULL: unchecked value from [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
#  210|   				counter = 0; 
#  211|   				restart = 0; // false
#  212|-> 				fch->g[sorted_indexes[i]] = (fch->m + random_table[filled_count + z] - h2) % fch->m;
#  213|   				//DEBUGP("g[%u]: %u\n", sorted_indexes[i], fch->g[sorted_indexes[i]]);
#  214|   				j = INDEX;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def337]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:294:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mphf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:251:9: enter_function: entry to ‘fch_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:274:20: branch_false: following ‘false’ branch (when ‘buckets’ is NULL)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:275:27: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:280:20: branch_false: following ‘false’ branch (when ‘sorted_indexes’ is NULL)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:281:34: call_function: inlined call to ‘ordering’ from ‘fch_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:286:35: call_function: calling ‘searching’ from ‘fch_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:286:35: return_function: returning to ‘fch_new’ from ‘searching’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:289:17: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:290:12: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:290:12: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:291:12: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:292:12: branch_false: following ‘false’ branch (when ‘iterations != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:293:26: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:293:26: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:294:9: danger: ‘mphf’ could be NULL: unchecked value from [(27)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/26)
#  292|   	if (iterations == 0) return NULL;
#  293|   	mphf = (cmph_t *)malloc(sizeof(cmph_t));
#  294|-> 	mphf->algo = mph->algo;
#  295|   	fchf = (fch_data_t *)malloc(sizeof(fch_data_t));
#  296|   	fchf->g = fch->g;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def338]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:296:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fchf’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:251:9: enter_function: entry to ‘fch_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:274:20: branch_false: following ‘false’ branch (when ‘buckets’ is NULL)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:275:27: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:280:20: branch_false: following ‘false’ branch (when ‘sorted_indexes’ is NULL)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:281:34: call_function: inlined call to ‘ordering’ from ‘fch_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:286:35: call_function: calling ‘searching’ from ‘fch_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:286:35: return_function: returning to ‘fch_new’ from ‘searching’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:289:17: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:290:12: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:290:12: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:291:12: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:292:12: branch_false: following ‘false’ branch (when ‘iterations != 0’)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:293:26: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:295:30: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:296:9: danger: ‘fchf’ could be NULL: unchecked value from [(27)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/26)
#  294|   	mphf->algo = mph->algo;
#  295|   	fchf = (fch_data_t *)malloc(sizeof(fch_data_t));
#  296|-> 	fchf->g = fch->g;
#  297|   	fch->g = NULL; //transfer memory ownership
#  298|   	fchf->h1 = fch->h1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def339]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:373:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fch’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:365:41: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:373:9: danger: ‘fch’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  371|   	mphf->data = fch;
#  372|   	//DEBUGP("Reading h1\n");
#  373|-> 	fch->h1 = NULL;
#  374|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  375|   	//DEBUGP("Hash state of h1 has %u bytes\n", buflen);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def340]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:376:23: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
#  374|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  375|   	//DEBUGP("Hash state of h1 has %u bytes\n", buflen);
#  376|-> 	buf = (char *)malloc((size_t)buflen);
#  377|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  378|   	fch->h1 = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING (CWE-789): [#def341]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/fch.c:387:23: warning[-Wanalyzer-tainted-allocation-size]: use of attacker-controlled value ‘buflen’ as allocation size without upper-bounds checking
#  385|   	nbytes = fread(&buflen, sizeof(cmph_uint32), (size_t)1, f);
#  386|   	//DEBUGP("Hash state of h2 has %u bytes\n", buflen);
#  387|-> 	buf = (char *)malloc((size_t)buflen);
#  388|   	nbytes = fread(buf, (size_t)buflen, (size_t)1, f);
#  389|   	fch->h2 = hash_state_load(buf, buflen);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def342]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:165:41: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*g.first + (long unsigned int)i * 4’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:36:10: enter_function: entry to ‘graph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:39:12: branch_false: following ‘false’ branch (when ‘graph’ is non-NULL)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:41:39: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:43:39: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:49:9: call_function: calling ‘graph_clear_edges’ from ‘graph_new’
#  163|   {
#  164|   	cmph_uint32 i;
#  165|-> 	for (i = 0; i < g->nnodes; ++i) g->first[i] = EMPTY;
#  166|   	for (i = 0; i < g->nedges*2; ++i) 
#  167|   	{

Error: GCC_ANALYZER_WARNING (CWE-476): [#def343]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:168:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*g.edges + (long unsigned int)i * 4’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:36:10: enter_function: entry to ‘graph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:39:12: branch_false: following ‘false’ branch (when ‘graph’ is non-NULL)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:41:39: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:41:39: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:49:9: call_function: calling ‘graph_clear_edges’ from ‘graph_new’
#  166|   	for (i = 0; i < g->nedges*2; ++i) 
#  167|   	{
#  168|-> 		g->edges[i] = EMPTY;
#  169|   		g->next[i] = EMPTY;
#  170|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def344]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:169:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*g.next + (long unsigned int)i * 4’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:36:10: enter_function: entry to ‘graph_new’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:39:12: branch_false: following ‘false’ branch (when ‘graph’ is non-NULL)...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:41:39: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:42:39: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:49:9: call_function: calling ‘graph_clear_edges’ from ‘graph_new’
#  167|   	{
#  168|   		g->edges[i] = EMPTY;
#  169|-> 		g->next[i] = EMPTY;
#  170|   	}
#  171|   	g->cedges = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def345]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:243:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘deleted’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:232:45: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:241:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:243:23: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:243:23: danger: ‘deleted + (sizetype)(i >> 3)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  241|   	for (i = 0; i < g->nedges; ++i)
#  242|   	{
#  243|-> 		if (!(GETBIT(deleted, i))) 
#  244|   		{
#  245|   			DEBUGP("Edge %u %u->%u was not deleted\n", i, g->edges[i], g->edges[i + g->nedges]);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def346]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:278:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘deleted’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:263:45: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:276:21: branch_true: following ‘true’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:278:23: branch_true: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/graph.c:278:23: danger: ‘deleted + (sizetype)(i >> 3)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  276|   	for (i = 0; i < g->nedges; ++i)
#  277|   	{
#  278|-> 		if (!(GETBIT(deleted,i))) 
#  279|   		{
#  280|   			DEBUGP("Edge %u %u->%u belongs to the 2-core\n", i, g->edges[i], g->edges[i + g->nedges]);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def347]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/jenkins_hash.c:91:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘state’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/jenkins_hash.c:89:53: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/jenkins_hash.c:91:9: danger: ‘state’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   89|   	jenkins_state_t *state = (jenkins_state_t *)malloc(sizeof(jenkins_state_t));
#   90|   	DEBUGP("Initializing jenkins hash\n");
#   91|-> 	state->seed = ((cmph_uint32)rand() % size);
#   92|   	return state;
#   93|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def348]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/jenkins_hash.c:237:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dest_state’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/jenkins_hash.c:236:58: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/jenkins_hash.c:237:9: danger: ‘dest_state’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  235|   {
#  236|   	jenkins_state_t *dest_state = (jenkins_state_t *)malloc(sizeof(jenkins_state_t));
#  237|-> 	dest_state->hashfunc = src_state->hashfunc;
#  238|   	dest_state->seed = src_state->seed;
#  239|   	return dest_state;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def349]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/jenkins_hash.c:245:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘state’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/jenkins_hash.c:244:53: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/jenkins_hash.c:245:9: danger: ‘state’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  243|   {
#  244|   	jenkins_state_t *state = (jenkins_state_t *)malloc(sizeof(jenkins_state_t));
#  245|-> 	state->seed = *(cmph_uint32 *)buf;
#  246|   	state->hashfunc = CMPH_HASH_JENKINS;
#  247|   	DEBUGP("Loaded jenkins state with seed %u\n", state->seed);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def350]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/select.c:84:55: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘bits_table’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/select.c:94:6: enter_function: entry to ‘select_generate’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/select.c:114:40: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/select.c:158:11: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/select.c:164:9: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/select.c:164:9: call_function: calling ‘select_generate_sel_table’ from ‘select_generate’
#   82|   		{
#   83|   			old_part_sum = part_sum; 
#   84|-> 			part_sum += rank_lookup_table[bits_table[vec_idx]];
#   85|   			vec_idx++;
#   86|   		} while (part_sum <= one_idx);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def351]
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/select.c:88:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*sel.select_table’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/select.c:94:6: enter_function: entry to ‘select_generate’
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/select.c:120:44: acquire_memory: this call could return NULL
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/select.c:158:11: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/select.c:164:9: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../girepository/cmph/select.c:164:9: call_function: calling ‘select_generate_sel_table’ from ‘select_generate’
#   86|   		} while (part_sum <= one_idx);
#   87|   		
#   88|-> 		sel->select_table[sel_table_idx] = select_lookup_table[bits_table[vec_idx - 1]][one_idx - old_part_sum] + ((vec_idx - 1) << 3); // ((vec_idx - 1) << 3) = ((vec_idx - 1) * 8)
#   89|   		one_idx += STEP_SELECT_TABLE ;
#   90|   		sel_table_idx++;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def352]
gobject-introspection-1.84.0/redhat-linux-build/../tools/compiler.c:118:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
gobject-introspection-1.84.0/redhat-linux-build/../tools/compiler.c:63:6: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../tools/compiler.c:76:10: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../tools/compiler.c:83:14: acquire_resource: opened here
gobject-introspection-1.84.0/redhat-linux-build/../tools/compiler.c:85:10: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../tools/compiler.c:93:39: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../tools/compiler.c:118:10: danger: ‘file’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  116|     g_free (tmp_filename);
#  117|   
#  118|->   return success;
#  119|   }
#  120|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
gobject-introspection-1.84.0/redhat-linux-build/../tools/compiler.c:118:10: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
gobject-introspection-1.84.0/redhat-linux-build/../tools/compiler.c:63:6: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../tools/compiler.c:76:10: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../tools/compiler.c:83:14: acquire_memory: allocated here
gobject-introspection-1.84.0/redhat-linux-build/../tools/compiler.c:85:10: branch_false: following ‘false’ branch...
gobject-introspection-1.84.0/redhat-linux-build/../tools/compiler.c:93:39: branch_false: ...to here
gobject-introspection-1.84.0/redhat-linux-build/../tools/compiler.c:118:10: danger: ‘file’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  116|     g_free (tmp_filename);
#  117|   
#  118|->   return success;
#  119|   }
#  120|   

Error: CPPCHECK_WARNING (CWE-476): [#def354]
gobject-introspection-1.84.0/redhat-linux-build/giscanner/scannerlexer.c:3021: warning[nullPointer]: Possible null pointer dereference: b
# 3019|       
# 3020|   	yy_flush_buffer( b );
# 3021|-> 
# 3022|   	b->yy_input_file = file;
# 3023|   	b->yy_fill_buffer = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def355]
gobject-introspection-1.84.0/redhat-linux-build/giscanner/scannerlexer.c:3022: warning[nullPointer]: Possible null pointer dereference: b
# 3020|   	yy_flush_buffer( b );
# 3021|   
# 3022|-> 	b->yy_input_file = file;
# 3023|   	b->yy_fill_buffer = 1;
# 3024|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def356]
gobject-introspection-1.84.0/redhat-linux-build/giscanner/scannerparser.c:2410:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
gobject-introspection-1.84.0/redhat-linux-build/../giscanner/scannerparser.y:1907:1: enter_function: entry to ‘gi_source_scanner_parse_file’
gobject-introspection-1.84.0/redhat-linux-build/../giscanner/scannerparser.y:1913:12: call_function: calling ‘parse_file’ from ‘gi_source_scanner_parse_file’
# 2408|           if (! yyptr)
# 2409|             YYNOMEM;
# 2410|->         YYSTACK_RELOCATE (yyss_alloc, yyss);
# 2411|           YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# 2412|   #  undef YYSTACK_RELOCATE

Error: CPPCHECK_WARNING (CWE-457): [#def357]
gobject-introspection-1.84.0/tests/repository/gitypelibtest.c:271: warning[uninitvar]: Uninitialized variables: sig_info.dummy1, sig_info.dummy2, sig_info.dummy3, sig_info.dummy4, sig_info.dummy5, sig_info.dummy6, sig_info.dummy7
#  269|     g_assert (i >= 0);
#  270|   
#  271|->   g_assert_cmpint (g_callable_info_get_n_args (sig_info), ==, 2);
#  272|   
#  273|     /* verify array argument */

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-167.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namegobject-introspection-1.84.0-1.fc43
store-results-to/tmp/tmp329fmfn7/gobject-introspection-1.84.0-1.fc43.tar.xz
time-created2025-04-25 12:50:29
time-finished2025-04-25 12:52:26
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp329fmfn7/gobject-introspection-1.84.0-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp329fmfn7/gobject-introspection-1.84.0-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9