[INFO] cloning repository https://github.com/0xm4ze/smart-contracts-vulns
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/0xm4ze/smart-contracts-vulns" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xm4ze%2Fsmart-contracts-vulns", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xm4ze%2Fsmart-contracts-vulns'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 7dbd2de46880936bea52386722b75c2be3bf04ac
[INFO] checking 0xm4ze/smart-contracts-vulns against master#a2db9280539229a3b8a084a09886670a57bc7e9c for pr-147185
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xm4ze%2Fsmart-contracts-vulns" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/0xm4ze/smart-contracts-vulns
[INFO] finished tweaking git repo https://github.com/0xm4ze/smart-contracts-vulns
[INFO] tweaked toml for git repo https://github.com/0xm4ze/smart-contracts-vulns written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/0xm4ze/smart-contracts-vulns on toolchain a2db9280539229a3b8a084a09886670a57bc7e9c
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2db9280539229a3b8a084a09886670a57bc7e9c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/0xm4ze/smart-contracts-vulns already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2db9280539229a3b8a084a09886670a57bc7e9c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded tinyvec_macros v0.1.1
[INFO] [stderr]   Downloaded opaque-debug v0.3.1
[INFO] [stderr]   Downloaded zeroize_derive v1.4.2
[INFO] [stderr]   Downloaded tiny-bip39 v0.8.2
[INFO] [stderr]   Downloaded tinyvec v1.9.0
[INFO] [stderr]   Downloaded typenum v1.18.0
[INFO] [stderr]   Downloaded anchor-attribute-access-control v0.28.0
[INFO] [stderr]   Downloaded anstyle-query v1.1.3
[INFO] [stderr]   Downloaded strum v0.26.3
[INFO] [stderr]   Downloaded heck v0.3.3
[INFO] [stderr]   Downloaded hermit-abi v0.5.1
[INFO] [stderr]   Downloaded anchor-syn v0.28.0
[INFO] [stderr]   Downloaded half v2.6.0
[INFO] [stderr]   Downloaded blake3 v1.8.2
[INFO] [stderr]   Downloaded plotters v0.3.7
[INFO] [stderr]   Downloaded clap_builder v4.5.38
[INFO] [stderr]   Downloaded criterion v0.5.1
[INFO] [stderr]   Downloaded unicode-segmentation v1.12.0
[INFO] [stderr]   Downloaded yansi v1.0.1
[INFO] [stderr]   Downloaded itertools v0.10.5
[INFO] [stderr]   Downloaded near-sdk v5.14.0
[INFO] [stderr]   Downloaded im v15.1.0
[INFO] [stderr]   Downloaded rand v0.7.3
[INFO] [stderr]   Downloaded pretty_assertions v1.4.1
[INFO] [stderr]   Downloaded ark-ff v0.4.2
[INFO] [stderr]   Downloaded proptest v1.6.0
[INFO] [stderr]   Downloaded console_error_panic_hook v0.1.7
[INFO] [stderr]   Downloaded darling_core v0.20.11
[INFO] [stderr]   Downloaded hashbrown v0.15.3
[INFO] [stderr]   Downloaded winnow v0.7.10
[INFO] [stderr]   Downloaded hashbrown v0.13.2
[INFO] [stderr]   Downloaded syn v1.0.109
[INFO] [stderr]   Downloaded toml_edit v0.22.26
[INFO] [stderr]   Downloaded cc v1.2.23
[INFO] [stderr]   Downloaded sized-chunks v0.6.5
[INFO] [stderr]   Downloaded memmap2 v0.5.10
[INFO] [stderr]   Downloaded solana-frozen-abi v1.16.25
[INFO] [stderr]   Downloaded rustix v1.0.7
[INFO] [stderr]   Downloaded anyhow v1.0.98
[INFO] [stderr]   Downloaded anchor-lang v0.28.0
[INFO] [stderr]   Downloaded anes v0.1.6
[INFO] [stderr]   Downloaded clap v4.5.38
[INFO] [stderr]   Downloaded bs58 v0.5.1
[INFO] [stderr]   Downloaded strum_macros v0.26.4
[INFO] [stderr]   Downloaded wee_alloc v0.4.5
[INFO] [stderr]   Downloaded tempfile v3.20.0
[INFO] [stderr]   Downloaded ark-ec v0.4.2
[INFO] [stderr]   Downloaded ark-std v0.4.0
[INFO] [stderr]   Downloaded array-bytes v1.4.1
[INFO] [stderr]   Downloaded ahash v0.7.8
[INFO] [stderr]   Downloaded bytemuck_derive v1.9.3
[INFO] [stderr]   Downloaded crossbeam-deque v0.8.6
[INFO] [stderr]   Downloaded bitmaps v2.1.0
[INFO] [stderr]   Downloaded serde_bytes v0.11.17
[INFO] [stderr]   Downloaded crypto-mac v0.8.0
[INFO] [stderr]   Downloaded cpufeatures v0.2.17
[INFO] [stderr]   Downloaded tinytemplate v1.2.1
[INFO] [stderr]   Downloaded near-gas v0.3.0
[INFO] [stderr]   Downloaded Inflector v0.11.4
[INFO] [stderr]   Downloaded darling v0.20.11
[INFO] [stderr]   Downloaded near-token v0.3.0
[INFO] [stderr]   Downloaded memory_units v0.4.0
[INFO] [stderr]   Downloaded bit-set v0.8.0
[INFO] [stderr]   Downloaded bit-vec v0.8.0
[INFO] [stderr]   Downloaded unarray v0.1.4
[INFO] [stderr]   Downloaded ark-bn254 v0.4.0
[INFO] [stderr]   Downloaded ark-poly v0.4.2
[INFO] [stderr]   Downloaded ark-ff-asm v0.4.2
[INFO] [stderr]   Downloaded ark-ff-macros v0.4.2
[INFO] [stderr]   Downloaded ark-serialize-derive v0.4.2
[INFO] [stderr]   Downloaded ark-serialize v0.4.2
[INFO] [stderr]   Downloaded borsh-schema-derive-internal v0.9.3
[INFO] [stderr]   Downloaded borsh-derive-internal v0.10.4
[INFO] [stderr]   Downloaded proc-macro-crate v0.1.5
[INFO] [stderr]   Downloaded sha2 v0.10.9
[INFO] [stderr]   Downloaded colored v2.2.0
[INFO] [stderr]   Downloaded ciborium-ll v0.2.2
[INFO] [stderr]   Downloaded ciborium v0.2.2
[INFO] [stderr]   Downloaded once_cell_polyfill v1.70.1
[INFO] [stderr]   Downloaded anstyle-wincon v3.0.9
[INFO] [stderr]   Downloaded anstream v0.6.19
[INFO] [stderr]   Downloaded cast v0.3.0
[INFO] [stderr]   Downloaded criterion-plot v0.5.0
[INFO] [stderr]   Downloaded is-terminal v0.4.16
[INFO] [stderr]   Downloaded oorandom v11.1.5
[INFO] [stderr]   Downloaded plotters-backend v0.3.7
[INFO] [stderr]   Downloaded near-account-id v1.1.1
[INFO] [stderr]   Downloaded near-sdk-macros v5.14.0
[INFO] [stderr]   Downloaded cfg-if v0.1.10
[INFO] [stderr]   Downloaded rand_xorshift v0.3.0
[INFO] [stderr]   Downloaded quick-error v1.2.3
[INFO] [stderr]   Downloaded wait-timeout v0.2.1
[INFO] [stderr]   Downloaded rusty-fork v0.3.0
[INFO] [stderr]   Downloaded errno v0.3.12
[INFO] [stderr]   Downloaded derivative v2.2.0
[INFO] [stderr]   Downloaded bincode v1.3.3
[INFO] [stderr]   Downloaded borsh-derive-internal v0.9.3
[INFO] [stderr]   Downloaded borsh-derive v0.9.3
[INFO] [stderr]   Downloaded toml v0.5.11
[INFO] [stderr]   Downloaded borsh v0.10.4
[INFO] [stderr]   Downloaded bytemuck v1.23.0
[INFO] [stderr]   Downloaded console_log v0.2.2
[INFO] [stderr]   Downloaded toml_datetime v0.6.9
[INFO] [stderr]   Downloaded proc-macro-crate v3.3.0
[INFO] [stderr]   Downloaded borsh v1.5.7
[INFO] [stderr]   Downloaded borsh-derive v0.10.4
[INFO] [stderr]   Downloaded base64 v0.12.3
[INFO] [stderr]   Downloaded libsecp256k1-core v0.2.2
[INFO] [stderr]   Downloaded memoffset v0.9.1
[INFO] [stderr]   Downloaded ahash v0.8.12
[INFO] [stderr]   Downloaded arrayvec v0.7.6
[INFO] [stderr]   Downloaded bv v0.11.1
[INFO] [stderr]   Downloaded semver v1.0.26
[INFO] [stderr]   Downloaded rustc_version v0.4.1
[INFO] [stderr]   Downloaded solana-frozen-abi-macro v1.16.25
[INFO] [stderr]   Downloaded rand_chacha v0.2.2
[INFO] [stderr]   Downloaded getrandom v0.1.16
[INFO] [stderr]   Downloaded rand_hc v0.2.0
[INFO] [stderr]   Downloaded rustc-hash v1.1.0
[INFO] [stderr]   Downloaded unicode-normalization v0.1.24
[INFO] [stderr]   Downloaded solana-program v1.16.25
[INFO] [stderr]   Downloaded syn v2.0.101
[INFO] [stderr]   Downloaded anchor-attribute-account v0.28.0
[INFO] [stderr]   Downloaded anchor-attribute-constant v0.28.0
[INFO] [stderr]   Downloaded anchor-attribute-error v0.28.0
[INFO] [stderr]   Downloaded anchor-attribute-event v0.28.0
[INFO] [stderr]   Downloaded anchor-attribute-program v0.28.0
[INFO] [stderr]   Downloaded anchor-derive-accounts v0.28.0
[INFO] [stderr]   Downloaded anchor-derive-space v0.28.0
[INFO] [stderr]   Downloaded ciborium-io v0.2.2
[INFO] [stderr]   Downloaded plotters-svg v0.3.7
[INFO] [stderr]   Downloaded darling_macro v0.20.11
[INFO] [stderr]   Downloaded near-sys v0.2.4
[INFO] [stderr]   Downloaded borsh-derive v1.5.7
[INFO] [stderr]   Downloaded borsh v0.9.3
[INFO] [stderr]   Downloaded borsh-schema-derive-internal v0.10.4
[INFO] [stderr]   Downloaded hmac-drbg v0.3.0
[INFO] [stderr]   Downloaded libsecp256k1-gen-ecmult v0.2.1
[INFO] [stderr]   Downloaded crunchy v0.2.3
[INFO] [stderr]   Downloaded libsecp256k1-gen-genmult v0.2.1
[INFO] [stderr]   Downloaded libsecp256k1 v0.6.0
[INFO] [stderr]   Downloaded redox_syscall v0.5.12
[INFO] [stderr]   Downloaded arrayref v0.3.9
[INFO] [stderr]   Downloaded constant_time_eq v0.3.1
[INFO] [stderr]   Downloaded feature-probe v0.1.1
[INFO] [stderr]   Downloaded jobserver v0.1.33
[INFO] [stderr]   Downloaded rand_xoshiro v0.6.0
[INFO] [stderr]   Downloaded either v1.15.0
[INFO] [stderr]   Downloaded solana-sdk-macro v1.16.25
[INFO] [stderr]   Downloaded hmac v0.8.1
[INFO] [stderr]   Downloaded pbkdf2 v0.4.0
[INFO] [stderr]   Downloaded wasi v0.9.0+wasi-snapshot-preview1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+a2db9280539229a3b8a084a09886670a57bc7e9c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 1b8cc2d51d5e6ad7fac8c8984b9d6af44bb71bc693f18e0900ce707c524b9602
[INFO] running `Command { std: "docker" "start" "-a" "1b8cc2d51d5e6ad7fac8c8984b9d6af44bb71bc693f18e0900ce707c524b9602", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1b8cc2d51d5e6ad7fac8c8984b9d6af44bb71bc693f18e0900ce707c524b9602", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1b8cc2d51d5e6ad7fac8c8984b9d6af44bb71bc693f18e0900ce707c524b9602", kill_on_drop: false }`
[INFO] [stdout] 1b8cc2d51d5e6ad7fac8c8984b9d6af44bb71bc693f18e0900ce707c524b9602
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+a2db9280539229a3b8a084a09886670a57bc7e9c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 5253d7f704c6bc3fef92cafe314b81ea003d4a5f63a57fbe0b844295921304cf
[INFO] running `Command { std: "docker" "start" "-a" "5253d7f704c6bc3fef92cafe314b81ea003d4a5f63a57fbe0b844295921304cf", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.95
[INFO] [stderr]    Compiling unicode-ident v1.0.18
[INFO] [stderr]    Compiling version_check v0.9.5
[INFO] [stderr]    Compiling typenum v1.18.0
[INFO] [stderr]    Compiling libc v0.2.172
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling autocfg v1.4.0
[INFO] [stderr]    Compiling zerocopy v0.8.25
[INFO] [stderr]     Checking subtle v2.6.1
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]     Checking once_cell v1.21.3
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]    Compiling memchr v2.7.4
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling anyhow v1.0.98
[INFO] [stderr]    Compiling getrandom v0.3.3
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling syn v2.0.101
[INFO] [stderr]    Compiling semver v1.0.26
[INFO] [stderr]     Checking either v1.15.0
[INFO] [stderr]    Compiling itoa v1.0.15
[INFO] [stderr]    Compiling crunchy v0.2.3
[INFO] [stderr]    Compiling ryu v1.0.20
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling rustc_version v0.4.1
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling ahash v0.8.12
[INFO] [stderr]    Compiling rustversion v1.0.20
[INFO] [stderr]    Compiling unicode-segmentation v1.12.0
[INFO] [stderr]    Compiling cpufeatures v0.2.17
[INFO] [stderr]     Checking getrandom v0.2.16
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]    Compiling heck v0.3.3
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]    Compiling shlex v1.3.0
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling hashbrown v0.15.3
[INFO] [stderr]    Compiling jobserver v0.1.33
[INFO] [stderr]    Compiling bs58 v0.5.1
[INFO] [stderr]    Compiling equivalent v1.0.2
[INFO] [stderr]     Checking crossbeam-epoch v0.9.18
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling indexmap v2.9.0
[INFO] [stderr]    Compiling cc v1.2.23
[INFO] [stderr]     Checking itertools v0.10.5
[INFO] [stderr]    Compiling digest v0.9.0
[INFO] [stderr]    Compiling paste v1.0.15
[INFO] [stderr]    Compiling winnow v0.7.10
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.100
[INFO] [stderr]    Compiling toml_datetime v0.6.9
[INFO] [stderr]    Compiling rayon-core v1.12.1
[INFO] [stderr]    Compiling libsecp256k1-core v0.2.2
[INFO] [stderr]     Checking num-bigint v0.4.6
[INFO] [stderr]     Checking ark-std v0.4.0
[INFO] [stderr]     Checking crossbeam-deque v0.8.6
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]    Compiling cfg_aliases v0.2.1
[INFO] [stderr]    Compiling borsh v1.5.7
[INFO] [stderr]     Checking hashbrown v0.13.2
[INFO] [stderr]    Compiling ahash v0.7.8
[INFO] [stderr]    Compiling log v0.4.27
[INFO] [stderr]    Compiling feature-probe v0.1.1
[INFO] [stderr]    Compiling heck v0.5.0
[INFO] [stderr]    Compiling bumpalo v3.17.0
[INFO] [stderr]    Compiling bv v0.11.1
[INFO] [stderr]     Checking rayon v1.10.0
[INFO] [stderr]    Compiling libsecp256k1-gen-ecmult v0.2.1
[INFO] [stderr]    Compiling libsecp256k1-gen-genmult v0.2.1
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]    Compiling blake3 v1.8.2
[INFO] [stderr]    Compiling solana-frozen-abi-macro v1.16.25
[INFO] [stderr]    Compiling toml_edit v0.22.26
[INFO] [stderr]    Compiling wasm-bindgen-backend v0.2.100
[INFO] [stderr]     Checking bitmaps v2.1.0
[INFO] [stderr]    Compiling im v15.1.0
[INFO] [stderr]    Compiling fnv v1.0.7
[INFO] [stderr]     Checking opaque-debug v0.3.1
[INFO] [stderr]    Compiling ident_case v1.0.1
[INFO] [stderr]     Checking lazy_static v1.5.0
[INFO] [stderr]     Checking arrayref v0.3.9
[INFO] [stderr]     Checking utf8parse v0.2.2
[INFO] [stderr]     Checking tinyvec_macros v0.1.1
[INFO] [stderr]     Checking anstyle-parse v0.2.7
[INFO] [stderr]    Compiling darling_core v0.20.11
[INFO] [stderr]     Checking tinyvec v1.9.0
[INFO] [stderr]     Checking sized-chunks v0.6.5
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]    Compiling libsecp256k1 v0.6.0
[INFO] [stderr]    Compiling proc-macro-crate v3.3.0
[INFO] [stderr]    Compiling ark-serialize-derive v0.4.2
[INFO] [stderr]    Compiling ark-ff-asm v0.4.2
[INFO] [stderr]    Compiling ark-ff-macros v0.4.2
[INFO] [stderr]    Compiling derivative v2.2.0
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.100
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling zeroize_derive v1.4.2
[INFO] [stderr]    Compiling borsh-derive v1.5.7
[INFO] [stderr]    Compiling borsh-derive-internal v0.9.3
[INFO] [stderr]    Compiling borsh-schema-derive-internal v0.10.4
[INFO] [stderr]     Checking zeroize v1.3.0
[INFO] [stderr]    Compiling borsh-schema-derive-internal v0.9.3
[INFO] [stderr]    Compiling borsh-derive-internal v0.10.4
[INFO] [stderr]     Checking rand_xoshiro v0.6.0
[INFO] [stderr]    Compiling solana-frozen-abi v1.16.25
[INFO] [stderr]    Compiling aho-corasick v1.1.3
[INFO] [stderr]    Compiling memoffset v0.9.1
[INFO] [stderr]     Checking constant_time_eq v0.3.1
[INFO] [stderr]     Checking byteorder v1.5.0
[INFO] [stderr]    Compiling regex-syntax v0.8.5
[INFO] [stderr]     Checking colorchoice v1.0.4
[INFO] [stderr]     Checking anstyle v1.0.10
[INFO] [stderr]     Checking is_terminal_polyfill v1.70.1
[INFO] [stderr]     Checking arrayvec v0.7.6
[INFO] [stderr]     Checking anstyle-query v1.1.3
[INFO] [stderr]    Compiling wasm-bindgen v0.2.100
[INFO] [stderr]     Checking anstream v0.6.19
[INFO] [stderr]    Compiling darling_macro v0.20.11
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.100
[INFO] [stderr]     Checking hashbrown v0.11.2
[INFO] [stderr]    Compiling bytemuck_derive v1.9.3
[INFO] [stderr]     Checking unicode-normalization v0.1.24
[INFO] [stderr]    Compiling solana-program v1.16.25
[INFO] [stderr]     Checking memmap2 v0.5.10
[INFO] [stderr]     Checking strsim v0.11.1
[INFO] [stderr]     Checking clap_lex v0.7.4
[INFO] [stderr]    Compiling near-sdk-macros v5.14.0
[INFO] [stderr]     Checking rustc-hash v1.1.0
[INFO] [stderr]     Checking base64 v0.12.3
[INFO] [stderr]    Compiling regex-automata v0.4.9
[INFO] [stderr]     Checking bs58 v0.4.0
[INFO] [stderr]     Checking keccak v0.1.5
[INFO] [stderr]     Checking bytemuck v1.23.0
[INFO] [stderr]     Checking clap_builder v4.5.38
[INFO] [stderr]    Compiling solana-sdk-macro v1.16.25
[INFO] [stderr]    Compiling darling v0.20.11
[INFO] [stderr]    Compiling strum_macros v0.26.4
[INFO] [stderr]    Compiling clap_derive v4.5.32
[INFO] [stderr]    Compiling num-derive v0.3.3
[INFO] [stderr]     Checking bitflags v1.3.2
[INFO] [stderr]     Checking array-bytes v1.4.1
[INFO] [stderr]    Compiling rustix v1.0.7
[INFO] [stderr]    Compiling Inflector v0.11.4
[INFO] [stderr]    Compiling strum v0.26.3
[INFO] [stderr]     Checking base64 v0.21.7
[INFO] [stderr]    Compiling anchor-derive-space v0.28.0
[INFO] [stderr]    Compiling regex v1.11.1
[INFO] [stderr]     Checking base64 v0.22.1
[INFO] [stderr]     Checking bitflags v2.9.1
[INFO] [stderr]     Checking near-sys v0.2.4
[INFO] [stderr]     Checking linux-raw-sys v0.9.4
[INFO] [stderr]     Checking base64 v0.13.1
[INFO] [stderr]     Checking colored v2.2.0
[INFO] [stderr]     Checking half v2.6.0
[INFO] [stderr]     Checking plotters-backend v0.3.7
[INFO] [stderr]     Checking fastrand v2.3.0
[INFO] [stderr]     Checking hex v0.4.3
[INFO] [stderr]     Checking serde_bytes v0.11.17
[INFO] [stderr]     Checking bincode v1.3.3
[INFO] [stderr]     Checking clap v4.5.38
[INFO] [stderr]     Checking near-gas v0.3.0
[INFO] [stderr]     Checking near-account-id v1.1.1
[INFO] [stderr]     Checking near-token v0.3.0
[INFO] [stderr]     Checking crypto-mac v0.8.0
[INFO] [stderr]     Checking block-buffer v0.9.0
[INFO] [stderr]     Checking pbkdf2 v0.4.0
[INFO] [stderr]     Checking hmac v0.8.1
[INFO] [stderr]     Checking sha2 v0.9.9
[INFO] [stderr]     Checking hmac-drbg v0.3.0
[INFO] [stderr]     Checking curve25519-dalek v3.2.1
[INFO] [stderr]    Compiling toml v0.5.11
[INFO] [stderr]     Checking ark-serialize v0.4.2
[INFO] [stderr]     Checking ark-ff v0.4.2
[INFO] [stderr]     Checking tiny-bip39 v0.8.2
[INFO] [stderr]    Compiling anchor-syn v0.28.0
[INFO] [stderr]     Checking sha3 v0.10.8
[INFO] [stderr]     Checking ciborium-io v0.2.2
[INFO] [stderr]     Checking ciborium-ll v0.2.2
[INFO] [stderr]     Checking plotters-svg v0.3.7
[INFO] [stderr]     Checking wait-timeout v0.2.1
[INFO] [stderr]     Checking tempfile v3.20.0
[INFO] [stderr]     Checking cast v0.3.0
[INFO] [stderr]     Checking same-file v1.0.6
[INFO] [stderr]    Compiling proc-macro-crate v0.1.5
[INFO] [stderr]     Checking quick-error v1.2.3
[INFO] [stderr]     Checking bit-vec v0.8.0
[INFO] [stderr]     Checking rusty-fork v0.3.0
[INFO] [stderr]     Checking bit-set v0.8.0
[INFO] [stderr]     Checking criterion-plot v0.5.0
[INFO] [stderr]     Checking walkdir v2.5.0
[INFO] [stderr]     Checking plotters v0.3.7
[INFO] [stderr]     Checking ciborium v0.2.2
[INFO] [stderr]     Checking tinytemplate v1.2.1
[INFO] [stderr]    Compiling borsh-derive v0.9.3
[INFO] [stderr]    Compiling borsh-derive v0.10.4
[INFO] [stderr]     Checking borsh v0.9.3
[INFO] [stderr]     Checking rand_xorshift v0.3.0
[INFO] [stderr]     Checking is-terminal v0.4.16
[INFO] [stderr]     Checking borsh v0.10.4
[INFO] [stderr]     Checking yansi v1.0.1
[INFO] [stderr]     Checking diff v0.1.13
[INFO] [stderr]     Checking anes v0.1.6
[INFO] [stderr]     Checking oorandom v11.1.5
[INFO] [stderr]     Checking near-sdk v5.14.0
[INFO] [stderr]     Checking unarray v0.1.4
[INFO] [stderr]     Checking proptest v1.6.0
[INFO] [stderr]     Checking pretty_assertions v1.4.1
[INFO] [stderr]     Checking criterion v0.5.1
[INFO] [stderr]    Compiling anchor-attribute-account v0.28.0
[INFO] [stderr]    Compiling anchor-attribute-error v0.28.0
[INFO] [stderr]    Compiling anchor-attribute-event v0.28.0
[INFO] [stderr]    Compiling anchor-attribute-program v0.28.0
[INFO] [stderr]    Compiling anchor-attribute-access-control v0.28.0
[INFO] [stderr]    Compiling anchor-derive-accounts v0.28.0
[INFO] [stderr]    Compiling anchor-attribute-constant v0.28.0
[INFO] [stderr]     Checking ark-poly v0.4.2
[INFO] [stderr]     Checking ark-ec v0.4.2
[INFO] [stderr]     Checking ark-bn254 v0.4.0
[INFO] [stderr]     Checking anchor-lang v0.28.0
[INFO] [stderr]     Checking rust-smart-contracts-vulns v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Account` and `MockBlockchain`
[INFO] [stdout]   --> src/vulnerabilities/reentrancy.rs:12:20
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::utils::{Account, MockBlockchain};
[INFO] [stdout]    |                    ^^^^^^^  ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::*`
[INFO] [stdout]   --> src/vulnerabilities/reentrancy.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     use super::*;
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::*`
[INFO] [stdout]    --> src/vulnerabilities/reentrancy.rs:132:9
[INFO] [stdout]     |
[INFO] [stdout] 132 |     use super::*;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Account` and `MockBlockchain`
[INFO] [stdout]   --> src/vulnerabilities/signature_verification.rs:13:20
[INFO] [stdout]    |
[INFO] [stdout] 13 | use crate::utils::{Account, MockBlockchain};
[INFO] [stdout]    |                    ^^^^^^^  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Account` and `MockBlockchain`
[INFO] [stdout]   --> src/vulnerabilities/account_confusion.rs:14:20
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::utils::{Account, MockBlockchain};
[INFO] [stdout]    |                    ^^^^^^^  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Account` and `MockBlockchain`
[INFO] [stdout]   --> src/vulnerabilities/front_running.rs:12:20
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::utils::{Account, MockBlockchain};
[INFO] [stdout]    |                    ^^^^^^^  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Account` and `MockBlockchain`
[INFO] [stdout]   --> src/vulnerabilities/inadequate_events.rs:13:20
[INFO] [stdout]    |
[INFO] [stdout] 13 | use crate::utils::{Account, MockBlockchain};
[INFO] [stdout]    |                    ^^^^^^^  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Account` and `MockBlockchain`
[INFO] [stdout]   --> src/vulnerabilities/storage_management.rs:13:20
[INFO] [stdout]    |
[INFO] [stdout] 13 | use crate::utils::{Account, MockBlockchain};
[INFO] [stdout]    |                    ^^^^^^^  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `mock-runtime`
[INFO] [stdout]    --> src/utils.rs:100:7
[INFO] [stdout]     |
[INFO] [stdout] 100 | #[cfg(feature = "mock-runtime")]
[INFO] [stdout]     |       ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = help: consider adding `mock-runtime` as a feature in `Cargo.toml`
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Account` and `MockBlockchain`
[INFO] [stdout]   --> src/vulnerabilities/reentrancy.rs:12:20
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::utils::{Account, MockBlockchain};
[INFO] [stdout]    |                    ^^^^^^^  ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::*`
[INFO] [stdout]   --> src/vulnerabilities/reentrancy.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     use super::*;
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::*`
[INFO] [stdout]    --> src/vulnerabilities/reentrancy.rs:132:9
[INFO] [stdout]     |
[INFO] [stdout] 132 |     use super::*;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Account` and `MockBlockchain`
[INFO] [stdout]   --> src/vulnerabilities/signature_verification.rs:13:20
[INFO] [stdout]    |
[INFO] [stdout] 13 | use crate::utils::{Account, MockBlockchain};
[INFO] [stdout]    |                    ^^^^^^^  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Account` and `MockBlockchain`
[INFO] [stdout]   --> src/vulnerabilities/account_confusion.rs:14:20
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::utils::{Account, MockBlockchain};
[INFO] [stdout]    |                    ^^^^^^^  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Account` and `MockBlockchain`
[INFO] [stdout]   --> src/vulnerabilities/front_running.rs:12:20
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::utils::{Account, MockBlockchain};
[INFO] [stdout]    |                    ^^^^^^^  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Account` and `MockBlockchain`
[INFO] [stdout]   --> src/vulnerabilities/inadequate_events.rs:13:20
[INFO] [stdout]    |
[INFO] [stdout] 13 | use crate::utils::{Account, MockBlockchain};
[INFO] [stdout]    |                    ^^^^^^^  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Account` and `MockBlockchain`
[INFO] [stdout]   --> src/vulnerabilities/storage_management.rs:13:20
[INFO] [stdout]    |
[INFO] [stdout] 13 | use crate::utils::{Account, MockBlockchain};
[INFO] [stdout]    |                    ^^^^^^^  ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `mock-runtime`
[INFO] [stdout]    --> src/utils.rs:100:7
[INFO] [stdout]     |
[INFO] [stdout] 100 | #[cfg(feature = "mock-runtime")]
[INFO] [stdout]     |       ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = help: consider adding `mock-runtime` as a feature in `Cargo.toml`
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `amount`
[INFO] [stdout]    --> src/vulnerabilities/denial_of_service.rs:247:17
[INFO] [stdout]     |
[INFO] [stdout] 247 |             let amount = match self.bidder_amounts.get(&bidder) {
[INFO] [stdout]     |                 ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 247 |             let _amount = match self.bidder_amounts.get(&bidder) {
[INFO] [stdout]     |                 +
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_DEVIATION_PERCENT`
[INFO] [stdout]     |
[INFO] [stdout] 247 -             let amount = match self.bidder_amounts.get(&bidder) {
[INFO] [stdout] 247 +             let vulnerabilities::flash_loan::secure::LendingProtocol::liquidate_position::MAX_DEVIATION_PERCENT = match self.bidder_amounts.get(&bidder) {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `liquidator_collateral`
[INFO] [stdout]    --> src/vulnerabilities/flash_loan.rs:243:17
[INFO] [stdout]     |
[INFO] [stdout] 243 |             let liquidator_collateral = position.collateral_amount - liquidation_bonus_amount;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 243 |             let _liquidator_collateral = position.collateral_amount - liquidation_bonus_amount;
[INFO] [stdout]     |                 +
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_DEVIATION_PERCENT`
[INFO] [stdout]     |
[INFO] [stdout] 243 -             let liquidator_collateral = position.collateral_amount - liquidation_bonus_amount;
[INFO] [stdout] 243 +             let vulnerabilities::flash_loan::secure::LendingProtocol::liquidate_position::MAX_DEVIATION_PERCENT = position.collateral_amount - liquidation_bonus_amount;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `liquidator`
[INFO] [stdout]    --> src/vulnerabilities/flash_loan.rs:220:64
[INFO] [stdout]     |
[INFO] [stdout] 220 |         pub fn liquidate_position(&mut self, position_id: u64, liquidator: [u8; 32]) -> Result<(), &'static str> {
[INFO] [stdout]     |                                                                ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidator`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `repay_amount`
[INFO] [stdout]    --> src/vulnerabilities/flash_loan.rs:468:17
[INFO] [stdout]     |
[INFO] [stdout] 468 |             let repay_amount = amount + fee_amount;
[INFO] [stdout]     |                 ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 468 |             let _repay_amount = amount + fee_amount;
[INFO] [stdout]     |                 +
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_DEVIATION_PERCENT`
[INFO] [stdout]     |
[INFO] [stdout] 468 -             let repay_amount = amount + fee_amount;
[INFO] [stdout] 468 +             let vulnerabilities::flash_loan::secure::LendingProtocol::liquidate_position::MAX_DEVIATION_PERCENT = amount + fee_amount;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `liquidator_collateral`
[INFO] [stdout]    --> src/vulnerabilities/flash_loan.rs:553:17
[INFO] [stdout]     |
[INFO] [stdout] 553 |             let liquidator_collateral = position.collateral_amount - liquidation_bonus_amount;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 553 |             let _liquidator_collateral = position.collateral_amount - liquidation_bonus_amount;
[INFO] [stdout]     |                 +
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_DEVIATION_PERCENT`
[INFO] [stdout]     |
[INFO] [stdout] 553 -             let liquidator_collateral = position.collateral_amount - liquidation_bonus_amount;
[INFO] [stdout] 553 +             let vulnerabilities::flash_loan::secure::LendingProtocol::liquidate_position::MAX_DEVIATION_PERCENT = position.collateral_amount - liquidation_bonus_amount;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `liquidator`
[INFO] [stdout]    --> src/vulnerabilities/flash_loan.rs:500:64
[INFO] [stdout]     |
[INFO] [stdout] 500 |         pub fn liquidate_position(&mut self, position_id: u64, liquidator: [u8; 32]) -> Result<(), &'static str> {
[INFO] [stdout]     |                                                                ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidator`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `minter`
[INFO] [stdout]    --> src/vulnerabilities/random_manipulation.rs:177:43
[INFO] [stdout]     |
[INFO] [stdout] 177 |         pub fn mint_random_nft(&mut self, minter: [u8; 32], tx_hash: [u8; 32]) -> Result<u64, &'static str> {
[INFO] [stdout]     |                                           ^^^^^^ help: if this is intentional, prefix it with an underscore: `_minter`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `salt`
[INFO] [stdout]    --> src/vulnerabilities/random_manipulation.rs:336:80
[INFO] [stdout]     |
[INFO] [stdout] 336 |         pub fn reveal_lottery_seed(&mut self, lottery_id: u64, seed: [u8; 32], salt: [u8; 32]) -> Result<[u8; 32], &'static str> {
[INFO] [stdout]     |                                                                                ^^^^ help: if this is intentional, prefix it with an underscore: `_salt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `proof`
[INFO] [stdout]    --> src/vulnerabilities/random_manipulation.rs:409:87
[INFO] [stdout]     |
[INFO] [stdout] 409 |         pub fn fulfill_randomness(&mut self, request_id: u64, random_value: [u8; 32], proof: [u8; 64]) -> Result<u64, &'static str> {
[INFO] [stdout]     |                                                                                       ^^^^^ help: if this is intentional, prefix it with an underscore: `_proof`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pubkey`
[INFO] [stdout]    --> src/vulnerabilities/signature_verification.rs:141:36
[INFO] [stdout]     |
[INFO] [stdout] 141 |         fn verify_signature(&self, pubkey: &[u8; 32], message: &[u8], signature: &[u8; 64]) -> bool {
[INFO] [stdout]     |                                    ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pubkey`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `message`
[INFO] [stdout]    --> src/vulnerabilities/signature_verification.rs:141:55
[INFO] [stdout]     |
[INFO] [stdout] 141 |         fn verify_signature(&self, pubkey: &[u8; 32], message: &[u8], signature: &[u8; 64]) -> bool {
[INFO] [stdout]     |                                                       ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `signature`
[INFO] [stdout]    --> src/vulnerabilities/signature_verification.rs:141:71
[INFO] [stdout]     |
[INFO] [stdout] 141 |         fn verify_signature(&self, pubkey: &[u8; 32], message: &[u8], signature: &[u8; 64]) -> bool {
[INFO] [stdout]     |                                                                       ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pubkey`
[INFO] [stdout]    --> src/vulnerabilities/signature_verification.rs:228:36
[INFO] [stdout]     |
[INFO] [stdout] 228 |         fn verify_signature(&self, pubkey: &[u8; 32], message: &[u8], signature: &[u8; 64]) -> bool {
[INFO] [stdout]     |                                    ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pubkey`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `message`
[INFO] [stdout]    --> src/vulnerabilities/signature_verification.rs:228:55
[INFO] [stdout]     |
[INFO] [stdout] 228 |         fn verify_signature(&self, pubkey: &[u8; 32], message: &[u8], signature: &[u8; 64]) -> bool {
[INFO] [stdout]     |                                                       ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `signature`
[INFO] [stdout]    --> src/vulnerabilities/signature_verification.rs:228:71
[INFO] [stdout]     |
[INFO] [stdout] 228 |         fn verify_signature(&self, pubkey: &[u8; 32], message: &[u8], signature: &[u8; 64]) -> bool {
[INFO] [stdout]     |                                                                       ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `self.token_accounts` as immutable because it is also borrowed as mutable
[INFO] [stdout]    --> src/vulnerabilities/account_confusion.rs:151:17
[INFO] [stdout]     |
[INFO] [stdout] 142 |             let vault_account = self.token_accounts.get_mut(&vault_address)
[INFO] [stdout]     |                                 ------------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 151 |             if !self.token_accounts.contains_key(&user_address) {
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^ immutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 159 |             vault_account.balance -= amount;
[INFO] [stdout]     |             ------------------------------- mutable borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `self.token_accounts` as mutable more than once at a time
[INFO] [stdout]    --> src/vulnerabilities/account_confusion.rs:152:17
[INFO] [stdout]     |
[INFO] [stdout] 142 |             let vault_account = self.token_accounts.get_mut(&vault_address)
[INFO] [stdout]     |                                 ------------------- first mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 152 |                 self.token_accounts.insert(user_address, TokenAccount {
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 159 |             vault_account.balance -= amount;
[INFO] [stdout]     |             ------------------------------- first borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `self.token_accounts` as immutable because it is also borrowed as mutable
[INFO] [stdout]    --> src/vulnerabilities/account_confusion.rs:226:17
[INFO] [stdout]     |
[INFO] [stdout] 212 |             let vault_account = self.token_accounts.get_mut(&vault_address)
[INFO] [stdout]     |                                 ------------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 226 |             if !self.token_accounts.contains_key(&user_address) {
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^ immutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 234 |             vault_account.balance -= amount;
[INFO] [stdout]     |             ------------------------------- mutable borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `self.token_accounts` as mutable more than once at a time
[INFO] [stdout]    --> src/vulnerabilities/account_confusion.rs:227:17
[INFO] [stdout]     |
[INFO] [stdout] 212 |             let vault_account = self.token_accounts.get_mut(&vault_address)
[INFO] [stdout]     |                                 ------------------- first mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 227 |                 self.token_accounts.insert(user_address, TokenAccount {
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 234 |             vault_account.balance -= amount;
[INFO] [stdout]     |             ------------------------------- first borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `secret`
[INFO] [stdout]    --> src/vulnerabilities/front_running.rs:278:39
[INFO] [stdout]     |
[INFO] [stdout] 278 | ...                   secret: [u8; 32],
[INFO] [stdout]     |                       ^^^^^^ help: if this is intentional, prefix it with an underscore: `_secret`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `program_id`
[INFO] [stdout]    --> src/vulnerabilities/storage_management.rs:153:34
[INFO] [stdout]     |
[INFO] [stdout] 153 | ...                   program_id: [u8; 32],
[INFO] [stdout]     |                       ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable
[INFO] [stdout]    --> src/vulnerabilities/storage_management.rs:166:29
[INFO] [stdout]     |
[INFO] [stdout] 159 |             let account = self.accounts.get_mut(&account_id)
[INFO] [stdout]     |                           ------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 166 |             let mut state = self.deserialize_state(&account.data)?;
[INFO] [stdout]     |                             ^^^^                   ------------- mutable borrow later used here
[INFO] [stdout]     |                             |
[INFO] [stdout]     |                             immutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable
[INFO] [stdout]    --> src/vulnerabilities/storage_management.rs:192:24
[INFO] [stdout]     |
[INFO] [stdout] 159 |             let account = self.accounts.get_mut(&account_id)
[INFO] [stdout]     |                           ------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 192 |             let data = self.serialize_state(&state)?;
[INFO] [stdout]     |                        ^^^^ immutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 196 |             account.data = data;
[INFO] [stdout]     |             ------------ mutable borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `current_values_size`
[INFO] [stdout]    --> src/vulnerabilities/storage_management.rs:355:25
[INFO] [stdout]     |
[INFO] [stdout] 355 |                     let current_values_size = state.values.len() * 8;
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 355 |                     let _current_values_size = state.values.len() * 8;
[INFO] [stdout]     |                         +
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_DELEGATES`
[INFO] [stdout]     |
[INFO] [stdout] 355 -                     let current_values_size = state.values.len() * 8;
[INFO] [stdout] 355 +                     let vulnerabilities::unchecked_inputs::secure::BankProgram::add_delegate::MAX_DELEGATES = state.values.len() * 8;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable
[INFO] [stdout]    --> src/vulnerabilities/storage_management.rs:335:29
[INFO] [stdout]     |
[INFO] [stdout] 326 |             let account = self.accounts.get_mut(&account_id)
[INFO] [stdout]     |                           ------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 335 |             let mut state = self.deserialize_state(&account.data)?;
[INFO] [stdout]     |                             ^^^^                   ------------- mutable borrow later used here
[INFO] [stdout]     |                             |
[INFO] [stdout]     |                             immutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable
[INFO] [stdout]    --> src/vulnerabilities/storage_management.rs:369:28
[INFO] [stdout]     |
[INFO] [stdout] 326 |             let account = self.accounts.get_mut(&account_id)
[INFO] [stdout]     |                           ------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 369 |             let new_data = self.serialize_state(&state)?;
[INFO] [stdout]     |                            ^^^^ immutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 372 |             if new_data.len() > account.size {
[INFO] [stdout]     |                                 ------------ mutable borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0499, E0502.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0499`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-smart-contracts-vulns` (lib) due to 8 previous errors; 27 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused variable: `attacker`
[INFO] [stdout]    --> src/vulnerabilities/access_control.rs:338:13
[INFO] [stdout]     |
[INFO] [stdout] 338 |         let attacker = [3u8; 32];
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_attacker`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `user`
[INFO] [stdout]    --> src/vulnerabilities/access_control.rs:372:13
[INFO] [stdout]     |
[INFO] [stdout] 372 |         let user = [2u8; 32];
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `amount`
[INFO] [stdout]    --> src/vulnerabilities/denial_of_service.rs:247:17
[INFO] [stdout]     |
[INFO] [stdout] 247 |             let amount = match self.bidder_amounts.get(&bidder) {
[INFO] [stdout]     |                 ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 247 |             let _amount = match self.bidder_amounts.get(&bidder) {
[INFO] [stdout]     |                 +
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_DEVIATION_PERCENT`
[INFO] [stdout]     |
[INFO] [stdout] 247 -             let amount = match self.bidder_amounts.get(&bidder) {
[INFO] [stdout] 247 +             let vulnerabilities::flash_loan::secure::LendingProtocol::liquidate_position::MAX_DEVIATION_PERCENT = match self.bidder_amounts.get(&bidder) {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `liquidator_collateral`
[INFO] [stdout]    --> src/vulnerabilities/flash_loan.rs:243:17
[INFO] [stdout]     |
[INFO] [stdout] 243 |             let liquidator_collateral = position.collateral_amount - liquidation_bonus_amount;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 243 |             let _liquidator_collateral = position.collateral_amount - liquidation_bonus_amount;
[INFO] [stdout]     |                 +
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_DEVIATION_PERCENT`
[INFO] [stdout]     |
[INFO] [stdout] 243 -             let liquidator_collateral = position.collateral_amount - liquidation_bonus_amount;
[INFO] [stdout] 243 +             let vulnerabilities::flash_loan::secure::LendingProtocol::liquidate_position::MAX_DEVIATION_PERCENT = position.collateral_amount - liquidation_bonus_amount;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `liquidator`
[INFO] [stdout]    --> src/vulnerabilities/flash_loan.rs:220:64
[INFO] [stdout]     |
[INFO] [stdout] 220 |         pub fn liquidate_position(&mut self, position_id: u64, liquidator: [u8; 32]) -> Result<(), &'static str> {
[INFO] [stdout]     |                                                                ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidator`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `repay_amount`
[INFO] [stdout]    --> src/vulnerabilities/flash_loan.rs:468:17
[INFO] [stdout]     |
[INFO] [stdout] 468 |             let repay_amount = amount + fee_amount;
[INFO] [stdout]     |                 ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 468 |             let _repay_amount = amount + fee_amount;
[INFO] [stdout]     |                 +
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_DEVIATION_PERCENT`
[INFO] [stdout]     |
[INFO] [stdout] 468 -             let repay_amount = amount + fee_amount;
[INFO] [stdout] 468 +             let vulnerabilities::flash_loan::secure::LendingProtocol::liquidate_position::MAX_DEVIATION_PERCENT = amount + fee_amount;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `liquidator_collateral`
[INFO] [stdout]    --> src/vulnerabilities/flash_loan.rs:553:17
[INFO] [stdout]     |
[INFO] [stdout] 553 |             let liquidator_collateral = position.collateral_amount - liquidation_bonus_amount;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 553 |             let _liquidator_collateral = position.collateral_amount - liquidation_bonus_amount;
[INFO] [stdout]     |                 +
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_DEVIATION_PERCENT`
[INFO] [stdout]     |
[INFO] [stdout] 553 -             let liquidator_collateral = position.collateral_amount - liquidation_bonus_amount;
[INFO] [stdout] 553 +             let vulnerabilities::flash_loan::secure::LendingProtocol::liquidate_position::MAX_DEVIATION_PERCENT = position.collateral_amount - liquidation_bonus_amount;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `liquidator`
[INFO] [stdout]    --> src/vulnerabilities/flash_loan.rs:500:64
[INFO] [stdout]     |
[INFO] [stdout] 500 |         pub fn liquidate_position(&mut self, position_id: u64, liquidator: [u8; 32]) -> Result<(), &'static str> {
[INFO] [stdout]     |                                                                ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_liquidator`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `*protocol` as mutable more than once at a time
[INFO] [stdout]    --> src/vulnerabilities/flash_loan.rs:637:21
[INFO] [stdout]     |
[INFO] [stdout] 631 |             let dex = protocol.dex_pools.get_mut("TOKEN_USDC").unwrap();
[INFO] [stdout]     |                       ------------------ first mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 637 |             let _ = protocol.liquidate_position(position_id, attacker);
[INFO] [stdout]     |                     ^^^^^^^^ second mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 640 |             dex.swap("TOKEN", 900_000);
[INFO] [stdout]     |             --- first borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/vulnerabilities/flash_loan.rs:670:13
[INFO] [stdout]     |
[INFO] [stdout] 670 |         for i in 0..24 {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `*protocol` as mutable more than once at a time
[INFO] [stdout]    --> src/vulnerabilities/flash_loan.rs:694:13
[INFO] [stdout]     |
[INFO] [stdout] 688 |             let dex = protocol.dex_pools.get_mut("TOKEN_USDC").unwrap();
[INFO] [stdout]     |                       ------------------ first mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 694 |             protocol.update_oracle_price("TOKEN", 500_000); // Price drops to 0.5
[INFO] [stdout]     |             ^^^^^^^^ second mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 704 |             dex.swap("TOKEN", usdc_needed);
[INFO] [stdout]     |             --- first borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `*protocol` as mutable more than once at a time
[INFO] [stdout]    --> src/vulnerabilities/flash_loan.rs:697:38
[INFO] [stdout]     |
[INFO] [stdout] 688 |             let dex = protocol.dex_pools.get_mut("TOKEN_USDC").unwrap();
[INFO] [stdout]     |                       ------------------ first mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 697 |             let liquidation_result = protocol.liquidate_position(position_id, attacker);
[INFO] [stdout]     |                                      ^^^^^^^^ second mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 704 |             dex.swap("TOKEN", usdc_needed);
[INFO] [stdout]     |             --- first borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `minter`
[INFO] [stdout]    --> src/vulnerabilities/random_manipulation.rs:177:43
[INFO] [stdout]     |
[INFO] [stdout] 177 |         pub fn mint_random_nft(&mut self, minter: [u8; 32], tx_hash: [u8; 32]) -> Result<u64, &'static str> {
[INFO] [stdout]     |                                           ^^^^^^ help: if this is intentional, prefix it with an underscore: `_minter`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `salt`
[INFO] [stdout]    --> src/vulnerabilities/random_manipulation.rs:336:80
[INFO] [stdout]     |
[INFO] [stdout] 336 |         pub fn reveal_lottery_seed(&mut self, lottery_id: u64, seed: [u8; 32], salt: [u8; 32]) -> Result<[u8; 32], &'static str> {
[INFO] [stdout]     |                                                                                ^^^^ help: if this is intentional, prefix it with an underscore: `_salt`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `proof`
[INFO] [stdout]    --> src/vulnerabilities/random_manipulation.rs:409:87
[INFO] [stdout]     |
[INFO] [stdout] 409 |         pub fn fulfill_randomness(&mut self, request_id: u64, random_value: [u8; 32], proof: [u8; 64]) -> Result<u64, &'static str> {
[INFO] [stdout]     |                                                                                       ^^^^^ help: if this is intentional, prefix it with an underscore: `_proof`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `different_roll`
[INFO] [stdout]    --> src/vulnerabilities/random_manipulation.rs:593:13
[INFO] [stdout]     |
[INFO] [stdout] 593 |         let different_roll = platform.roll_dice(player, different_seed).unwrap();
[INFO] [stdout]     |             ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_different_roll`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pubkey`
[INFO] [stdout]    --> src/vulnerabilities/signature_verification.rs:141:36
[INFO] [stdout]     |
[INFO] [stdout] 141 |         fn verify_signature(&self, pubkey: &[u8; 32], message: &[u8], signature: &[u8; 64]) -> bool {
[INFO] [stdout]     |                                    ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pubkey`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `message`
[INFO] [stdout]    --> src/vulnerabilities/signature_verification.rs:141:55
[INFO] [stdout]     |
[INFO] [stdout] 141 |         fn verify_signature(&self, pubkey: &[u8; 32], message: &[u8], signature: &[u8; 64]) -> bool {
[INFO] [stdout]     |                                                       ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `signature`
[INFO] [stdout]    --> src/vulnerabilities/signature_verification.rs:141:71
[INFO] [stdout]     |
[INFO] [stdout] 141 |         fn verify_signature(&self, pubkey: &[u8; 32], message: &[u8], signature: &[u8; 64]) -> bool {
[INFO] [stdout]     |                                                                       ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pubkey`
[INFO] [stdout]    --> src/vulnerabilities/signature_verification.rs:228:36
[INFO] [stdout]     |
[INFO] [stdout] 228 |         fn verify_signature(&self, pubkey: &[u8; 32], message: &[u8], signature: &[u8; 64]) -> bool {
[INFO] [stdout]     |                                    ^^^^^^ help: if this is intentional, prefix it with an underscore: `_pubkey`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `message`
[INFO] [stdout]    --> src/vulnerabilities/signature_verification.rs:228:55
[INFO] [stdout]     |
[INFO] [stdout] 228 |         fn verify_signature(&self, pubkey: &[u8; 32], message: &[u8], signature: &[u8; 64]) -> bool {
[INFO] [stdout]     |                                                       ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `signature`
[INFO] [stdout]    --> src/vulnerabilities/signature_verification.rs:228:71
[INFO] [stdout]     |
[INFO] [stdout] 228 |         fn verify_signature(&self, pubkey: &[u8; 32], message: &[u8], signature: &[u8; 64]) -> bool {
[INFO] [stdout]     |                                                                       ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `self.token_accounts` as immutable because it is also borrowed as mutable
[INFO] [stdout]    --> src/vulnerabilities/account_confusion.rs:151:17
[INFO] [stdout]     |
[INFO] [stdout] 142 |             let vault_account = self.token_accounts.get_mut(&vault_address)
[INFO] [stdout]     |                                 ------------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 151 |             if !self.token_accounts.contains_key(&user_address) {
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^ immutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 159 |             vault_account.balance -= amount;
[INFO] [stdout]     |             ------------------------------- mutable borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `self.token_accounts` as mutable more than once at a time
[INFO] [stdout]    --> src/vulnerabilities/account_confusion.rs:152:17
[INFO] [stdout]     |
[INFO] [stdout] 142 |             let vault_account = self.token_accounts.get_mut(&vault_address)
[INFO] [stdout]     |                                 ------------------- first mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 152 |                 self.token_accounts.insert(user_address, TokenAccount {
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 159 |             vault_account.balance -= amount;
[INFO] [stdout]     |             ------------------------------- first borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `self.token_accounts` as immutable because it is also borrowed as mutable
[INFO] [stdout]    --> src/vulnerabilities/account_confusion.rs:226:17
[INFO] [stdout]     |
[INFO] [stdout] 212 |             let vault_account = self.token_accounts.get_mut(&vault_address)
[INFO] [stdout]     |                                 ------------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 226 |             if !self.token_accounts.contains_key(&user_address) {
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^ immutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 234 |             vault_account.balance -= amount;
[INFO] [stdout]     |             ------------------------------- mutable borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `self.token_accounts` as mutable more than once at a time
[INFO] [stdout]    --> src/vulnerabilities/account_confusion.rs:227:17
[INFO] [stdout]     |
[INFO] [stdout] 212 |             let vault_account = self.token_accounts.get_mut(&vault_address)
[INFO] [stdout]     |                                 ------------------- first mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 227 |                 self.token_accounts.insert(user_address, TokenAccount {
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 234 |             vault_account.balance -= amount;
[INFO] [stdout]     |             ------------------------------- first borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `secret`
[INFO] [stdout]    --> src/vulnerabilities/front_running.rs:278:39
[INFO] [stdout]     |
[INFO] [stdout] 278 | ...                   secret: [u8; 32],
[INFO] [stdout]     |                       ^^^^^^ help: if this is intentional, prefix it with an underscore: `_secret`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `program_id`
[INFO] [stdout]    --> src/vulnerabilities/storage_management.rs:153:34
[INFO] [stdout]     |
[INFO] [stdout] 153 | ...                   program_id: [u8; 32],
[INFO] [stdout]     |                       ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable
[INFO] [stdout]    --> src/vulnerabilities/storage_management.rs:166:29
[INFO] [stdout]     |
[INFO] [stdout] 159 |             let account = self.accounts.get_mut(&account_id)
[INFO] [stdout]     |                           ------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 166 |             let mut state = self.deserialize_state(&account.data)?;
[INFO] [stdout]     |                             ^^^^                   ------------- mutable borrow later used here
[INFO] [stdout]     |                             |
[INFO] [stdout]     |                             immutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable
[INFO] [stdout]    --> src/vulnerabilities/storage_management.rs:192:24
[INFO] [stdout]     |
[INFO] [stdout] 159 |             let account = self.accounts.get_mut(&account_id)
[INFO] [stdout]     |                           ------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 192 |             let data = self.serialize_state(&state)?;
[INFO] [stdout]     |                        ^^^^ immutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 196 |             account.data = data;
[INFO] [stdout]     |             ------------ mutable borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `current_values_size`
[INFO] [stdout]    --> src/vulnerabilities/storage_management.rs:355:25
[INFO] [stdout]     |
[INFO] [stdout] 355 |                     let current_values_size = state.values.len() * 8;
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]     |
[INFO] [stdout] 355 |                     let _current_values_size = state.values.len() * 8;
[INFO] [stdout]     |                         +
[INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_DELEGATES`
[INFO] [stdout]     |
[INFO] [stdout] 355 -                     let current_values_size = state.values.len() * 8;
[INFO] [stdout] 355 +                     let vulnerabilities::unchecked_inputs::secure::BankProgram::add_delegate::MAX_DELEGATES = state.values.len() * 8;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable
[INFO] [stdout]    --> src/vulnerabilities/storage_management.rs:335:29
[INFO] [stdout]     |
[INFO] [stdout] 326 |             let account = self.accounts.get_mut(&account_id)
[INFO] [stdout]     |                           ------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 335 |             let mut state = self.deserialize_state(&account.data)?;
[INFO] [stdout]     |                             ^^^^                   ------------- mutable borrow later used here
[INFO] [stdout]     |                             |
[INFO] [stdout]     |                             immutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable
[INFO] [stdout]    --> src/vulnerabilities/storage_management.rs:369:28
[INFO] [stdout]     |
[INFO] [stdout] 326 |             let account = self.accounts.get_mut(&account_id)
[INFO] [stdout]     |                           ------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 369 |             let new_data = self.serialize_state(&state)?;
[INFO] [stdout]     |                            ^^^^ immutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 372 |             if new_data.len() > account.size {
[INFO] [stdout]     |                                 ------------ mutable borrow later used here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0499, E0502.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0499`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-smart-contracts-vulns` (lib test) due to 11 previous errors; 31 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "5253d7f704c6bc3fef92cafe314b81ea003d4a5f63a57fbe0b844295921304cf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5253d7f704c6bc3fef92cafe314b81ea003d4a5f63a57fbe0b844295921304cf", kill_on_drop: false }`
[INFO] [stdout] 5253d7f704c6bc3fef92cafe314b81ea003d4a5f63a57fbe0b844295921304cf
