bootc-202508261914.gc060badc6c-1

List of Findings

Error: COMPILER_WARNING (CWE-704): [#def1]
bootc-202508261914.gc060badc6c/vendor/libz-sys/src/smoke.c: scope_hint: In function 'main'
bootc-202508261914.gc060badc6c/vendor/libz-sys/src/smoke.c:4:10: warning[-Wpointer-to-int-cast]: cast from pointer to integer of different size
#    4 |   return (int) adler32;
#      |          ^
#    2|   
#    3|   int main() {
#    4|->   return (int) adler32;
#    5|   }

Error: CLIPPY_WARNING: [#def2]
crates/lib/src/install.rs:1481:24: warning: called `.as_ref().map(|s| s.as_str())` on an `Option` value
#       |
#  1481 |       let source_image = opts
#       |  ________________________^
#  1482 | |         .source_opts
#  1483 | |         .source_imgref
#  1484 | |         .as_ref()
#  1485 | |         .map(|s| s.as_str())
#       | |____________________________^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_as_ref_deref
#       = note: `#[warn(clippy::option_as_ref_deref)]` on by default
#  help: consider using as_deref
#       |
#  1481 ~     let source_image = opts
#  1482 +         .source_opts
#  1483 +         .source_imgref.as_deref()
#       |

Error: CLIPPY_WARNING: [#def3]
crates/lib/src/install.rs:1726:24: warning: called `.as_ref().map(|s| s.as_str())` on an `Option` value
#       |
#  1726 |       let source_image = opts
#       |  ________________________^
#  1727 | |         .source_opts
#  1728 | |         .source_imgref
#  1729 | |         .as_ref()
#  1730 | |         .map(|s| s.as_str())
#       | |____________________________^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_as_ref_deref
#  help: consider using as_deref
#       |
#  1726 ~     let source_image = opts
#  1727 +         .source_opts
#  1728 +         .source_imgref.as_deref()
#       |

Error: CLIPPY_WARNING: [#def4]
crates/lib/src/install.rs:1978:24: warning: called `.as_ref().map(|s| s.as_str())` on an `Option` value
#       |
#  1978 |       let source_image = opts
#       |  ________________________^
#  1979 | |         .source_opts
#  1980 | |         .source_imgref
#  1981 | |         .as_ref()
#  1982 | |         .map(|s| s.as_str())
#       | |____________________________^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_as_ref_deref
#  help: consider using as_deref
#       |
#  1978 ~     let source_image = opts
#  1979 +         .source_opts
#  1980 +         .source_imgref.as_deref()
#       |

Scan Properties

analyzer-version-clippy1.89.0
analyzer-version-cppcheck2.18.1
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer15.2.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-209.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namebootc-202508261914.gc060badc6c-1
store-results-to/tmp/tmpx63k92xw/bootc-202508261914.gc060badc6c-1.tar.xz
time-created2025-08-26 20:07:28
time-finished2025-08-26 20:15:28
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,shellcheck,gcc,clippy,cppcheck' '-o' '/tmp/tmpx63k92xw/bootc-202508261914.gc060badc6c-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpx63k92xw/bootc-202508261914.gc060badc6c-1.src.rpm'
tool-versioncsmock-3.8.2.20250811.215846.gf3b3dbf-1.el9