Newly introduced findings

List of Findings

Error: CLIPPY_WARNING: [#def1]
blockdev/src/blockdev.rs:271:38: warning: manually constructing a nul-terminated string
#      |
#  271 |             let null_fd = libc::open(b"/dev/null\0".as_ptr() as *const i8, libc::O_RDWR);
#      |                                      ^^^^^^^^^^^^^^ help: use a `c""` literal: `c"/dev/null"`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_c_str_literals
#      = note: `#[warn(clippy::manual_c_str_literals)]` on by default

Error: CLIPPY_WARNING: [#def2]
blockdev/src/blockdev.rs:333:29: warning: variables can be used directly in the `format!` string
#      |
#  333 | ...                   format!("bootc: cleaned up leaked loopback device {}\n", device_path).as_bytes()
#      |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
#      = note: `#[warn(clippy::uninlined_format_args)]` on by default
#  help: change this to
#      |
#  333 -                             format!("bootc: cleaned up leaked loopback device {}\n", device_path).as_bytes()
#  333 +                             format!("bootc: cleaned up leaked loopback device {device_path}\n").as_bytes()
#      |

Error: CLIPPY_WARNING: [#def3]
blockdev/src/blockdev.rs:340:29: warning: variables can be used directly in the `format!` string
#      |
#  340 | ...                   format!("bootc: failed to clean up loopback device {}\n", device_path).as_bytes()
#      |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
#  help: change this to
#      |
#  340 -                             format!("bootc: failed to clean up loopback device {}\n", device_path).as_bytes()
#  340 +                             format!("bootc: failed to clean up loopback device {device_path}\n").as_bytes()
#      |

Error: CLIPPY_WARNING: [#def4]
blockdev/src/blockdev.rs:347:29: warning: variables can be used directly in the `format!` string
#      |
#  347 | ...                   format!("bootc: error cleaning up loopback device {}: {}\n", device_path, e).as_bytes()
#      |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
#  help: change this to
#      |
#  347 -                             format!("bootc: error cleaning up loopback device {}: {}\n", device_path, e).as_bytes()
#  347 +                             format!("bootc: error cleaning up loopback device {device_path}: {e}\n").as_bytes()
#      |

Scan Properties

analyzer-version-clippy1.88.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.1.1
analyzer-version-gcc-analyzer15.1.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.88.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.1.1
diffbase-analyzer-version-gcc-analyzer15.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-47.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.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namebootc-202507092104.g5ed53c30f0-1
diffbase-store-results-to/tmp/tmpbfggh3c5/bootc-202507092104.g5ed53c30f0-1.tar.xz
diffbase-time-created2025-07-10 22:12:01
diffbase-time-finished2025-07-10 22:21:03
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,gcc,shellcheck,cppcheck,unicontrol' '-o' '/tmp/tmpbfggh3c5/bootc-202507092104.g5ed53c30f0-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpbfggh3c5/bootc-202507092104.g5ed53c30f0-1.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250626.171830.gc374be3-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-47.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-202507102150.g48fc3fd209-1
store-results-to/tmp/tmpyn4fnv7v/bootc-202507102150.g48fc3fd209-1.tar.xz
time-created2025-07-10 22:24:59
time-finished2025-07-10 22:35:15
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clippy,gcc,shellcheck,cppcheck,unicontrol' '-o' '/tmp/tmpyn4fnv7v/bootc-202507102150.g48fc3fd209-1.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpyn4fnv7v/bootc-202507102150.g48fc3fd209-1.src.rpm'
tool-versioncsmock-3.8.1.20250626.171830.gc374be3-1.el9