{"id":16880765,"url":"https://github.com/wtdcode/revm_ub_repro","last_synced_at":"2025-03-20T03:34:23.517Z","repository":{"id":226201153,"uuid":"768031201","full_name":"wtdcode/revm_ub_repro","owner":"wtdcode","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-06T10:58:16.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-25T05:41:22.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wtdcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-06T10:45:58.000Z","updated_at":"2024-03-06T10:52:29.000Z","dependencies_parsed_at":"2024-03-06T11:57:54.417Z","dependency_job_id":"11722dac-34c2-4e10-8a4b-2a3e9193d138","html_url":"https://github.com/wtdcode/revm_ub_repro","commit_stats":null,"previous_names":["wtdcode/revm_ub_repro"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtdcode%2Frevm_ub_repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtdcode%2Frevm_ub_repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtdcode%2Frevm_ub_repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wtdcode%2Frevm_ub_repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wtdcode","download_url":"https://codeload.github.com/wtdcode/revm_ub_repro/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244544513,"owners_count":20469691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T16:00:00.030Z","updated_at":"2025-03-20T03:34:23.484Z","avatar_url":"https://github.com/wtdcode.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\n\nA UB before revm 3.4.0\n\nReproduce:\n\n```\n(default_venv) mio@station /t/ub_repro (master) [0|1]\u003e cargo run\n    Finished dev [unoptimized + debuginfo] target(s) in 0.02s\n     Running `target/debug/ub_repro`\n0x5bf69e2d5c00, aligned: true\n0x5bf69e2d5c01, aligned: false\n0x5bf69e2d5c02, aligned: false\nContinue\n(default_venv) mio@station /t/ub_repro (master)\u003e cargo run --release\n    Finished release [optimized] target(s) in 0.02s\n     Running `target/release/ub_repro`\n0x651fc2f01c00, aligned: true\n0x651fc2f01c01, aligned: false\n0x651fc2f01c02, aligned: false\nStackUnderflow\n(default_venv) mio@station /t/ub_repro (master)\u003e \n```\n\nMiri:\n\n```\n0x873ab, aligned: false\n0x873ac, aligned: false\n0x873ad, aligned: false\nerror: Undefined Behavior: `assume` called with `false`\n   --\u003e /home/mio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/slice/index.rs:239:13\n    |\n239 |             crate::intrinsics::assume(self \u003c slice.len());\n    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `assume` called with `false`\n    |\n    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior\n    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information\n    = note: BACKTRACE:\n    = note: inside `\u003cusize as std::slice::SliceIndex\u003c[revm_primitives::ruint::Uint\u003c256, 4\u003e]\u003e\u003e::get_unchecked` at /home/mio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/slice/index.rs:239:13: 239:58\n    = note: inside `revm_primitives::bitvec::macros::internal::core::slice::\u003cimpl [revm_primitives::ruint::Uint\u003c256, 4\u003e]\u003e::get_unchecked::\u003cusize\u003e` at /home/mio/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/slice/mod.rs:686:20: 686:45\n    = note: inside `revm_interpreter::Stack::pop2_unsafe` at /home/mio/.cargo/git/checkouts/revm-4517530ba533de04/fa764aa/crates/interpreter/src/interpreter/stack.rs:144:14: 144:46\n    = note: inside `revm_interpreter::instructions::memory::mstore` at /home/mio/.cargo/git/checkouts/revm-4517530ba533de04/fa764aa/crates/interpreter/src/instructions/macros.rs:132:35: 132:62\nnote: inside `main`\n   --\u003e src/main.rs:37:5\n    |\n37  |     memory::mstore(\u0026mut intrp, \u0026mut host);\n    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nnote: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace\n\nerror: aborting due to 1 previous error; 2 warnings emitted\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtdcode%2Frevm_ub_repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwtdcode%2Frevm_ub_repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwtdcode%2Frevm_ub_repro/lists"}