dtc-1.7.0-9.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
dtc-1.7.0-build/dtc-1.7.0/checks.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-674): [#def2]
dtc-1.7.0-build/dtc-1.7.0/checks.c: scope_hint: In function ‘disable_warning_error’
dtc-1.7.0-build/dtc-1.7.0/checks.c:2013:41: warning[-Wanalyzer-infinite-recursion]: infinite recursion
# 2011|   			for (j = 0; j < cc->num_prereqs; j++)
# 2012|   				if (cc->prereq[j] == c)
# 2013|-> 					disable_warning_error(cc, warn, error);
# 2014|   		}
# 2015|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.l: scope_hint: In function ‘convert_file’
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.l:201:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc((long unsigned int)len + 3)’
#  199|   
#  200|   	yyin = fopen(fname, "r");
#  201|-> 	if (!yyin)
#  202|   		die("Couldn't open input file %s: %s\n",
#  203|   		    fname, strerror(errno));

Error: CPPCHECK_WARNING: [#def4]
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def5]
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c: scope_hint: In function ‘yy_get_previous_state’
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c:1327:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*yy_cp’
dtc-1.7.0-build/dtc-1.7.0/srcpos.h:11: included_from: Included from here.
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.l:29: included_from: Included from here.
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c:776:1: note: in expansion of macro ‘YY_DECL’
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c:799:10: note: in expansion of macro ‘YY_CURRENT_BUFFER’
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c:1612:12: note: in expansion of macro ‘YY_CURRENT_BUFFER’
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c:1612:12: note: in expansion of macro ‘YY_CURRENT_BUFFER’
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c:1579:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
# 1325|   
# 1326|   	for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
# 1327|-> 		{
# 1328|   		YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
# 1329|   		if ( yy_accept[yy_current_state] )

Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c: scope_hint: In function ‘yy_load_buffer_state’
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c:1508:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘yyin’
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c:776:1: note: in expansion of macro ‘YY_DECL’
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c:799:10: note: in expansion of macro ‘YY_CURRENT_BUFFER’
# 1506|   {
# 1507|       	(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
# 1508|-> 	(yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
# 1509|   	yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
# 1510|   	(yy_hold_char) = *(yy_c_buf_p);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c:1508:14: warning[-Wanalyzer-malloc-leak]: leak of ‘yyin’
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c:776:1: note: in expansion of macro ‘YY_DECL’
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c:799:10: note: in expansion of macro ‘YY_CURRENT_BUFFER’
# 1506|   {
# 1507|       	(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
# 1508|-> 	(yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
# 1509|   	yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
# 1510|   	(yy_hold_char) = *(yy_c_buf_p);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c: scope_hint: In function ‘yy_create_buffer’
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c:1532:12: warning[-Wanalyzer-malloc-leak]: leak of ‘yyalloc(64)’
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c:776:1: note: in expansion of macro ‘YY_DECL’
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c:799:10: note: in expansion of macro ‘YY_CURRENT_BUFFER’
# 1530|   	 * we need to put in 2 end-of-buffer characters.
# 1531|   	 */
# 1532|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1533|   	if ( ! b->yy_ch_buf )
# 1534|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

Error: CPPCHECK_WARNING (CWE-476): [#def9]
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c:1572: warning[nullPointer]: Possible null pointer dereference: b
# 1570|       
# 1571|   	yy_flush_buffer( b );
# 1572|-> 
# 1573|   	b->yy_input_file = file;
# 1574|   	b->yy_fill_buffer = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def10]
dtc-1.7.0-build/dtc-1.7.0/convert-dtsv0-lexer.lex.c:1573: warning[nullPointer]: Possible null pointer dereference: b
# 1571|   	yy_flush_buffer( b );
# 1572|   
# 1573|-> 	b->yy_input_file = file;
# 1574|   	b->yy_fill_buffer = 1;
# 1575|   

Error: CPPCHECK_WARNING: [#def11]
dtc-1.7.0-build/dtc-1.7.0/data.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def12]
dtc-1.7.0-build/dtc-1.7.0/dtc-lexer.lex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
dtc-1.7.0-build/dtc-1.7.0/dtc-lexer.lex.c: scope_hint: In function ‘yy_get_next_buffer’
dtc-1.7.0-build/dtc-1.7.0/dtc-lexer.lex.c:1458:18: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
dtc-1.7.0-build/dtc-1.7.0/dtc-lexer.lex.c:1444:45: note: in expansion of macro ‘YY_CURRENT_BUFFER_LVALUE’
dtc-1.7.0-build/dtc-1.7.0/dtc-lexer.lex.c:1444:45: note: in expansion of macro ‘YY_CURRENT_BUFFER_LVALUE’
# 1456|   				else
# 1457|   					b->yy_buf_size *= 2;
# 1458|-> 
# 1459|   				b->yy_ch_buf = (char *)
# 1460|   					/* Include room in for 2 EOB chars. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
dtc-1.7.0-build/dtc-1.7.0/dtc-lexer.lex.c: scope_hint: In function ‘yy_create_buffer’
dtc-1.7.0-build/dtc-1.7.0/dtc-lexer.lex.c:1746:12: warning[-Wanalyzer-malloc-leak]: leak of ‘yyalloc(64)’
# 1744|   	 * we need to put in 2 end-of-buffer characters.
# 1745|   	 */
# 1746|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1747|   	if ( ! b->yy_ch_buf )
# 1748|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

Error: CPPCHECK_WARNING (CWE-476): [#def15]
dtc-1.7.0-build/dtc-1.7.0/dtc-lexer.lex.c:1786: warning[nullPointer]: Possible null pointer dereference: b
# 1784|       
# 1785|   	yy_flush_buffer( b );
# 1786|-> 
# 1787|   	b->yy_input_file = file;
# 1788|   	b->yy_fill_buffer = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def16]
dtc-1.7.0-build/dtc-1.7.0/dtc-lexer.lex.c:1787: warning[nullPointer]: Possible null pointer dereference: b
# 1785|   	yy_flush_buffer( b );
# 1786|   
# 1787|-> 	b->yy_input_file = file;
# 1788|   	b->yy_fill_buffer = 1;
# 1789|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
dtc-1.7.0-build/dtc-1.7.0/dtc-lexer.lex.c: scope_hint: In function ‘yy_scan_buffer’
dtc-1.7.0-build/dtc-1.7.0/dtc-lexer.lex.c:2000:25: warning[-Wanalyzer-malloc-leak]: leak of ‘yyalloc(n)’
# 1998|   	for ( i = 0; i < _yybytes_len; ++i )
# 1999|   		buf[i] = yybytes[i];
# 2000|-> 
# 2001|   	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 2002|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c: scope_hint: In function ‘yyparse’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:456:21: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:104:40: note: in definition of macro ‘YY_CAST’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:442:25: note: in expansion of macro ‘YYMALLOC’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:1248:20: note: in expansion of macro ‘YYSTACK_ALLOC’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:1321:17: note: in expansion of macro ‘YYTRANSLATE’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:104:40: note: in definition of macro ‘YY_CAST’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:442:25: note: in expansion of macro ‘YYMALLOC’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:1248:20: note: in expansion of macro ‘YYSTACK_ALLOC’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:504:9: note: in expansion of macro ‘YYCOPY’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:1251:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:104:40: note: in definition of macro ‘YY_CAST’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:442:25: note: in expansion of macro ‘YYMALLOC’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:1248:20: note: in expansion of macro ‘YYSTACK_ALLOC’
#  454|   #  endif
#  455|   #  ifndef YYMALLOC
#  456|-> #   define YYMALLOC malloc
#  457|   #   if ! defined malloc && ! defined EXIT_SUCCESS
#  458|   void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def19]
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:519:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:504:9: note: in expansion of macro ‘YYCOPY’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:1251:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:504:9: note: in expansion of macro ‘YYCOPY’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:1251:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:504:9: note: in expansion of macro ‘YYCOPY’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:1251:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  517|   #  if defined __GNUC__ && 1 < __GNUC__
#  518|   #   define YYCOPY(Dst, Src, Count) \
#  519|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  520|   #  else
#  521|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-127): [#def20]
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:2101:28: warning[-Wanalyzer-out-of-bounds]: buffer under-read
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:1321:17: note: in expansion of macro ‘YYTRANSLATE’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.y:12: included_from: Included from here.
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:1385:3: note: in expansion of macro ‘YYLLOC_DEFAULT’
dtc-1.7.0-build/dtc-1.7.0/srcpos.h:78:33: note: in expansion of macro ‘YYRHSLOC’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:1385:3: note: in expansion of macro ‘YYLLOC_DEFAULT’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:2101:28: note: valid subscripts for ‘yypgoto’ are ‘[0]’ to ‘[30]’
#  └──────────────────────────────────────┘
#                     ^
# 2099|     {
# 2100|       const int yylhs = yyr1[yyn] - YYNTOKENS;
# 2101|->     const int yyi = yypgoto[yylhs] + *yyssp;
# 2102|       yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
# 2103|                  ? yytable[yyi]

Error: GCC_ANALYZER_WARNING (CWE-127): [#def21]
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:2104:27: warning[-Wanalyzer-out-of-bounds]: buffer under-read
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:1321:17: note: in expansion of macro ‘YYTRANSLATE’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:1385:3: note: in expansion of macro ‘YYLLOC_DEFAULT’
dtc-1.7.0-build/dtc-1.7.0/srcpos.h:78:33: note: in expansion of macro ‘YYRHSLOC’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:1385:3: note: in expansion of macro ‘YYLLOC_DEFAULT’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:2104:27: note: valid subscripts for ‘yydefgoto’ are ‘[0]’ to ‘[30]’
#  └─────────────────────────────────────┘
#                     ^
# 2102|       yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
# 2103|                  ? yytable[yyi]
# 2104|->                : yydefgoto[yylhs]);
# 2105|     }
# 2106|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:2268:10: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:1321:17: note: in expansion of macro ‘YYTRANSLATE’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:104:40: note: in definition of macro ‘YY_CAST’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:442:25: note: in expansion of macro ‘YYMALLOC’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:1248:20: note: in expansion of macro ‘YYSTACK_ALLOC’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:504:9: note: in expansion of macro ‘YYCOPY’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:1251:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:443:24: note: in expansion of macro ‘YYFREE’
dtc-1.7.0-build/dtc-1.7.0/dtc-parser.tab.c:2265:5: note: in expansion of macro ‘YYSTACK_FREE’
# 2266|   #endif
# 2267|   
# 2268|->   return yyresult;
# 2269|   }
# 2270|   

Error: CPPCHECK_WARNING: [#def23]
dtc-1.7.0-build/dtc-1.7.0/dtc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def24]
dtc-1.7.0-build/dtc-1.7.0/fdtdump.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING (CWE-768): [#def25]
dtc-1.7.0-build/dtc-1.7.0/fdtdump.c:102: error[unknownEvaluationOrder]: Expression 'p+=4,*((const fdt32_t*)(p-4))' depends on order of evaluation of side effects
#  100|   
#  101|   	p = p_struct;
#  102|-> 	while ((tag = fdt32_to_cpu(GET_CELL(p))) != FDT_END) {
#  103|   
#  104|   		dumpf("%04"PRIxPTR": tag: 0x%08"PRIx32" (%s)\n",

Error: CPPCHECK_WARNING (CWE-768): [#def26]
dtc-1.7.0-build/dtc-1.7.0/fdtdump.c:136: error[unknownEvaluationOrder]: Expression 'p+=4,*((const fdt32_t*)(p-4))' depends on order of evaluation of side effects
#  134|   			break;
#  135|   		}
#  136|-> 		sz = fdt32_to_cpu(GET_CELL(p));
#  137|   		s = p_strings + fdt32_to_cpu(GET_CELL(p));
#  138|   		if (version < 16 && sz >= 8)

Error: CPPCHECK_WARNING (CWE-768): [#def27]
dtc-1.7.0-build/dtc-1.7.0/fdtdump.c:137: error[unknownEvaluationOrder]: Expression 'p+=4,*((const fdt32_t*)(p-4))' depends on order of evaluation of side effects
#  135|   		}
#  136|   		sz = fdt32_to_cpu(GET_CELL(p));
#  137|-> 		s = p_strings + fdt32_to_cpu(GET_CELL(p));
#  138|   		if (version < 16 && sz >= 8)
#  139|   			p = PALIGN(p, 8);

Error: CPPCHECK_WARNING: [#def28]
dtc-1.7.0-build/dtc-1.7.0/fdtget.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def29]
dtc-1.7.0-build/dtc-1.7.0/fdtput.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def30]
dtc-1.7.0-build/dtc-1.7.0/flattree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def31]
dtc-1.7.0-build/dtc-1.7.0/flattree.c: scope_hint: In function ‘dt_from_blob’
dtc-1.7.0-build/dtc-1.7.0/flattree.c:868:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(struct fdt_header *)<unknown>.off_dt_struct’
#  866|   	}
#  867|   
#  868|-> 	off_dt = fdt32_to_cpu(fdt->off_dt_struct);
#  869|   	off_str = fdt32_to_cpu(fdt->off_dt_strings);
#  870|   	off_mem_rsvmap = fdt32_to_cpu(fdt->off_mem_rsvmap);

Error: CPPCHECK_WARNING: [#def32]
dtc-1.7.0-build/dtc-1.7.0/libfdt/fdt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def33]
dtc-1.7.0-build/dtc-1.7.0/libfdt/fdt_check.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def34]
dtc-1.7.0-build/dtc-1.7.0/libfdt/fdt_overlay.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def35]
dtc-1.7.0-build/dtc-1.7.0/libfdt/fdt_ro.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def36]
dtc-1.7.0-build/dtc-1.7.0/libfdt/fdt_rw.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def37]
dtc-1.7.0-build/dtc-1.7.0/libfdt/fdt_rw.c:287:3: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  285|   
#  286|   	if (len)
#  287|-> 		memcpy(prop_data, val, len);
#  288|   	return 0;
#  289|   }

Error: CPPCHECK_WARNING: [#def38]
dtc-1.7.0-build/dtc-1.7.0/libfdt/fdt_sw.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
dtc-1.7.0-build/dtc-1.7.0/libfdt/libfdt_env.h:29:69: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc((long unsigned int)((((unsigned int)((uint8_t*)&<unknown>)[0] << 24 | (unsigned int)((uint8_t*)&<unknown>)[1] << 16) | (unsigned int)((uint8_t*)&<unknown>)[2] << 8) | (unsigned int)((uint8_t*)&<unknown>)[3]))’
dtc-1.7.0-build/dtc-1.7.0/libfdt/libfdt_env.h:31:27: note: in expansion of macro ‘EXTRACT_BYTE’
dtc-1.7.0-build/dtc-1.7.0/libfdt/libfdt_env.h:53:35: note: in expansion of macro ‘CPU_TO_FDT32’
dtc-1.7.0-build/dtc-1.7.0/flattree.c: scope_hint: In function ‘dt_from_blob’
dtc-1.7.0-build/dtc-1.7.0/dtc.h:24: included_from: Included from here.
dtc-1.7.0-build/dtc-1.7.0/libfdt/libfdt_env.h:31:27: note: in expansion of macro ‘EXTRACT_BYTE’
dtc-1.7.0-build/dtc-1.7.0/libfdt/libfdt_env.h:53:35: note: in expansion of macro ‘CPU_TO_FDT32’
#   27|   typedef uint64_t FDT_BITWISE fdt64_t;
#   28|   
#   29|-> #define EXTRACT_BYTE(x, n)	((unsigned long long)((uint8_t *)&x)[n])
#   30|   #define CPU_TO_FDT16(x) ((EXTRACT_BYTE(x, 0) << 8) | EXTRACT_BYTE(x, 1))
#   31|   #define CPU_TO_FDT32(x) ((EXTRACT_BYTE(x, 0) << 24) | (EXTRACT_BYTE(x, 1) << 16) | \

Error: CPPCHECK_WARNING: [#def40]
dtc-1.7.0-build/dtc-1.7.0/livetree.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_MangledTypeQueryModule’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:621:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iter’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:3403:12: note: in expansion of macro ‘SWIG_TypeQuery’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:3403:12: note: in expansion of macro ‘SWIG_TypeQuery’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_MangledTypeQueryModule’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:2970:37: note: in expansion of macro ‘SWIG_GetModule’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:2970:37: note: in expansion of macro ‘SWIG_GetModule’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:2970:37: note: in expansion of macro ‘SWIG_GetModule’
#  619|     swig_module_info *iter = start;
#  620|     do {
#  621|->     if (iter->size) {
#  622|         size_t l = 0;
#  623|         size_t r = iter->size - 1;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def42]
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1143:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9804:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9886:1: note: in expansion of macro ‘SWIG_init’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9626:17: note: in expansion of macro ‘SWIG_GetModule’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9626:17: note: in expansion of macro ‘SWIG_GetModule’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:10005:3: note: in expansion of macro ‘SWIG_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9807:15: note: in expansion of macro ‘SWIG_NewPackedObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1607:3: note: in expansion of macro ‘Py_INCREF’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9815:9: note: in expansion of macro ‘Py_DECREF’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9804:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1143:57: note: read of 8 bytes from after the end of ‘swig_const_table’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9804:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1143:57: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9804:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
#                                                            └──────────────────────────┘
#                                                                         ^
# 1141|   #endif
# 1142|   
# 1143|-> #define SWIG_InternalNewPointerObj(ptr, type, flags)	SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
# 1144|   
# 1145|   #define SWIG_CheckImplicit(ty)                          SWIG_Python_CheckImplicit(ty) 

Error: GCC_ANALYZER_WARNING (CWE-126): [#def43]
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1151:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9807:15: note: in expansion of macro ‘SWIG_NewPackedObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9886:1: note: in expansion of macro ‘SWIG_init’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9626:17: note: in expansion of macro ‘SWIG_GetModule’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9626:17: note: in expansion of macro ‘SWIG_GetModule’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:10005:3: note: in expansion of macro ‘SWIG_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9807:15: note: in expansion of macro ‘SWIG_NewPackedObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1607:3: note: in expansion of macro ‘Py_INCREF’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9815:9: note: in expansion of macro ‘Py_DECREF’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9807:15: note: in expansion of macro ‘SWIG_NewPackedObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1151:57: note: read of 8 bytes from after the end of ‘swig_const_table’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9807:15: note: in expansion of macro ‘SWIG_NewPackedObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1151:57: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9807:15: note: in expansion of macro ‘SWIG_NewPackedObj’
#                                                            └──────────────────────────┘
#                                                                         ^
# 1149|   /* for raw packed data */
# 1150|   #define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
# 1151|-> #define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
# 1152|   
# 1153|   /* for class or struct pointers */

Error: GCC_ANALYZER_WARNING (CWE-126): [#def44]
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9801:29: warning[-Wanalyzer-out-of-bounds]: buffer over-read
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9886:1: note: in expansion of macro ‘SWIG_init’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9626:17: note: in expansion of macro ‘SWIG_GetModule’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9626:17: note: in expansion of macro ‘SWIG_GetModule’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:10005:3: note: in expansion of macro ‘SWIG_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9807:15: note: in expansion of macro ‘SWIG_NewPackedObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
/usr/include/python3.13/Python.h:68: included_from: Included from here.
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:198: included_from: Included from here.
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1607:3: note: in expansion of macro ‘Py_INCREF’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9815:9: note: in expansion of macro ‘Py_DECREF’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9801:29: note: read of 4 bytes from after the end of ‘swig_const_table’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9801:29: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
#                                                          └───────────────────────┘
#                                                                      ^
# 9799|       PyObject *obj = 0;
# 9800|       size_t i;
# 9801|->     for (i = 0; constants[i].type; ++i) {
# 9802|         switch(constants[i].type) {
# 9803|         case SWIG_PY_POINTER:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def45]
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9804:78: warning[-Wanalyzer-out-of-bounds]: buffer over-read
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1143:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9886:1: note: in expansion of macro ‘SWIG_init’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9626:17: note: in expansion of macro ‘SWIG_GetModule’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9626:17: note: in expansion of macro ‘SWIG_GetModule’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:10005:3: note: in expansion of macro ‘SWIG_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9807:15: note: in expansion of macro ‘SWIG_NewPackedObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1607:3: note: in expansion of macro ‘Py_INCREF’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9815:9: note: in expansion of macro ‘Py_DECREF’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1143:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9804:78: note: read of 8 bytes from after the end of ‘swig_const_table’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1143:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9804:78: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1143:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
#                                                            └─────────────────────────────────────────────┘
#                                                                                   ^
# 9802|         switch(constants[i].type) {
# 9803|         case SWIG_PY_POINTER:
# 9804|->         obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
# 9805|           break;
# 9806|         case SWIG_PY_BINARY:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def46]
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9807:66: warning[-Wanalyzer-out-of-bounds]: buffer over-read
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1151:87: note: in definition of macro ‘SWIG_NewPackedObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9886:1: note: in expansion of macro ‘SWIG_init’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9626:17: note: in expansion of macro ‘SWIG_GetModule’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9626:17: note: in expansion of macro ‘SWIG_GetModule’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:10005:3: note: in expansion of macro ‘SWIG_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9807:15: note: in expansion of macro ‘SWIG_NewPackedObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1607:3: note: in expansion of macro ‘Py_INCREF’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9815:9: note: in expansion of macro ‘Py_DECREF’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1151:87: note: in definition of macro ‘SWIG_NewPackedObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9807:66: note: read of 8 bytes from after the end of ‘swig_const_table’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1151:87: note: in definition of macro ‘SWIG_NewPackedObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9807:66: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1151:87: note: in definition of macro ‘SWIG_NewPackedObj’
#                                                            └────────────────────────────┘
#                                                                          ^
# 9805|           break;
# 9806|         case SWIG_PY_BINARY:
# 9807|->         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
# 9808|           break;
# 9809|         default:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def47]
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9807:89: warning[-Wanalyzer-out-of-bounds]: buffer over-read
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1151:91: note: in definition of macro ‘SWIG_NewPackedObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9886:1: note: in expansion of macro ‘SWIG_init’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9626:17: note: in expansion of macro ‘SWIG_GetModule’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9626:17: note: in expansion of macro ‘SWIG_GetModule’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:10005:3: note: in expansion of macro ‘SWIG_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9807:15: note: in expansion of macro ‘SWIG_NewPackedObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1607:3: note: in expansion of macro ‘Py_INCREF’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9815:9: note: in expansion of macro ‘Py_DECREF’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1151:91: note: in definition of macro ‘SWIG_NewPackedObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9807:89: note: read of 8 bytes from after the end of ‘swig_const_table’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1151:91: note: in definition of macro ‘SWIG_NewPackedObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9807:89: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1151:91: note: in definition of macro ‘SWIG_NewPackedObj’
#                                                            └─────────────────────────────────────────────┘
#                                                                                   ^
# 9805|           break;
# 9806|         case SWIG_PY_BINARY:
# 9807|->         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
# 9808|           break;
# 9809|         default:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def48]
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9814:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9886:1: note: in expansion of macro ‘SWIG_init’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9626:17: note: in expansion of macro ‘SWIG_GetModule’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9626:17: note: in expansion of macro ‘SWIG_GetModule’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:10005:3: note: in expansion of macro ‘SWIG_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9807:15: note: in expansion of macro ‘SWIG_NewPackedObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1607:3: note: in expansion of macro ‘Py_INCREF’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9815:9: note: in expansion of macro ‘Py_DECREF’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9807:15: note: in expansion of macro ‘SWIG_NewPackedObj’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:1607:3: note: in expansion of macro ‘Py_INCREF’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9814:9: note: read of 8 bytes from after the end of ‘swig_const_table’
dtc-1.7.0-build/dtc-1.7.0/pylibfdt/libfdt_wrap.c:9814:9: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
#                                                            └────────────────────────────────┘
#                                                                            ^
# 9812|         }
# 9813|         if (obj) {
# 9814|->         PyDict_SetItemString(d, constants[i].name, obj);
# 9815|           Py_DECREF(obj);
# 9816|         }

Error: CPPCHECK_WARNING: [#def49]
dtc-1.7.0-build/dtc-1.7.0/srcpos.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
dtc-1.7.0-build/dtc-1.7.0/dtc.h:15: included_from: Included from here.
dtc-1.7.0-build/dtc-1.7.0/srcpos.c:10: included_from: Included from here.
dtc-1.7.0-build/dtc-1.7.0/srcpos.c: scope_hint: In function ‘srcpos_copy’
dtc-1.7.0-build/dtc-1.7.0/srcpos.c:263:19: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(32)’
dtc-1.7.0-build/dtc-1.7.0/dtc.h:24: included_from: Included from here.
#  261|   
#  262|   	pos_new = xmalloc(sizeof(struct srcpos));
#  263|-> 	assert(pos->next == NULL);
#  264|   	memcpy(pos_new, pos, sizeof(struct srcpos));
#  265|   

Error: CPPCHECK_WARNING: [#def51]
dtc-1.7.0-build/dtc-1.7.0/treesource.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def52]
dtc-1.7.0-build/dtc-1.7.0/util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def53]
dtc-1.7.0-build/dtc-1.7.0/util.c:63:2: warning[deadcode.DeadStores]: Value stored to 'n' is never read
#   61|   	p = xrealloc(p, size + n);
#   62|   
#   63|-> 	n = vsnprintf(p + size, n, fmt, ap);
#   64|   
#   65|   	*strp = p;

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-87.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namedtc-1.7.0-9.fc41
store-results-to/tmp/tmpb2fhpplz/dtc-1.7.0-9.fc41.tar.xz
time-created2024-07-03 12:40:52
time-finished2024-07-03 12:42:28
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpb2fhpplz/dtc-1.7.0-9.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpb2fhpplz/dtc-1.7.0-9.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9