Newly introduced findings

List of Findings

Error: COMPILER_WARNING: [#def1]
grub-2.12/grub-core/kern/mm.c: scope_hint: In function ‘grub_memalign’
grub-2.12/grub-core/kern/mm.c:529:10: warning[-Wimplicit-fallthrough=]: this statement may fall through
#  529 |       if (grub_mm_add_region_fn != NULL)
#      |          ^
grub-2.12/grub-core/kern/mm.c:539:5: note: here
#  539 |     case 2:
#      |     ^~~~
#  527|         count++;
#  528|   
#  529|->       if (grub_mm_add_region_fn != NULL)
#  530|           {
#  531|             /*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def2]
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1111:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1069:6: branch_true: following ‘true’ branch...
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1075:28: branch_true: ...to here
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1098:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1100:7: branch_false: ...to here
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1101:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 10000’)...
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1105:21: branch_false: ...to here
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1109:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1111:9: branch_false: ...to here
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1111:9: danger: use of uninitialized value ‘yyss’ here
# 1109|           if (! yyptr)
# 1110|             YYNOMEM;
# 1111|->         YYSTACK_RELOCATE (yyss_alloc, yyss);
# 1112|           YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# 1113|   #  undef YYSTACK_RELOCATE

Error: GCC_ANALYZER_WARNING (CWE-457): [#def3]
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1238:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1069:6: branch_false: following ‘false’ branch...
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1133:6: branch_false: ...to here
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1133:6: branch_false: following ‘false’ branch (when ‘yystate != 3’)...
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1136:3: branch_false: ...to here
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1148:6: branch_true: following ‘true’ branch (when ‘yyn == -73’)...
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1149:5: branch_true: ...to here
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1218:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1220:3: branch_false: ...to here
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.tab.c:1238:3: danger: use of uninitialized value ‘*<unknown>’ here
# 1236|        unconditionally makes the parser a bit smaller, and it avoids a
# 1237|        GCC warning that YYVAL may be used uninitialized.  */
# 1238|->   yyval = yyvsp[1-yylen];
# 1239|   
# 1240|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.yy.c:2091:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.yy.c:1970:10: enter_function: entry to ‘yyrestart’
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.yy.c:1977:27: call_function: calling ‘yy_create_buffer’ from ‘yyrestart’
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.yy.c:1977:27: return_function: returning to ‘yyrestart’ from ‘yy_create_buffer’
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.yy.c:1980:2: branch_false: following ‘false’ branch...
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.yy.c:1980:2: branch_false: ...to here
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.yy.c:1980:2: release_memory: using NULL here
grub-2.12/grub-x86_64-xen-2.12/grub-core/grub_script.yy.c:1980:2: call_function: calling ‘yy_init_buffer’ from ‘yyrestart’
# 2089|   
# 2090|   	yy_flush_buffer( b , yyscanner);
# 2091|-> 
# 2092|   	b->yy_input_file = file;
# 2093|   	b->yy_fill_buffer = 1;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def5]
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1111:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1069:6: branch_true: following ‘true’ branch...
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1075:28: branch_true: ...to here
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1098:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 9999’)...
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1100:7: branch_false: ...to here
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1101:10: branch_false: following ‘false’ branch (when ‘yystacksize <= 10000’)...
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1105:21: branch_false: ...to here
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1109:12: branch_false: following ‘false’ branch (when ‘yyptr’ is non-NULL)...
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1111:9: branch_false: ...to here
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1111:9: danger: use of uninitialized value ‘yyss’ here
# 1109|           if (! yyptr)
# 1110|             YYNOMEM;
# 1111|->         YYSTACK_RELOCATE (yyss_alloc, yyss);
# 1112|           YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# 1113|   #  undef YYSTACK_RELOCATE

Error: GCC_ANALYZER_WARNING (CWE-457): [#def6]
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1238:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1069:6: branch_false: following ‘false’ branch...
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1133:6: branch_false: ...to here
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1133:6: branch_false: following ‘false’ branch (when ‘yystate != 3’)...
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1136:3: branch_false: ...to here
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1148:6: branch_true: following ‘true’ branch (when ‘yyn == -73’)...
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1149:5: branch_true: ...to here
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1218:6: branch_false: following ‘false’ branch (when ‘yyn != 0’)...
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1220:3: branch_false: ...to here
grub-2.12/grub-x86_64-xen-2.12/grub_script.tab.c:1238:3: danger: use of uninitialized value ‘*<unknown>’ here
# 1236|        unconditionally makes the parser a bit smaller, and it avoids a
# 1237|        GCC warning that YYVAL may be used uninitialized.  */
# 1238|->   yyval = yyvsp[1-yylen];
# 1239|   
# 1240|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
grub-2.12/grub-x86_64-xen-2.12/grub_script.yy.c:2091:2: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
grub-2.12/grub-x86_64-xen-2.12/grub_script.yy.c:1970:10: enter_function: entry to ‘yyrestart’
grub-2.12/grub-x86_64-xen-2.12/grub_script.yy.c:1977:27: call_function: calling ‘yy_create_buffer’ from ‘yyrestart’
grub-2.12/grub-x86_64-xen-2.12/grub_script.yy.c:1977:27: return_function: returning to ‘yyrestart’ from ‘yy_create_buffer’
grub-2.12/grub-x86_64-xen-2.12/grub_script.yy.c:1980:2: branch_false: following ‘false’ branch...
grub-2.12/grub-x86_64-xen-2.12/grub_script.yy.c:1980:2: branch_false: ...to here
grub-2.12/grub-x86_64-xen-2.12/grub_script.yy.c:1980:2: release_memory: using NULL here
grub-2.12/grub-x86_64-xen-2.12/grub_script.yy.c:1980:2: call_function: calling ‘yy_init_buffer’ from ‘yyrestart’
# 2089|   
# 2090|   	yy_flush_buffer( b , yyscanner);
# 2091|-> 
# 2092|   	b->yy_input_file = file;
# 2093|   	b->yy_fill_buffer = 1;

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-74.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namegrub2-2.12-56.fc44
diffbase-store-results-to/tmp/tmpiwm54wqr/grub2-2.12-56.fc44.tar.xz
diffbase-time-created2026-08-03 14:45:28
diffbase-time-finished2026-08-03 15:17:54
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpiwm54wqr/grub2-2.12-56.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpiwm54wqr/grub2-2.12-56.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.7.HEAD-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-74.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namegrub2-2.12-73.fc45
store-results-to/tmp/tmpz9wjtgrc/grub2-2.12-73.fc45.tar.xz
time-created2026-08-03 15:18:24
time-finished2026-08-03 15:56:14
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpz9wjtgrc/grub2-2.12-73.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpz9wjtgrc/grub2-2.12-73.fc45.src.rpm'
tool-versioncsmock-3.8.7.HEAD-1.el9