instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
ComposioHQ__composio__3035
ComposioHQ/composio
3,035
defect
095c71585af947034328c559b3cabb752e4f433d
b14983b3698355f81c0683bcdcf4c588f521522c
feat: adding cli touchups here
## Summary - **Skill installer**: New `installSkill` effect that downloads and installs the `composio-cli` skill for Claude Code during `composio login`. Downloads `composio-skill.zip` from the matching GitHub release, extracts to `~/.agents/skills/composio-cli/`, and creates a symlink at `~/.claude/skills/composio-cl...
diff --git a/.github/workflows/build-cli-binaries.yml b/.github/workflows/build-cli-binaries.yml index 3e853c2a60..b76a20b7e6 100644 --- a/.github/workflows/build-cli-binaries.yml +++ b/.github/workflows/build-cli-binaries.yml @@ -119,6 +119,11 @@ jobs: - name: Display checksums run: cat ts/packages/cli...
8
8
6
[{"id": "G0", "claim": "The production layers in cli-main.ts omit FetchHttpClient.layer, which installSkill requires, so the skill install will always fail (silently logged as non-fatal) and the feature will never work.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"...
null
ComposioHQ__composio__3036
ComposioHQ/composio
3,036
defect
095c71585af947034328c559b3cabb752e4f433d
17c4c35de9ca67bfb3a28f65145f058f0a22b94e
Cache no-auth toolkits as connected
## Summary - Cache no-auth toolkits alongside the consumer’s connected toolkits in the short-term cache. - Normalize toolkit slugs to lowercase and deduplicate entries before persisting. - Add a regression test covering the combined cached result for connected and no-auth toolkits. ## Testing - `Not run` (not requeste...
diff --git a/ts/packages/cli/src/services/consumer-short-term-cache.ts b/ts/packages/cli/src/services/consumer-short-term-cache.ts index b3a58505a8..f77dbaea24 100644 --- a/ts/packages/cli/src/services/consumer-short-term-cache.ts +++ b/ts/packages/cli/src/services/consumer-short-term-cache.ts @@ -4,6 +4,7 @@ import { ...
1
1
1
[{"id": "G0", "claim": "writeConsumerConnectedToolkitsCache writes to the same cache key without including no-auth toolkits, so when a search is performed it overwrites the entry with only has_active_connection toolkits, silently dropping the no-auth toolkits the refresh path had cached.", "category": "correctness", "v...
null
ComposioHQ__composio__3038
ComposioHQ/composio
3,038
defect
7502c8e239f651ad2cb008f035bc00324246501a
f6aeab981b3e2dc6d11dce6fb6fe68db2f42216f
chore: fix link behavior, disable caching, improve search steps
## Summary Explain the motivation and context for this change. Link to any related issues. Fixes # ## Changes - - ## Type of change - [ ] Bug fix - [ ] New feature - [ ] Refactor/Chore - [ ] Documentation - [ ] Breaking change ## How Has This Been Tested? Describe the tests you ran and instructio...
diff --git a/ts/packages/cli/src/commands/connected-accounts/commands/connected-accounts.link.cmd.ts b/ts/packages/cli/src/commands/connected-accounts/commands/connected-accounts.link.cmd.ts index bafae296c8..f9608e12ec 100644 --- a/ts/packages/cli/src/commands/connected-accounts/commands/connected-accounts.link.cmd.ts...
3
2
1
[{"id": "G0", "claim": "The isCacheDisabled config's Config.nested(COMPOSIO_) prefix stacks on the prefix extendConfigProvider already adds, so COMPOSIO_DISABLE_CONNECTED_ACCOUNT_CACHE=false is never found and, with the default true, the cache is permanently disabled and cannot be re-enabled via env var.", "category": ...
null
ComposioHQ__composio__3040
ComposioHQ/composio
3,040
defect
77904b09c9bef367eb7e4daf5f67102debcead37
7660a06f16136c067e632f613541487e815eac60
feat: fix bundling for run
run bundling was not working for some shared scripts in certain envs
diff --git a/ts/packages/cli/scripts/build-all-binaries.ts b/ts/packages/cli/scripts/build-all-binaries.ts index 57ac5109af..b219c33d2e 100644 --- a/ts/packages/cli/scripts/build-all-binaries.ts +++ b/ts/packages/cli/scripts/build-all-binaries.ts @@ -13,9 +13,11 @@ */ import process from 'node:process'; +import { ...
3
2
0
[{"id": "G0", "claim": "The pnpm audit --prod check found 23 security vulnerabilities (14 high) in production dependencies (minimatch, hono, yaml, picomatch, brace-expansion) and asks that they be reviewed and fixed.", "category": "security", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G...
null
ComposioHQ__composio__3077
ComposioHQ/composio
3,077
defect
1735fa0eb26712a79323c7f189c7861b41325c05
f32fd226976ebf6598d8e415f114f17c9ffbd5ba
Preload custom auth connections into CLI tool router sessions
## Summary - Preloads active connected accounts into CLI Tool Router sessions so custom-auth toolkits can execute without missing auth context. - Resolves connected toolkits from the consumer cache path when available, falling back to the standard connected-toolkit lookup. - Adds a new session-connection resolver that ...
diff --git a/ts/packages/cli/src/effects/create-tool-router-session.ts b/ts/packages/cli/src/effects/create-tool-router-session.ts index a5ad2b240f..05a70c1f22 100644 --- a/ts/packages/cli/src/effects/create-tool-router-session.ts +++ b/ts/packages/cli/src/effects/create-tool-router-session.ts @@ -1,5 +1,6 @@ import {...
2
1
1
[{"id": "G0", "claim": "The Effect.option wrapper around directToolkits is meant to fall back to getConsumerConnectedToolkits when the direct approach fails, but because resolveToolRouterSessionConnections has an internal Effect.catchAll that converts connectedAccounts.list errors into a successful empty result, direct...
null
ComposioHQ__composio__3125
ComposioHQ/composio
3,125
defect
12ef3d3a5051072000873b3117ecfa738885c3ec
d9a8b74b7bcb1bc180af7c8a9f2e1c20065821d2
Support listening to top-level composio events
## Summary - Allow `composio listen` to subscribe directly to top-level `composio.*` project event types without creating a temporary trigger. - Keep the existing temporary-trigger flow for standard trigger slugs. - Update help text and root command descriptions to document the new behavior. - Add analytics/test layer ...
diff --git a/ts/packages/cli/src/analytics/dispatch.ts b/ts/packages/cli/src/analytics/dispatch.ts index 822844b8f2..d205b4c5bb 100644 --- a/ts/packages/cli/src/analytics/dispatch.ts +++ b/ts/packages/cli/src/analytics/dispatch.ts @@ -212,12 +212,12 @@ export const getCurrentCwdSessionId = (): string | undefined => { ...
1
1
0
[{"id": "G0", "claim": "The trigger-slug branch of the max-events stop message hardcodes the plural 'events', so with --max-events 1 it prints 'Stopped after receiving 1 events', inconsistent with the pluralized 'event${matchingEvents === 1 ? '' : 's'}' used in the other stop messages in the same block.", "category": "...
null
ComposioHQ__composio__3126
ComposioHQ/composio
3,126
defect
12ef3d3a5051072000873b3117ecfa738885c3ec
a072855140b19fce7a0033869074359e09db692a
Add experimental feature config support to the CLI
## Summary - Adds a persisted CLI user config file for experimental feature flags, artifact directory overrides, and experimental subagent target selection. - Wires config-aware command visibility into root command construction, help text, and validation error handling so experimental commands only appear when enabled....
diff --git a/.github/workflows/cli.test-installation.yml b/.github/workflows/cli.test-installation.yml index 4fbfa023d3..f45ede0f07 100644 --- a/.github/workflows/cli.test-installation.yml +++ b/.github/workflows/cli.test-installation.yml @@ -316,33 +316,27 @@ jobs: echo "Checking shell configuration updates...
4
3
2
[{"id": "G0", "claim": "The `experimental` export is never imported or used anywhere while every ROOT_COMMANDS entry uses `tagged()` without tags, so the visibility-filtering infrastructure is inert and the unused export is dead code.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intr...
null
ComposioHQ__composio__3132
ComposioHQ/composio
3,132
defect
a8071e0d35d5d68410f64c01b4f6f8598b73bf5b
08103157fd98f5e723e10f991050354d61c52ba1
Add direct user API key login to the CLI
## Summary - Adds a new `composio login --user-api-key` flow for direct login without the browser/session-key path. - Supports selecting a default organization with `--org` and validates incompatible flag combinations. - Updates login help, CLI docs, and command output so the direct login path reports the selected org ...
diff --git a/ts/packages/cli/AGENTS.md b/ts/packages/cli/AGENTS.md index a842947ff9..d61092e6a0 100644 --- a/ts/packages/cli/AGENTS.md +++ b/ts/packages/cli/AGENTS.md @@ -31,7 +31,7 @@ Each command is declared with `@effect/cli`'s `Command.make()` pattern: | -------------------------------------------------------- | -...
2
1
1
[{"id": "G0", "claim": "When the org picker succeeds, the user sees two nearly-identical success messages because the `if (result)` block already calls `ui.log.success(formatLoginSuccessMessage(...))` and the immediately following `emitLoginComplete` also calls `ui.log.success(formatLoginSuccessMessage(...))` internall...
null
ComposioHQ__composio__3137
ComposioHQ/composio
3,137
defect
1cc2ec6b501106e2753fb295e483db849d219bdf
554d7a6fbd2b6cde184661f2ed7a666259d3a19e
Add root skill-install flag for Claude, Codex, and OpenClaw
## Summary - Adds a root-level `--instal-skill` / `--install-skill` flag so users can install the composio skill without going through a subcommand. - Supports selecting the target agent (`claude`, `codex`, or `openclaw`) and optionally overriding the installed skill name. - Updates the install flow to place the skill ...
diff --git a/ts/packages/cli/README.md b/ts/packages/cli/README.md index 00fe130373..498c23f2b5 100644 --- a/ts/packages/cli/README.md +++ b/ts/packages/cli/README.md @@ -22,6 +22,7 @@ composio [--log-level all|trace|debug|info|warning|error|fatal|none] ### Optional Flags - `--log-level`: Set the log verbosity leve...
3
2
2
[{"id": "G0", "claim": "The pnpm audit --prod check found 31 security vulnerabilities (15 high, 15 moderate, 1 low) in production dependencies and asks that they be reviewed and fixed.", "category": "security", "verdict": "uncertain", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The SKILL_NAME_PAT...
null
ComposioHQ__composio__3141
ComposioHQ/composio
3,141
defect
1450e797192df681fa8231668a48224ef4238b83
fbbc40329f1ff3049f03d3feb5175050f381a3b6
feat: enable support for multi-account
## Summary - Add `multiAccount` config to ToolRouter session creation in both TypeScript and Python SDKs, supporting `enable`, `maxAccountsPerToolkit`, and `requireExplicitSelection` options - Add `connectedAccounts.update()` method for setting/clearing account aliases via `PATCH /api/v3/connected_accounts/{nanoid}` - ...
diff --git a/python/composio/core/models/connected_accounts.py b/python/composio/core/models/connected_accounts.py index 7eb8fdeb59..e3f30acc5c 100644 --- a/python/composio/core/models/connected_accounts.py +++ b/python/composio/core/models/connected_accounts.py @@ -356,6 +356,39 @@ def __init__(self, client: HttpClien...
6
5
1
[{"id": "G0", "claim": "transformToolRouterMultiAccountParams returns an object even when all fields are undefined (e.g. input {}), so ToolRouter.create() sends an empty multi_account: {} to the API; consider returning undefined when no field is set.", "category": "correctness", "verdict": "supported", "priority": "P2"...
null
ComposioHQ__composio__3193
ComposioHQ/composio
3,193
defect
b14810b3a4f440e8df7c0c0b262ac88388b2da41
e57126730737a9213d22a3fc9b4214010e6a9119
fix(core): restore session.toolkits() pagination
This PR: - closes PLEN-1886 - renames the `session.toolkits()` pagination contract from `nextCursor` to `cursor` on both input and response, matching the backend - this is a breaking change: `nextCursor` is no longer accepted as input nor returned in the response - updates the SDK API reference at `ts/docs/api/tool-rou...
diff --git a/ts/packages/core/src/models/ToolRouterSession.ts b/ts/packages/core/src/models/ToolRouterSession.ts index 2c73e45cae..3b3301aef5 100644 --- a/ts/packages/core/src/models/ToolRouterSession.ts +++ b/ts/packages/core/src/models/ToolRouterSession.ts @@ -7,6 +7,7 @@ import { SessionExperimental, ToolRoute...
2
2
1
[{"id": "G0", "claim": "The toolkits pagination cursor should not be generated manually (base64 page/limit) by the client since the API already responds with a cursor; use the API's cursor and expose it in the toolkit response to the user.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intr...
null
ComposioHQ__composio__3202
ComposioHQ/composio
3,202
defect
8508663b4809c912780f15ceff9a92bc3dc88117
04fdcf8f2ee13d40b6df6e8c0a0cb485d7e9e7ef
feat(cli): migrate API key storage from plaintext to OS keyring
## Summary - Wire `@composio/cli-keyring` into `ComposioUserContext` so the API key lives in the macOS Keychain / Linux Secret Service instead of plaintext `~/.composio/user_data.json` - **Read precedence**: env var (`COMPOSIO_USER_API_KEY`) > OS keyring > legacy plaintext - **One-shot migration**: on first run after ...
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2a71236ea0..7cb5926988 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -709,16 +709,16 @@ importers: version: link:../../packages/providers/llamaindex '@llamaindex/openai': specifier: ^0.4.20 - version: 0.4.22(@llamaindex/core@0.6.22...
3
1
1
[{"id": "G0", "claim": "When the keyring write fails during login (keyringOk is false) with useLegacyStorage false (the default), writeJson(keyringOk ? next : { ...next }) passes a structurally identical shallow copy whose apiKey is stripped anyway, so the API key is neither in the keyring nor on disk and is permanentl...
null
ComputationalRadiationPhysics__picongpu__5107
ComputationalRadiationPhysics/picongpu
5,107
defect
778aaeee9fe1140c28d5701bf5e4c01c98d370bc
3c445cd3f812061ac807c3c7d265b6b403d4d976
CI: add PIConGPU header check
- check if all PIConGPU header files include their dependencies directly or transitively - fix include issues - add CI chain to validate PIConGPU headers **Note:** Currently the test is only testing a few folders within PICoNGPU where it was easy to fix the include cycles. More folders should be added in the futu...
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 78b1015d6ec..88a46a90f64 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -148,6 +148,20 @@ picongpu-unittest-compile-reduced-matrix: job: picongpu-unittest-generate-reduced-matrix strategy: depend +picongpu-header-generate-reduced-matrix: + variabl...
2
1
0
[{"id": "G0", "claim": "The variable name ADDITIONAL_GENRATOR_FLAGS (a typo for ADDITIONAL_GENERATOR_FLAGS, used throughout, not just on this line) could be renamed to correct the spelling.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The CMak...
null
ComputationalRadiationPhysics__picongpu__5589
ComputationalRadiationPhysics/picongpu
5,589
defect
9e1adddb07ffc2827fba77c9bcde180b63e09b51
1afbe475bb19f09f7971082f9a14a730b695e05f
fix various type conversion warnings in PMacc
Came across a few warnings on narrowing conversions. Fixes are below. Most changes are non-issues outside the fact that they throw warnings. The bessel functions on CPU will however now use the float overloads for calculation instead of calculating in double (to which they were previously automatically upcasted) and t...
diff --git a/include/picongpu/plugins/openPMD/openPMDWriter.x.cpp b/include/picongpu/plugins/openPMD/openPMDWriter.x.cpp index 3293abc8abb..7a69083d93e 100644 --- a/include/picongpu/plugins/openPMD/openPMDWriter.x.cpp +++ b/include/picongpu/plugins/openPMD/openPMDWriter.x.cpp @@ -1459,8 +1459,8 @@ make sure that enviro...
5
3
0
[{"id": "G0", "claim": "Use static_cast instead of the C-style cast when converting progressInterval to double in the avg-time-per-step output in SimulationHelper.cpp.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The class name TimeIntervall i...
null
ConSol-Monitoring__snclient__228
ConSol-Monitoring/snclient
228
defect
a956807d5a9c8ce2b35dbc51896bb95af31cd985
dc645c485406a6a8b2690b20c509e1013b5a144c
Check logfile
- Last position in file is kept in memory to only read new files - Lines /entries can be labeled - Wildcards in filenames are supported - OK Pattern recognition that resets previous error or warn lines
diff --git a/Makefile b/Makefile index 9bbd41b9..47372ad7 100644 --- a/Makefile +++ b/Makefile @@ -699,6 +699,7 @@ DOC_COMMANDS=\ check_pagefile \ check_ping \ check_pdh \ + check_logfile \ check_process \ check_snclient_version \ check_tasksched \ diff --git a/docs/checks/commands/check_logfile.md b/docs/c...
10
10
5
[{"id": "G0", "claim": "The check is registered as Windows-only (`implemented: Windows`) and the reviewer questions whether it really runs on Windows only.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "LabelPattern should be a []string so that mult...
null
ConSol-Monitoring__snclient__231
ConSol-Monitoring/snclient
231
defect
a011e22476b4cf7e6440f61c46fb0f3b24cf83a3
4ba18a8a58747b147f3d91e23223b745180b15fb
Rest admin CSR
* Added Endpoint to Admin REST API to request a CSR * Optional creation of New Private Key with user defined keyLength
diff --git a/pkg/snclient/listen_web_admin.go b/pkg/snclient/listen_web_admin.go index 0c03a323..100dadda 100644 --- a/pkg/snclient/listen_web_admin.go +++ b/pkg/snclient/listen_web_admin.go @@ -1,8 +1,13 @@ package snclient import ( + "crypto/rand" + "crypto/rsa" + "crypto/x509" + "crypto/x509/pkix" "encoding/ba...
6
6
3
[{"id": "G0", "claim": "Move the block that saves the newly generated private key above the code that sends the result.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Replace the sendError call in the pem.Encode error branch with LogError.", "catego...
null
ConSol-Monitoring__snclient__328
ConSol-Monitoring/snclient
328
defect
58f223f560a021ce6ce9858ffcf81eda974d77bf
af0f9bb6a72d714137b0c4eb614fa3f7fa7b9d01
Check files size metrics tests
Added tests for the check_files perf data behaviors - test for ensures the total_size calculation is correct - test that ensures 'size' metric is used in conditions per-file - test that ensures pattern matching, whether it includes directories that have matched files under them - test that ensures 'check_path' at...
diff --git a/pkg/snclient/check_files.go b/pkg/snclient/check_files.go index 57cdda01..80aab36a 100644 --- a/pkg/snclient/check_files.go +++ b/pkg/snclient/check_files.go @@ -191,6 +191,8 @@ func (l *CheckFiles) addFile(check *CheckData, path, checkPath string, dirEntry // silently skip failed subdirectory. // ...
1
1
0
[{"id": "G0", "claim": "The windows check-files test looks identical to the linux test and could be combined to avoid lots of duplicate code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ConcealNetwork__conceal-core__269
ConcealNetwork/conceal-core
269
defect
2295e657c66dc849e5412a7cd6211233fdbd05bb
99e0c06ce5eb0f45e5a8f4569249d63fb6f44914
Daemon SonarCloud
## Additions * CRYPTONOTE_NAME has been changed to BLOCKCHAIN_DIR as the main reason this is used is to name the blockchain folder when the daemon is launched * CCX_RELEASE_VERSION + CCX_WALLET_RELEASE_VERSION additions to form a string saying `"Conceal (or wallet) v" + version + (ID)` I.E `"Conceal v6.6.1 (Ataegina)...
diff --git a/src/Common/Util.cpp b/src/Common/Util.cpp index 3ca1410b4..0950129e0 100644 --- a/src/Common/Util.cpp +++ b/src/Common/Util.cpp @@ -289,14 +289,14 @@ std::string get_nix_version_display_string() std::string getDefaultDataDirectory() { //namespace fs = boost::filesystem; - // Windows < Vista: ...
5
3
1
[{"id": "G0", "claim": "The default config-file name should stay `conceal.conf` with a lower-case c instead of the `Conceal.conf` the PR switched to, so existing lower-case config files keep being picked up.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla...
null
Conflux-Chain__conflux-rust__1047
Conflux-Chain/conflux-rust
1,047
defect
05fe6bf69aba386ad55e54e0382c47c601446b63
7a9b899ae1b0d4f9d5b468503f84c08314fd7fa0
Add code hash to determine the contract addr
This closes #1033 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/1047) <!-- Reviewable:end -->
diff --git a/Cargo.lock b/Cargo.lock index d344467398..4300d9115c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -125,6 +125,15 @@ version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544" +[[package]] +name = "array...
2
1
0
[{"id": "G0", "claim": "The PR replaces the rlp-free address derivation with an rlp-based one, and the old code that does not rely on rlp (encoding sender and code hash into a plain buffer) was better and should be kept.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
Conflux-Chain__conflux-rust__1081
Conflux-Chain/conflux-rust
1,081
defect
f797bfa5936a003e4fbe58218be0407cdab755c0
5c650ddc2af338721f636c3f4932f3e0754f2f3d
Compound interest
This closes #1070 . In this implementation, the accumulated interest rate multiplies with a scale factor equals to `BLOCKS_PER_YEAR * 2 ** 80 ≈ 2 ** 106`. After simulation using python, the absolute error of interest calculation is about `1e-20` if deposit and withdraw within one year. <!-- Reviewable:start --...
diff --git a/core/src/parameters.rs b/core/src/parameters.rs index 232a0ff91b..a51f55f544 100644 --- a/core/src/parameters.rs +++ b/core/src/parameters.rs @@ -183,12 +183,15 @@ pub mod staking { /// This is the renting fee for one key/value pair in storage. /// 1 CFX for 1 KB, the storage for one key/...
2
2
0
[{"id": "G0", "claim": "The doc comment should say \"multiply\" instead of \"multiple\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The secondary reward should simply be computed as total_storage_tokens * (interest_rate_per_block / INTEREST_RA...
null
Conflux-Chain__conflux-rust__1146
Conflux-Chain/conflux-rust
1,146
defect
310dc73d074e012c7167fe3b9a56484ccbdb9c5c
dbeb231ffb5f60c312192dabf54f441ddf20b0a5
change unit of storage limit to Byte
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/1146) <!-- Reviewable:end -->
diff --git a/client/src/rpc/impls/cfx.rs b/client/src/rpc/impls/cfx.rs index 18bce6159d..4a1b70f2c6 100644 --- a/client/src/rpc/impls/cfx.rs +++ b/client/src/rpc/impls/cfx.rs @@ -24,9 +24,9 @@ use cfx_types::{Public, H160, H256, U256}; use cfxcore::{ block_data_manager::BlockExecutionResultWithEpoch, block_p...
1
1
0
[{"id": "G0", "claim": "The word \"storage_occupied\" is often confusing; maybe \"storage_collateralized\" is a better name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Conflux-Chain__conflux-rust__1182
Conflux-Chain/conflux-rust
1,182
defect
13abef66fd5a9a738ff14cc8dd911c666ad73498
1a83fd1d7e18f4ade4d02906599f6ddb87b9e334
Fix bug in compressed path merkle computation
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/1182) <!-- Reviewable:end -->
diff --git a/core/src/storage/impls/delta_mpt/cow_node_ref.rs b/core/src/storage/impls/delta_mpt/cow_node_ref.rs index d8d71138bf..5090a1c1ae 100644 --- a/core/src/storage/impls/delta_mpt/cow_node_ref.rs +++ b/core/src/storage/impls/delta_mpt/cow_node_ref.rs @@ -253,10 +253,9 @@ impl CowNodeRef { { if sel...
2
1
0
[{"id": "G0", "claim": "The node_path_steps calculation is still wrong: it cannot distinguish a node on the 1st level from the root node.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "pre_existing"}, {"id": "G1", "claim": "The println! debug statement added in walk.rs should be change...
null
Conflux-Chain__conflux-rust__1264
Conflux-Chain/conflux-rust
1,264
defect
8410041f8adcfc68d137ee0fca6c77c546b70840
e21d0e76919ecf4d52226589ea4b1f93dbc62a54
Fix definitions and logics in transaction early execution error checking.
Also fixed bug in sub_balance, where non existence account is marked dirty for default account creation when minus 0 from it. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d59e9f26e..5978849cc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ - Fill in correct block gas limit value for mining. +- Fix definitions and logics in transaction early execution error checking. + ## Improvements - Improve the transaction addre...
2
1
1
[{"id": "G0", "claim": "The new `tx.gas < base_gas_required` check in executive.rs should not return a NotEnoughBaseGas repack error — the condition is already rejected when the block is validated and the base gas has nothing to do with the state or block — and should instead be a panic.", "category": "design", "verdic...
null
Conflux-Chain__conflux-rust__1353
Conflux-Chain/conflux-rust
1,353
defect
e4b4c71d0d6d5de7f3d48646d62401dc5f27c0cc
9ba0c62e80880996cb597dab5c102d651940f70c
Do not add account_start_nonce for contract.
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/1353) <!-- Reviewable:end -->
diff --git a/core/src/state/mod.rs b/core/src/state/mod.rs index 0de8ead90e..d1142687cd 100644 --- a/core/src/state/mod.rs +++ b/core/src/state/mod.rs @@ -379,7 +379,7 @@ impl State { OverlayAccount::new_contract_with_admin( contract, balance, - ...
1
1
0
[{"id": "G0", "claim": "The rationale for the PR's change of not adding account_start_nonce for contract accounts is unexplained, and Parity's code does add account_start_nonce for contracts, so the change should be justified (or reconsidered).", "category": "design", "verdict": "supported", "priority": "P2", "scope": ...
null
Conflux-Chain__conflux-rust__1572
Conflux-Chain/conflux-rust
1,572
defect
aaa3abd691bcde58e1104d19592d3e69d7e67174
75fd3718ab3053517ca99bd2e393ae0bae9fb8d5
Make create and create2 gas the same
This closes #1567 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/1572) <!-- Reviewable:end -->
diff --git a/core/src/evm/interpreter/gasometer.rs b/core/src/evm/interpreter/gasometer.rs index 5f3f523e33..3be9e9dc38 100644 --- a/core/src/evm/interpreter/gasometer.rs +++ b/core/src/evm/interpreter/gasometer.rs @@ -247,7 +247,7 @@ impl<Gas: evm::CostType> Gasometer<Gas> { Request::GasMemProvide(g...
1
1
1
[{"id": "G0", "claim": "The change charges CREATE the flat create gas (dropping CREATE2's SHA3 word gas) instead of giving CREATE the CREATE2-style gas as issue 1567 describes, so an attacker may cause miners to compute SHA3 on very long initialization code while paying only the fixed G_create=32000.", "category": "sec...
null
Conflux-Chain__conflux-rust__1586
Conflux-Chain/conflux-rust
1,586
defect
eeb9261803e612d8ac796ef57d6bf126219f8540
87ba74494996ebb0bf5fbee41ee2b5925c7a3e0f
Some non-functional code improvements.
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/1586) <!-- Reviewable:end -->
diff --git a/core/src/storage/impls/merkle_patricia_trie/mpt_merger.rs b/core/src/storage/impls/merkle_patricia_trie/mpt_merger.rs index c824d121ba..9dcc9fb50a 100644 --- a/core/src/storage/impls/merkle_patricia_trie/mpt_merger.rs +++ b/core/src/storage/impls/merkle_patricia_trie/mpt_merger.rs @@ -41,7 +41,7 @@ impl<'a...
1
1
1
[{"id": "G0", "claim": "CI (Jenkins) failed because the pull request's code does not compile.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
Conflux-Chain__conflux-rust__1598
Conflux-Chain/conflux-rust
1,598
defect
f719e830c6a1e1544fb81d53bd227e904e6b372c
dac019640445c9f47cf2cb05e54fb5da5f2cf672
Change storage value serialization to reduce space.
- Changed a preset value COMMISSION_PRIVILEGE_STORAGE_VALUE. - Fixed db error handling. - Fixed bug in checkpoint_storage_at(). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d2e8924c05..d72128d3c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,12 @@ was caused by a wrong assumption of the uniqueness of the trie proof key. - Fix crash when a contract suicides during creation. +## Incompatible Changes + +- Change StorageValue ser...
1
1
0
[{"id": "G0", "claim": "The Jenkins CI appears to fail because the pull request's code does not satisfy the cargo format (rustfmt) check.", "category": "style", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Conflux-Chain__conflux-rust__1674
Conflux-Chain/conflux-rust
1,674
defect
13d48a75887dbf629311ab1968d5002e163c085e
663a804113c391838c0cdf0839f8533f7b338cd3
Fix bug when a new snapshot_db is open before its snapshot_info is ready in wait_for_snapshot.
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/1674) <!-- Reviewable:end -->
diff --git a/core/examples/snapshot_merge_test.rs b/core/examples/snapshot_merge_test.rs index fa16ac68fa..ccdbdaa59c 100644 --- a/core/examples/snapshot_merge_test.rs +++ b/core/examples/snapshot_merge_test.rs @@ -99,7 +99,10 @@ fn main() -> Result<(), Error> { delta_mpt_iterator, info, )?; - ...
3
2
1
[{"id": "G0", "claim": "wait_for_snapshot() now locks snapshot_info_map_by_epoch before current_snapshots, the reverse of the order in maintain_snapshots_pivot_chain_confirmed(), which might be a deadlock; since current_snapshots is not used there after snapshot_info_map_by_epoch is locked, it can probably just be drop...
null
Conflux-Chain__conflux-rust__1787
Conflux-Chain/conflux-rust
1,787
defect
5f378fc5f0736a428fb106a7375a4afb83560b63
d0885999ebaa7f46d0abe600afb1d91a61fafd37
Refactor ABI parse implementation
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/1787) <!-- Reviewable:end -->
diff --git a/Cargo.lock b/Cargo.lock index 70005ea818..12e431aeb0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -576,6 +576,7 @@ dependencies = [ "fs_extra", "futures 0.3.5", "hashbrown 0.7.2", + "hex 0.3.2", "hibitset", "io", "itertools 0.9.0", @@ -1648,6 +1649,12 @@ version = "0.2.0" source = "registry+htt...
2
2
1
[{"id": "G0", "claim": "Passing the whole `data` buffer to `read_abi_list` at this call site looks confusing and possibly wrong — the reviewer feels the data should be positioned at the same offset as `pointer`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
Conflux-Chain__conflux-rust__1805
Conflux-Chain/conflux-rust
1,805
defect
4213ec7ed61a9d5a7dd4c74bbbfe86a15a0aaeab
cdb34edcdc998bbaec54400c4afd4b261f52c72e
Cratefy solidity abi
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/1805) <!-- Reviewable:end -->
diff --git a/Cargo.lock b/Cargo.lock index 3614c50843..e95be2fb5d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -593,7 +593,6 @@ dependencies = [ "fs_extra", "futures 0.3.5", "hashbrown 0.7.2", - "hex 0.3.2", "hibitset", "io", "itertools 0.9.0", @@ -637,6 +636,7 @@ dependencies = [ "serde_json", "siphashe...
4
2
0
[{"id": "G0", "claim": "pull_slice should take an error_desc: &'static str argument and pass it to abi_require, so call sites produce descriptive errors instead of the generic 'Invalid call data length'.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "m...
null
Conflux-Chain__conflux-rust__1863
Conflux-Chain/conflux-rust
1,863
defect
7038f7843a155dc7d16b498de9b75b6fac9da060
205b53810061d21e281417d0477fa0ceefc7aff5
Update SnapshotInfo clean-up code in load_persist_state because we keep some extra SnapshotInfo to provide sync
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/1863) <!-- Reviewable:end -->
diff --git a/core/src/sync/state/state_sync_chunk/restore.rs b/core/src/sync/state/state_sync_chunk/restore.rs index 3428792e8d..65e8c9f3b7 100644 --- a/core/src/sync/state/state_sync_chunk/restore.rs +++ b/core/src/sync/state/state_sync_chunk/restore.rs @@ -69,7 +69,6 @@ impl Restorer { // `self.verifier` is ...
2
2
0
[{"id": "G0", "claim": "The `if snapshot_info_map.has_entries()` guard at storage_manager.rs line 1186 is always `true` because `NULL_EPOCH` was just inserted, so it should be removed.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `error!` at s...
null
Conflux-Chain__conflux-rust__1986
Conflux-Chain/conflux-rust
1,986
defect
8fa228045e09a861eb5aeddce7d3ce3f2fad53a0
e8ca375d21c4a663494a6d0623e7bbc5bbe23bfd
Add block trace for call and create
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/1986) <!-- Reviewable:end -->
diff --git a/client/benches/benchmark.rs b/client/benches/benchmark.rs index 077f515b4f..44993b66b0 100644 --- a/client/benches/benchmark.rs +++ b/client/benches/benchmark.rs @@ -8,7 +8,7 @@ use cfx_statedb::StateDb; use cfx_storage::{state_manager::StateIndex, StorageManagerTrait}; use cfx_types::{H256, U256}; use ...
1
1
0
[{"id": "G0", "claim": "The new Tracer doc comments say they would panic if prepare/done_trace are not balanced, yet no done_trace exists anywhere in this PR, so the documentation references something absent.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Conflux-Chain__conflux-rust__2011
Conflux-Chain/conflux-rust
2,011
defect
7d847e12ffaed8c6960959132963a06e30d0cbc8
58c15fe355d7311c9c685bd78f3cefd7bc48171c
Add recording storage
**Overview** `RecordingStorage` is a wrapper around other storage implementations that tracks all read accesses. It can then be turned into a state proof that is able to prove all key-value accesses. Tracking issue: #2010. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_butto...
diff --git a/Cargo.lock b/Cargo.lock index fbb030f93a..92d6f0dc9f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -509,6 +509,7 @@ dependencies = [ "cfx-bytes", "cfx-internal-common", "cfx-types", + "delegate 0.5.0", "derivative", "error-chain", "fallible-iterator", @@ -776,7 +777,7 @@ dependencies = [ "crite...
1
1
0
[{"id": "G0", "claim": "In RecordingStorage::try_into_proof, the default-then-swap dance can be simplified to `self.proof_merger.into_inner().finish()`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Conflux-Chain__conflux-rust__2018
Conflux-Chain/conflux-rust
2,018
defect
5f200b4e52c429a04862b817d2067f21dc86ae36
417dc6f855a1d71f0c94cee69f58dc6c953837cc
Refactor block synchronization during catch-up phases.
This PR only refactors the block synchronization part to avoid clearing sync and consensus graph. State-related changes are left for future PRs. TODO: Code and test cleanup. Add comments and documentation. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34"...
diff --git a/blockgen/src/lib.rs b/blockgen/src/lib.rs index ebc23ee7a9..8f623a76c4 100644 --- a/blockgen/src/lib.rs +++ b/blockgen/src/lib.rs @@ -616,7 +616,7 @@ impl BlockGenerator { ); self.on_mined_block(block); - debug!("generate_block finished one_mined_block()"); + debug!("gener...
10
9
1
[{"id": "G0", "claim": "The new `sync_starting_epoch` field set in `consensus_config()` is for block sync rather than header sync, and the reviewer asks to make that clear.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "EPOCH_SET_PERSISTENCE_DEL...
null
Conflux-Chain__conflux-rust__2027
Conflux-Chain/conflux-rust
2,027
defect
863d7006dcdf213c457754604f040e382d6e1339
f9fdc5f70330f59ddae05357bc159d423d1195c1
Do not panic on db errors during transaction execution
**Overview** Currently, some db errors are ignored by `State`. Others are treated as fatal and result in panic. An example of this is when we check the interest rate during state init (`State::new`). If we allow execution over states provided by peers, these hard assumptions might not hold anymore. The goal of th...
diff --git a/Cargo.lock b/Cargo.lock index fbb030f93a..8107a4433a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -573,7 +573,7 @@ dependencies = [ [[package]] name = "cfxcore" -version = "1.0.0" +version = "1.1.1" dependencies = [ "bit-set", "bn", @@ -757,7 +757,7 @@ dependencies = [ [[package]] name = "clien...
5
5
3
[{"id": "G0", "claim": "In TransactionPool::best_executed_state, propagate the state-initialization error with the ? operator instead of the added .expect(\"Failed to initialize state\") panic.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Keep the...
null
Conflux-Chain__conflux-rust__2033
Conflux-Chain/conflux-rust
2,033
defect
d4ead3b2d4999b531634a097201433799f16387c
04c106806485f1a16d7d00d27f3bfde1b3c77e1a
Add the test-only decorator to core.state.mod.clear_test_only
Mingcheng's first PR to Conflux! <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/2033) <!-- Reviewable:end -->
diff --git a/core/Cargo.toml b/core/Cargo.toml index b765aaed1d..10f23a3641 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -94,3 +94,7 @@ default-features = false [features] default = ["cfx-storage"] +# Unfortunately cfg test attributes doesn't work across crates, +# we have to define a feature for test code...
1
1
0
[{"id": "G0", "claim": "The state-clearing method in core/src/state/mod.rs should be renamed back to `clear` instead of `clear_test_only`, now that the pull request gates it with the test-only cfg attribute.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Conflux-Chain__conflux-rust__2056
Conflux-Chain/conflux-rust
2,056
defect
87fad57b8399d700a92ba7bb9ee8fb0f33cd7f62
b403b28bc95e5059d7710697d00fc0b6868730ec
Fix several bugs in state proof
- Fix a bug in test util function where a committed state is returned. A committed state isn't supposed to be operated on any more. - Fix bug in proof test, which made wrong assumption that an incorrect intermediate padding invalidates the proof. - Remove optimistic short-circuit logic in state_proof to be more rigor...
diff --git a/core/storage/src/impls/state_proof.rs b/core/storage/src/impls/state_proof.rs index 6fb7b640e2..fc41a30fa1 100644 --- a/core/storage/src/impls/state_proof.rs +++ b/core/storage/src/impls/state_proof.rs @@ -72,15 +72,17 @@ impl StateProof { Some(&*tombstone_value) }; + let mut...
2
2
1
[{"id": "G0", "claim": "Thegaram questions why the remaining intermediate- and snapshot-proof checks must run even when the delta proof already proves the key-value valid, saying this does not seem crucial.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "...
null
Conflux-Chain__conflux-rust__2085
Conflux-Chain/conflux-rust
2,085
defect
d22e05420cdec73578de0d12ca7712dcde2a4e4f
ad40ee972c5de81ede8245c8f9ad5b229592c879
Upgrade rust toolchain to 1.50.0
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/2085) <!-- Reviewable:end -->
diff --git a/core/src/consensus/consensus_inner/mod.rs b/core/src/consensus/consensus_inner/mod.rs index 8b71e4569b..31e1b6374e 100644 --- a/core/src/consensus/consensus_inner/mod.rs +++ b/core/src/consensus/consensus_inner/mod.rs @@ -2390,7 +2390,7 @@ impl ConsensusGraphInner { } } - ///////////////...
2
2
1
[{"id": "G0", "claim": "The added comment 'Rustc 1.50.0 falsely believes there is a doc test below.' should simply be removed, or the doc test marked with `/// ```ignore`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Switching `cargo build --rel...
null
Conflux-Chain__conflux-rust__2088
Conflux-Chain/conflux-rust
2,088
defect
252958cc76bd73d39a2d3d501d951a5a6241354a
da71285115351985b33f6a47a82d30166b50861f
Remove block_number from the core State struct to simplify the interface.
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/2088) <!-- Reviewable:end -->
diff --git a/client/benches/benchmark.rs b/client/benches/benchmark.rs index c9ec951098..0cdd10aa8b 100644 --- a/client/benches/benchmark.rs +++ b/client/benches/benchmark.rs @@ -84,7 +84,6 @@ fn txexe_benchmark(c: &mut Criterion) { ), VmFactory::new(1024 * 32), &spec,...
1
1
0
[{"id": "G0", "claim": "The doc comment on the function at core/src/state/mod.rs line 210 should be updated, since the block number is no longer increased there after this PR removes block_number from State.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Conflux-Chain__conflux-rust__2114
Conflux-Chain/conflux-rust
2,114
defect
e83cc6569da16f2db9048ffbc1e41382b5b2792e
6e7c6eaa2b1e4ffa5f74249ef2e86e72fc70e0b8
Create substate trait for code refactor.
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/2114) <!-- Reviewable:end -->
diff --git a/core/src/executive/context.rs b/core/src/executive/context.rs index e824a7d639..9b3c586ef8 100644 --- a/core/src/executive/context.rs +++ b/core/src/executive/context.rs @@ -7,7 +7,7 @@ use super::{executive::*, suicide as suicide_impl, InternalContractMap}; use crate::{ bytes::Bytes, machine::M...
7
7
0
[{"id": "G0", "claim": "Reorder the associated-type bindings in the generic bounds so CallStackInfo (C) is listed before Spec (S).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Bound the generic parameters with a single SubstateMngTrait<...> in...
null
Conflux-Chain__conflux-rust__2182
Conflux-Chain/conflux-rust
2,182
defect
40d4d70014f2ff7a3ee85811725583cf0d3df142
fc5fafa8c887ce10cc8ecb2cbfa30b271d4efd55
CIP-72: Accept Ethereum transaction signature
This PR relies on #2213, the code is not ready to review until #2213 merged. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/2182) <!-- Reviewable:end -->
diff --git a/client/src/rpc/types/call_request.rs b/client/src/rpc/types/call_request.rs index 6518841910..24b491ed7b 100644 --- a/client/src/rpc/types/call_request.rs +++ b/client/src/rpc/types/call_request.rs @@ -125,7 +125,7 @@ impl SendTxRequest { let password = password.map(Password::from); let...
7
6
4
[{"id": "G0", "claim": "Setting the storage requirement to U256::zero() for EthereumLike transactions looks wrong because that value is added to total_storage_limit and used for collect_and_settle_collateral; the reviewer proposes using u64::MAX once the balance check passes.", "category": "correctness", "verdict": "su...
null
Conflux-Chain__conflux-rust__2205
Conflux-Chain/conflux-rust
2,205
defect
b6aa0b3588d4ce34f55f842b846c14ce751fe52b
9193a7bfb2897b3f620410671f71858f67386912
Implement ABI serde for array and solidity events & Aggregate code for InternalContext
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/2205) <!-- Reviewable:end -->
diff --git a/Cargo.lock b/Cargo.lock index 127011c44c..dbb5c8d145 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3971,6 +3971,7 @@ name = "solidity-abi" version = "0.1.0" dependencies = [ "cfx-types", + "keccak-hash", "lazy_static", "rustc-hex", ] diff --git a/core/src/executive/context.rs b/core/src/executive/c...
1
1
0
[{"id": "G0", "claim": "The comment saying the macro supplies a function with at most four parameters should say five, since the change adds a fifth impl_abi_serde! invocation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Conflux-Chain__conflux-rust__2211
Conflux-Chain/conflux-rust
2,211
defect
a00e2669cd19fa84d9552798ff1bd0051d304401
b069943733757df80466fcfb56685203eb204eb2
Implement maintenance for EVM-related CIP activations
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/2211) <!-- Reviewable:end -->
diff --git a/Cargo.lock b/Cargo.lock index 0f2795fd9c..127011c44c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -523,7 +523,7 @@ dependencies = [ "error-chain", "fallible-iterator", "fs_extra", - "futures 0.3.13", + "futures 0.3.15", "hashbrown 0.7.2", "keccak-hash", "kvdb", @@ -607,7 +607,7 @@ dependencies =...
2
2
1
[{"id": "G0", "claim": "In test/dev mode the default transition height for the new EVM-related CIPs should be 0 like cip62 rather than 1 — with a corrected genesis state root — so the internal contracts can be used during genesis execution in tests.", "category": "design", "verdict": "supported", "priority": "P1", "sco...
null
Conflux-Chain__conflux-rust__2212
Conflux-Chain/conflux-rust
2,212
defect
be6f523f5e179bd3b4ab09a7cc711867f5636687
969731962d92c1d24be12b243dc8765328cc2bf8
More about PR #2211
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/2212) <!-- Reviewable:end -->
diff --git a/client/src/tests/load_chain_tests.rs b/client/src/tests/load_chain_tests.rs index 9bbe7badb1..008d78ae69 100644 --- a/client/src/tests/load_chain_tests.rs +++ b/client/src/tests/load_chain_tests.rs @@ -65,7 +65,7 @@ fn test_load_chain() { conf.raw_conf.jsonrpc_http_port = Some(18000); conf.raw_co...
1
1
0
[{"id": "G0", "claim": "Rename the `group_impl_activate_at` macro to `is_active`-style naming (it became `group_impl_is_active`) to match the `IsActive` trait it implements.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
Conflux-Chain__conflux-rust__2518
Conflux-Chain/conflux-rust
2,518
defect
486c64149b2e720bd20a4ad6634ff5004f5cf05c
9f8587d2e5af1f06f8a009bed36159b6441bc021
Change some log levels and add new logs for clarity.
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/2518) <!-- Reviewable:end -->
diff --git a/Cargo.lock b/Cargo.lock index 074557d831..450ede4fa9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -245,7 +245,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf13118df3e3dce4b5ac930641343b91b656e4e72c8f8325838b01a4b1c9d45" dependencies = [ "http 0.2.6", - "log 0.4.14",...
1
1
1
[{"id": "G0", "claim": "The added `safety_rules.initialize(&proof).ok()` seems only to convert `Result<T,E>` to `Option<T>`, discarding the error so the test no longer asserts the outcome of the call.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Conflux-Chain__conflux-rust__2524
Conflux-Chain/conflux-rust
2,524
defect
ba629167de4ce8a7ee67e48e76ac61962d712b2a
5d7578ec8502167f62561f91d0a164430e208a15
Impl CIP-97
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/2524) <!-- Reviewable:end -->
diff --git a/client/src/configuration.rs b/client/src/configuration.rs index 1ab0086c07..e34674c40f 100644 --- a/client/src/configuration.rs +++ b/client/src/configuration.rs @@ -1152,6 +1152,10 @@ impl Configuration { .raw_conf .dao_vote_transition_number .unwrap_or(non_genesis_d...
1
1
1
[{"id": "G0", "claim": "The withdraw upfront payment gas computed as 3 * sload_gas + 2 * sha3_gas under cip97 does not look consistent with the CIP-97 spec.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Conflux-Chain__conflux-rust__2941
Conflux-Chain/conflux-rust
2,941
defect
6d5cca1851f1e855e35ed9c39f1d86ccfbf7410e
c8f429c6681467a8c06d3475c413c90690d5d13e
make cfx_addr support no_std environment, and optimize code
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/Conflux-Chain/conflux-rust/2941) <!-- Reviewable:end -->
diff --git a/Cargo.lock b/Cargo.lock index fae2e343ac..583d3cd693 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1113,7 +1113,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "cfx-addr" -version = "0.1.0" +version = "0.2.0" dependencies = [ "cfx-types", "lazy_...
2
2
1
[{"id": "G0", "claim": "The crate fails to compile under `cargo check -p cfx-addr --no-default-features --tests`; fix the compile error and add that check to check-crates.sh plus a no_std test for cfx-addr to the test phase in test.sh.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "int...
null
Conflux-Chain__conflux-rust__2957
Conflux-Chain/conflux-rust
2,957
defect
6b273f2e71c6262e60c4ccea288fb6f3b4fc7b44
d7d272ca7b038bce3c255707fe40600a25fbe3f3
move utils crate cfx-math, serde_utils, channel-utils to util folder
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/Conflux-Chain/conflux-rust/2957) <!-- Reviewable:end -->
diff --git a/Cargo.lock b/Cargo.lock index 087941fcb4..72f0079213 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1518,14 +1518,6 @@ dependencies = [ name = "cfx-util-macros" version = "2.4.0" -[[package]] -name = "cfx-utils" -version = "0.6.0" -dependencies = [ - "log", - "parking_lot 0.11.2", -] - [[package]] name...
1
1
0
[{"id": "G0", "claim": "The channel-utils crate is no longer needed after #2883 and should be removed from the workspace.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Conflux-Chain__conflux-rust__3176
Conflux-Chain/conflux-rust
3,176
defect
66245e98e64e70174ad033d1633d072db2696e2a
2bc1932b6faf18f9c6214cfa5c5db1b921df9985
Update EVM spec tester
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/Conflux-Chain/conflux-rust/3176) <!-- Reviewable:end -->
diff --git a/bins/evm-spec-tester/src/main.rs b/bins/evm-spec-tester/src/main.rs index 5cd9582b91..dc0bee0ed4 100644 --- a/bins/evm-spec-tester/src/main.rs +++ b/bins/evm-spec-tester/src/main.rs @@ -20,6 +20,7 @@ fn init_logger(verbosity: u8) { }; env_logger::Builder::new() + .target(env_logger::Targ...
1
1
1
[{"id": "G0", "claim": "The skip guard at mod.rs line 65 should use an unequal compare (spec_name != SpecName::Prague) instead of the equality compare, which skips the wrong set of specs.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Conflux-Chain__conflux-rust__3206
Conflux-Chain/conflux-rust
3,206
defect
9562a53f5241a5256513d3897863259d0701ce44
b01a6bc196918452ca15aedcd589f0348d355ce5
feat: add blocktest subcommand to evm-spec-tester
The default command change to statetest subcommand. The blocktest command real logic will be in next PR <!-- Reviewable:start --> - - - This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/Conflux-Chain/conflux-rust/3206) <...
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e5050b4305..47c1c5e497 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -183,4 +183,4 @@ jobs: run: cargo build --release --bin evm-spec-tester - name: Run EVM spec tests - run: cargo run --rel...
1
1
1
[{"id": "G0", "claim": "The pull request pins tests/extra-test-toolkits to an incorrect submodule commit that is two years out of date.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Conflux-Chain__conflux-rust__850
Conflux-Chain/conflux-rust
850
defect
001382517fc8d63a6bf904c98a5e48f90621d690
87fc1bb206a596e7d43b68fd0498546544128274
Fix snapshot get key in kvdb.
The code is not cleaned up yet. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/850) <!-- Reviewable:end -->
diff --git a/core/examples/snapshot_merge_test.rs b/core/examples/snapshot_merge_test.rs index cefd6e15cb..8e85e1931d 100644 --- a/core/examples/snapshot_merge_test.rs +++ b/core/examples/snapshot_merge_test.rs @@ -25,8 +25,15 @@ use log4rs::{ use primitives::{ Account, MerkleHash, StorageKey, MERKLE_NULL_NODE, N...
10
10
3
[{"id": "G0", "claim": "The height_to_delta_height mapping behind the snapshot-shift condition at state_manager.rs:245 does not handle the height==0 case; the reviewer asks to fix the mapping, ultimately as \"if height == 0 { 0 } else { ... }\".", "category": "correctness", "verdict": "supported", "priority": "P1", "sc...
null
Conflux-Chain__conflux-rust__870
Conflux-Chain/conflux-rust
870
defect
5f0d48fa6fce400d20f82aafd973f143139cab56
5a6b86cb3b336ee274c28da4388ee0271666fb68
Some code improvements.
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/870) <!-- Reviewable:end -->
diff --git a/client/src/configuration.rs b/client/src/configuration.rs index 5e5377aafc..99d9967c66 100644 --- a/client/src/configuration.rs +++ b/client/src/configuration.rs @@ -38,101 +38,9 @@ use txgen::TransactionGeneratorConfig; // override the configuration file if the parameter is given in both. build_config! ...
1
1
1
[{"id": "G0", "claim": "The new snapshot_epoch_count override in snapshot_config should check is_test_mode() instead of is_dev_mode(), because `dev` mode is for users to run a single node that automatically generates blocks.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Conflux-Chain__conflux-rust__884
Conflux-Chain/conflux-rust
884
defect
6956555554a2d1635fea05533ece520fe5e93d35
4aeaf1bf1037af2248aa530e7323dc4093a50bc5
Fix snapshot sync, handle all corner-cases for snapshot register, snapshot making, StateTrees creation and State creation, and remove all temporary hacks.
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/884) <!-- Reviewable:end -->
diff --git a/core/examples/snapshot_merge_test.rs b/core/examples/snapshot_merge_test.rs index de2fb7d3e1..a89a705a10 100644 --- a/core/examples/snapshot_merge_test.rs +++ b/core/examples/snapshot_merge_test.rs @@ -12,7 +12,8 @@ use cfxcore::{ storage_db::{ KeyValueDbTraitRead, SnapshotDbManagerTr...
1
1
1
[{"id": "G0", "claim": "Calling new_or_get_delta_mpt, which requires snapshot_associated_mpts again, while that map's write lock is already held may cause a reentrant deadlock; the reviewer suggests just calling new_delta_mpt here instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ...
null
Conflux-Chain__conflux-rust__978
Conflux-Chain/conflux-rust
978
defect
2713819ddf3e58f456da4f6a5f5b0cdee1f935dd
4919892c56465821b9e24ffcb5d4129679403a4e
Only update snapshot ref count when open succeeds.
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/conflux-chain/conflux-rust/978) <!-- Reviewable:end -->
diff --git a/Cargo.lock b/Cargo.lock index 3f41dd934c..721a558e88 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -125,15 +125,6 @@ version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544" -[[package]] -name = "array...
1
1
0
[{"id": "G0", "claim": "In try_clone, bind maybe_db_connections = self.try_clone_connections()? first and then return Ok(Self { .. }), because the execution order of the struct field expressions may be reversed (so the ref count could be updated even when the connection clone fails).", "category": "correctness", "verdi...
null
ConorWilliams__libfork__46
ConorWilliams/libfork
46
defect
995c92f950763b551e11048110934c57dad980ea
f6942c71dd35f2072a5b3c4ee0f252bb2ec34343
[v4] More CI
- New CI builds (released, debug, no-exceptions) - New linear history CI - Catch2 for tests - Sketch libfork's module structure
diff --git a/.clangd b/.clangd index d903aeb79..fd3d2a8f4 100644 --- a/.clangd +++ b/.clangd @@ -1,3 +1,2 @@ CompileFlags: - CompilationDatabase: build/llvm-brew - + CompilationDatabase: build/dev diff --git a/.github/workflows/linear.yml b/.github/workflows/linear.yml new file mode 100644 index 000000000..b351a8bd2...
6
3
2
[{"id": "G0", "claim": "The `returnable` concept does not implement the documented requirement that reference types are returnable, because neither `std::is_void_v<T>` nor `std::movable<T>` holds for references; it should also accept `std::is_reference_v<T>`.", "category": "correctness", "verdict": "supported", "priori...
null
ConorWilliams__libfork__52
ConorWilliams/libfork
52
defect
214e6a9bd309a35724dcf332d64752f1a590af8d
dd51710aaa1d99edb546d1a980d5b2f2f03fbe42
[v4] Agents
Add context (`AGENTS.md`) for better copilot/gemini
diff --git a/.clang-format b/.clang-format index 42912faec..bcd499657 100644 --- a/.clang-format +++ b/.clang-format @@ -2,19 +2,27 @@ Language: Cpp ColumnLimit: 110 IndentPPDirectives: BeforeHash -AlwaysBreakTemplateDeclarations : true -PackConstructorInitializers : CurrentLine +AlwaysBreakTemplateDeclarations: Yes...
2
2
1
[{"id": "G0", "claim": "The Macros section in .clang-format lists BAT_HOF macro patterns but the macro actually used in the codebase is LF_HOF, so clang-format will not properly format uses of LF_HOF; the macro definitions should be updated to match the actual macro name.", "category": "correctness", "verdict": "suppor...
null
ConorWilliams__libfork__53
ConorWilliams/libfork
53
defect
1e44af0bf684e7a94c401f0d62f9bf834485c652
ac5a5dd2c44076e698e74c2452bd084656c847bf
[V4] Sketch of promise structure
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added async task infrastructure with configurable stack policies and frame-based coroutine management. * Introduced utility types for expressing immovable and move-only semantics. * Added e...
diff --git a/.clang-format b/.clang-format index f64df3de3..0a5bfb887 100644 --- a/.clang-format +++ b/.clang-format @@ -3,17 +3,19 @@ Language: Cpp ColumnLimit: 110 IndentPPDirectives: BeforeHash AlwaysBreakTemplateDeclarations: Yes +BreakAfterAttributes: Always PackConstructorInitializers: CurrentLine AccessModi...
18
7
3
[{"id": "G0", "claim": "The TLS buffer in lf_parts.cpp is only byte-aligned by default, so tls_stack::operator new can return misaligned memory on the first allocation (sp = buffer) while coroutine frames require alignment to lf::k_new_align, which is undefined behavior; add explicit alignment.", "category": "correctne...
null
ConorWilliams__libfork__55
ConorWilliams/libfork
55
defect
6b7abcf7c9d08f541ce727fcf62554ec904e3561
2a0ea0dd9a77f8e89570b7b527ec088ed911f74b
[V4] Tuple and captured transform
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a built-in tuple type with full compatibility for standard library utilities, structured bindings, and standard tuple operations * Introduced new async invocation utilities and type-saf...
diff --git a/AGENTS.md b/AGENTS.md index 3b07efae5..2cd4e1fb6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -6,7 +6,7 @@ strict fork-join parallelism using C++20 coroutines. - **Type**: C++ library with module/`import std` support -- **Languages**: C++23 +- **Languages**: C++26 ## Critical Build Requirements @@ -1...
15
5
1
[{"id": "G0", "claim": "The std::tuple_element specialization uses pack indexing Ts... [I] with no fallback, which will cause compilation failures on compilers without C++26 pack indexing support; use the INDEX_HACK pattern or document that C++26 is truly required.", "category": "correctness", "verdict": "uncertain", "...
null
ConorWilliams__libfork__56
ConorWilliams/libfork
56
defect
718ac930e089acc7174355b96dd417b8cb005ab2
4a32f5322ea77ea8086c59816608e8f139b41b78
[V4] Fork infrastructure
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added context management framework for work scheduling with polymorphic and thread-local variants. * Introduced fork and call operation helpers for asynchronous execution. * Added TLS-based...
diff --git a/CMakeLists.txt b/CMakeLists.txt index cddd1429c..52d904e91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,6 +62,8 @@ target_sources(libfork_libfork src/core/frame.cxx src/core/constants.cxx src/core/tuple.cxx + src/core/ops.cxx + src/core/context.cxx PRIVATE ...
11
8
2
[{"id": "G0", "claim": "vector_ctx::pop() calls back() and pop_back() on a possibly empty vector, which is undefined behavior; add an assertion or return a sentinel.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The end-of-benchmark leak check only...
null
ConorWilliams__libfork__59
ConorWilliams/libfork
59
defect
6e127a820de737bc72af46eb2c7857eb3ed3c333
769ef3f5c138f61f63808659a883296c91d32cb1
[V4] Half thread-local storage
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Restructured memory management and context handling system in the core framework for improved type safety and allocator flexibility. * Reorganized benchmark suite to support multiple memory alloc...
diff --git a/benchmark/src/libfork_benchmark/fib/fib.hpp b/benchmark/src/libfork_benchmark/fib/fib.hpp index d39478d08..fd208483c 100644 --- a/benchmark/src/libfork_benchmark/fib/fib.hpp +++ b/benchmark/src/libfork_benchmark/fib/fib.hpp @@ -59,32 +59,41 @@ struct tls_bump { } }; -constinit inline std::byte *bump_...
12
5
3
[{"id": "G0", "claim": "polymorphic_context always default-constructs its Alloc data member while only being constrained by stack_allocator, which does not require default constructibility, so add a default_initializable constraint or provide constructors accepting an Alloc instance.", "category": "correctness", "verdi...
null
ConorWilliams__libfork__60
ConorWilliams/libfork
60
defect
25165b77a1efe08654176432e99b887fbb683bd9
417bf16271160e173c94e2b1ccd86980a95f9cee
[V4] Join
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a new `join()` function for explicit task synchronization in coroutines. * Introduced join-enabled variants of fork operations for improved control flow. * **Refactor** * Rede...
diff --git a/benchmark/src/libfork_benchmark/fib/fib.hpp b/benchmark/src/libfork_benchmark/fib/fib.hpp index fd208483c..afe613d45 100644 --- a/benchmark/src/libfork_benchmark/fib/fib.hpp +++ b/benchmark/src/libfork_benchmark/fib/fib.hpp @@ -73,6 +73,7 @@ struct vector_ctx { auto alloc() noexcept -> Alloc & { retur...
13
6
1
[{"id": "G0", "claim": "transform() catches all exceptions thrown while creating the child coroutine and returns nullptr, which awaitable::await_suspend treats as a noop, so co_await lf::call/fork(...) silently continues instead of throwing; the exception should be allowed to propagate, or stashed in the parent frame a...
null
ConorWilliams__libfork__64
ConorWilliams/libfork
64
defect
78f58c6c92e0ec1df771c931e5f75a02699d9053
889ac9cdadcdf349031c0d82ae531921baf642b2
[V4 ] Queue
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Lock-free work-stealing deque for concurrent programming with push, pop, steal, and dynamic resizing capabilities * Type concepts (atomicable, lock_free) for validating atom...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 52d904e91..7743ca6c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,6 +64,7 @@ target_sources(libfork_libfork src/core/tuple.cxx src/core/ops.cxx src/core/context.cxx + src/core/deque.cxx PRIVATE src/exception.cpp ) diff ...
8
1
1
[{"id": "G0", "claim": "In poly_deque_ctx, unconditionally dereferencing the optional returned by work.pop() causes undefined behavior if the deque is empty; use a custom when_empty callback or add an assertion instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"...
null
ConorWilliams__libfork__66
ConorWilliams/libfork
66
defect
9f23b159b5a4a74d544c65c9714f9ab9c6ba6d02
60685c2683aa7a88666982822ee5c431b3b62fd7
[V4] Schedule and work handles
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added new scheduling and handle management modules to core library exports. * **Improvements** * Updated minimum CMake version to 4.3. * Enhanced hardened build configuration with addition...
diff --git a/AGENTS.md b/AGENTS.md index c3ee78037..e2471ea8b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -166,7 +166,7 @@ All workflows follow this pattern: ```yaml - Install Dependencies: brew install ... - Configure: cmake --preset <preset> -DCMAKE_TOOLCHAIN_FILE=<toolchain>.cmake -- Build: cmake --build --preset <...
2
1
0
[{"id": "G0", "claim": "The `noexcept` specification of `schedule` may cause `std::terminate` on allocation (`std::bad_alloc` from `new block<result_type>{}`) or invocation failure, so consider removing `noexcept` or documenting that allocation/invocation failures are fatal until exception handling is implemented.", "c...
null
ConorWilliams__libfork__71
ConorWilliams/libfork
71
defect
f293d2473e0eded431124d71ab65163c28c5f20e
bf5ded44ec18ab272623b77679aea8dfa3796aac
[V4] Geometric stack
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Introduced `geometric_stack` for segmented user-space stack management. * Added alignment and rounding utility functions for memory operations. * **Improvements** * Enhanced allocator rele...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 04cdf4c2a..3dbdcbb0b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,6 +60,7 @@ target_sources(libfork_libfork src/core/promise.cxx src/core/concepts.cxx src/core/utility.cxx + src/core/stack.cxx src/core/frame.cxx src/co...
11
4
2
[{"id": "G0", "claim": "Requiring `release`/`prepare_release` to be `noexcept` (in the concept and in geometric_stack, whose release allocates a replacement heap) means an otherwise recoverable allocation failure can only end in `std::terminate()`.", "category": "correctness", "verdict": "uncertain", "priority": "P1", ...
null
ConorWilliams__libfork__74
ConorWilliams/libfork
74
defect
24f93651bf4987ad4817545372e97be1ba160c85
113e46a9f38f489a7a3f8b46dbbd4b372ee9b2d2
[V4] Fixed capacity deque
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Deque now throws `deque_full` exception when capacity is exceeded. * Introduced `thief_handle` for safe concurrent work-stealing operations. * **Breaking Changes** * Deque constructor now ...
diff --git a/benchmark/src/libfork_benchmark/fib/baremetal.cpp b/benchmark/src/libfork_benchmark/fib/baremetal.cpp index e02bcac9f..7f2698f9f 100644 --- a/benchmark/src/libfork_benchmark/fib/baremetal.cpp +++ b/benchmark/src/libfork_benchmark/fib/baremetal.cpp @@ -139,7 +139,7 @@ void fib_recursive_deque(benchmark::Sta...
3
1
1
[{"id": "G0", "claim": "In thief_handle::size, `self->ssize()` should be `self.ssize()` because thief_handle defines no operator->, so the code will not compile.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded benchmark deque capacity o...
null
ConorWilliams__libfork__79
ConorWilliams/libfork
79
defect
d4e787f5abc00ca5d7b7d20bc4f7e40dedf5e79d
344fcd8e3c1c7cdc70abc66935691ea9438ebae8
[V4] Concept tests
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **Refactor** * Restructured async invocation concepts to improve context handling * Reorganized stack allocation system into distinct dummy and geometric stack implementations * Updated prom...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3dbdcbb0b..7fe97bb57 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,11 +56,11 @@ target_sources(libfork_libfork target_sources(libfork_libfork PUBLIC FILE_SET CXX_MODULES FILES + # Core src/core/core.cxx src/core/promise.cxx s...
5
1
0
[{"id": "G0", "claim": "The exported dummy_context struct declares post, push, pop and allocator but provides no definitions anywhere in the codebase, so any usage of these members will fail to link; add implementations or restrict the type to internal testing.", "category": "correctness", "verdict": "uncertain", "prio...
null
ConorWilliams__libfork__8
ConorWilliams/libfork
8
defect
b7a2e6a037bdc73e9517434bc53850f5e9d06b71
20dcd557a00e9f8b656d1fdc9c778b73b19320d1
added conan2 recipe
As I said, great library! I want to do some tests to see if we can use it in our production environment. Therefore I made some small additions / changes to make libfork work with conan2. I'll also push a recipe to conancenter if this PR is accepted. Feel free to ask questions.
diff --git a/.gitignore b/.gitignore index 9daa3c2b5..fda2666c9 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,17 @@ gmon.out compile_commands.json CMakeLists.txt.user CMakeUserPresets.json + +# Conan specific +**/test_package/build/ +**/test_package/build-*/ +**/test_package/test_output/ +conan.lock +conanbu...
3
2
1
[{"id": "G0", "claim": "CMAKE_INSTALL_INCLUDEDIR should not be hardcoded unconditionally (packagers could previously override it in a non-top-level build); wrap the set() in if(PROJECT_IS_TOP_LEVEL).", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR re...
null
ConorWilliams__libfork__82
ConorWilliams/libfork
82
defect
0a075c4d9aa61ec4fb3f69c594f36f1e804644d9
355376f559093aaa854dc436e9141cc773491540
[V4] Scheduling split 1/n
Multi component PR, mainly refactors with initial sketch <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **Breaking Changes** * Reorganized module structure: `libfork.context` module removed and replaced with `libfork.schedule` module * Rena...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7fe97bb57..4607c7557 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,15 +66,16 @@ target_sources(libfork_libfork src/core/tuple.cxx src/core/ops.cxx src/core/poly_context.cxx + src/core/generic_context.cxx src/core/thread_locals...
11
2
2
[{"id": "G0", "claim": "The libfork.cpp benchmark must prime thread_context TLS (as lf_parts.cpp does) before invoking schedule(), otherwise get_stack<Context>() dereferences a null TLS pointer.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "return_...
null
ConorWilliams__libfork__84
ConorWilliams/libfork
84
defect
edebf3119fc4a49920904c594ae04a6b1a949c5f
f873fc625d81e7dd2161ab43e5c673d422be3a38
[V4] Schedule split 2/n
Working as separate schedule, still need to add to benchmark and remove root handling from promise <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added `receiver<T>` type for managing async operation results with `ready()`,...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4607c7557..760185795 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,7 +56,7 @@ target_sources(libfork_libfork target_sources(libfork_libfork PUBLIC FILE_SET CXX_MODULES FILES - # Core + # core src/core/core.cxx src/core/promise....
7
4
1
[{"id": "G0", "claim": "The `defer` class is defined in the `:utility` module but `src/core/execute.cxx` does not import it, so the code will fail to compile; add `import :utility;` at the top of the file.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim...
null
ConorWilliams__libfork__86
ConorWilliams/libfork
86
defect
bb1dc6eb3700716b976b573b74f6ffa00de741fa
7137ccdabd9d8113c935341549146545d6d713f9
[V4] Scheduler split 3/n
First working sketch of new schedule2 API, benchmarking the same as the previous API. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added new context implementations: `mono_context` and `derived_poly_context` for improved ...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 760185795..eff2191f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,7 +66,7 @@ target_sources(libfork_libfork src/core/tuple.cxx src/core/ops.cxx src/core/poly_context.cxx - src/core/generic_context.cxx + src/core/mono_context.cx...
6
2
0
[{"id": "G0", "claim": "The doc comment on poly_context says \"blesses\" where it should say \"blessed\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The derived_worker_context concept does not enforce that Context derives from context_type, wh...
null
ConorWilliams__libfork__87
ConorWilliams/libfork
87
defect
fd609eb943a079ff8a0b3a0ca8541cb76ce201a7
180cb137c0e4f5838c9ada9fcafffe0bcf304bf6
[V4] Scheduler split 4/4
Final transition to the new schedule API <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **Refactor** * Consolidated the public scheduling interface: `schedule2` renamed to `schedule` for a unified entry point * Removed legacy context-based ...
diff --git a/benchmark/CMakeLists.txt b/benchmark/CMakeLists.txt index c35e95b27..4a36b2ac4 100644 --- a/benchmark/CMakeLists.txt +++ b/benchmark/CMakeLists.txt @@ -53,7 +53,6 @@ target_sources(libfork_benchmark target_sources(libfork_benchmark PRIVATE - src/libfork_benchmark/fib/lf_parts.cpp src/libfork_...
2
1
0
[{"id": "G0", "claim": "Remove the unused `final_suspend_continue` function, which is unreachable dead code now that the join-race logic has been inlined into `final_suspend` and no call sites remain.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
ConorWilliams__libfork__90
ConorWilliams/libfork
90
defect
fe1130b92bf1c4551dec111c617a3f121008abc4
d45b83336e14040aa39ae02e8a46fba368bc1f3b
[V4] Adaptor stack
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Introduced a new stack implementation for allocator-based memory management. * **Tests** * Expanded test coverage across multiple stack implementations. * **Benchmarks** * Added benchmark...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 56601cfca..7bcaf868e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,6 +90,7 @@ target_sources(libfork_libfork src/batteries/adaptors.cxx src/batteries/contexts.cxx src/batteries/geometric_stack.cxx + src/batteries/adaptor_stack.cxx ...
2
2
2
[{"id": "G0", "claim": "The TEMPLATE_TEST_CASE bodies in test/src/stack.cpp (Checkpoint and Acquire/Release, Single pass, Randomized push/pop, Spikey randomized push/pop) hardcode lf::geometric_stack<> instead of instantiating TestType, so the lf::adaptor_stack<> variant declared in the tests is never exercised.", "cat...
null
ConorWilliams__libfork__91
ConorWilliams/libfork
91
defect
c02b3374fbd1cd17ae1cab977d9bf4be600ac2d2
ea3cd93561cca87bd3179f361b70933a9a4fad63
[V4] Busy pool (dev version)
A stripped back busy pool, just for dev (missing lock free submission queue) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added `busy_thread_pool` scheduler for multi-threaded task execution with configurable worker threa...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7bcaf868e..6edf24670 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -95,6 +95,7 @@ target_sources(libfork_libfork # libfork.schedulers src/schedulers/schedulers.cxx src/schedulers/inline.cxx + src/schedulers/busy.cxx PRIVATE s...
5
2
0
[{"id": "G0", "claim": "The frame->steals field is incremented in execute(steal_handle) and read by parent threads in join_awaitable without atomic protection (unlike joins and exception_bit), creating a torn read/write hazard; it should use atomic protection or the synchronization guarantees preventing concurrent acce...
null
ConorWilliams__libfork__92
ConorWilliams/libfork
92
defect
f6c07c5896bf1e3d8d130138177d0175736da6b8
b0ea04ea6d1b6dfbdc6fc7456a6b77b7dfb8b1f2
[V4] Schedule test exceptions
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved exception handling during asynchronous fork and call operations to correctly propagate exceptions to parent coroutines. * **Tests** * Enhanced test coverage for scheduling functionalit...
diff --git a/src/core/promise.cxx b/src/core/promise.cxx index 5400a0860..51ae13161 100644 --- a/src/core/promise.cxx +++ b/src/core/promise.cxx @@ -244,7 +244,8 @@ struct awaitable : std::suspend_always { * @brief In a separate function to allow it to be placed in cold block. */ template <typename T> - con...
1
1
1
[{"id": "G0", "claim": "Use `#if` instead of `#ifdef` to check `LF_COMPILER_EXCEPTIONS`, since the macro is defined as 0 or 1 and the throwing-test block still compiles (and fails the build) when exceptions are disabled.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
ConorWilliams__libfork__94
ConorWilliams/libfork
94
defect
387d76348c6e3d069a053e44fed9a188b3c1b078
d493533c0339c5897c7896e7b2281ddcf456fc55
[V4] Slab stack No.2
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Introduced `slab_stack`, a fixed-size, single-slab user-space stack implementation for memory allocation. * Extended benchmarks to include `slab_stack` variants. * **Bug Fixes** * Fixed co...
diff --git a/CMakeLists.txt b/CMakeLists.txt index c26eaa3e7..b9e917e2a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,6 +92,7 @@ target_sources(libfork_libfork src/batteries/contexts.cxx src/batteries/geometric_stack.cxx src/batteries/adaptor_stack.cxx + src/batteries/slab_stack.cxx ...
2
1
1
[{"id": "G0", "claim": "After a failed reallocation in release() leaves m_ctrl/m_sp/m_hi null, the next push() computes m_hi - m_sp on null pointers, which is undefined behavior and can let the compiler eliminate the capacity check; add an explicit null check before the pointer arithmetic and update the release() comme...
null
ConorWilliams__libfork__96
ConorWilliams/libfork
96
defect
56eec7dd3d89ad05329a175e9417fc83161bd357
ea7a3a333fcccd234e15ac212e80f822c20e781a
[V4] Allocator aware deque
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Enhanced queue data structure with custom allocator support for flexible memory management. * **Improvements** * Updated return types across queue methods for improved type consistency. * ...
diff --git a/CMakePresets.json b/CMakePresets.json index dd34d4461..ac23b1e37 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -41,7 +41,7 @@ "displayName": "Release", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release", - "CMAKE_CXX_FLAGS": "-O3 -DNDEBUG -flto=auto -march=native" +...
3
3
3
[{"id": "G0", "claim": "The deque constructor calls std::bit_ceil(cap) on size_type without guarding its precondition, so a cap near size_type::max is undefined behavior and even a successful bit_ceil can overflow diff_type when cast; add a precondition check before calling bit_ceil (e.g. a round_capacity helper).", "c...
null
ConsenSysDiligence__mythril__1033
ConsenSysDiligence/mythril
1,033
defect
a871908a594513b79247f7d2bd4693ca988ec783
4b704766eed4fdb3afbf462672815a49d734fb21
Refactor cli
fixes #895.
diff --git a/mythril/interfaces/cli.py b/mythril/interfaces/cli.py index 4c9d4222f..d9dc5b156 100644 --- a/mythril/interfaces/cli.py +++ b/mythril/interfaces/cli.py @@ -15,6 +15,7 @@ import traceback import mythril.support.signatures as sigs +from argparse import ArgumentParser, Namespace from mythril.exceptions i...
13
13
3
[{"id": "G0", "claim": "The CLI structure as first refactored is not easy to extend based on the feedback in the docs and should be re-refactored.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use argparse subparser aliases instead of looping t...
null
ConsenSysDiligence__mythril__1220
ConsenSysDiligence/mythril
1,220
defect
57068484c6369315f097721af73cada20f86dcee
759c778f3a52dc386fd88eb9d93a15a3aa19a531
DSChief Fix
Also fixes #1236 Now it's: - VerX hash modeling - plain SMT array storage - transforming VerX hashes to actual hashes in transaction sequence output. This will have some problems(which aren't a big deal compared to previous hash implementation) but is much faster and feasibly solvable than the old approaches w...
diff --git a/mythril/analysis/modules/suicide.py b/mythril/analysis/modules/suicide.py index b55fcd3fe..25123747e 100644 --- a/mythril/analysis/modules/suicide.py +++ b/mythril/analysis/modules/suicide.py @@ -9,7 +9,6 @@ ContractCreationTransaction, ) import logging -import json log = logging.getLogger(__name...
18
15
2
[{"id": "G0", "claim": "Add documentation for the new weighted parameter of get_model.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Drop the intermediary weighted variable in get_transaction_sequence, and make sure the weighted constraints still...
null
ConsenSysDiligence__mythril__1248
ConsenSysDiligence/mythril
1,248
defect
3d1b0e889db7ba595508dac164f4d108bc6ec476
bf2cd132d707dabc02f41cd2ce36fd535fb9870c
Add statespace tests
I always wondered why i didn't need to update the graph tests after each change.Graph tests were testing for exceptions and they check `assert [] == []` at the end, will remove graph tests files after this PR.
diff --git a/mythril/analysis/modules/deprecated_ops.py b/mythril/analysis/modules/deprecated_ops.py index 857665378..0510dd8e2 100644 --- a/mythril/analysis/modules/deprecated_ops.py +++ b/mythril/analysis/modules/deprecated_ops.py @@ -58,9 +58,7 @@ def _analyze_state(self, state): "The smart contract...
3
2
1
[{"id": "G0", "claim": "The removed golden-file comparison should have used `output_expected` instead of `output_current`, and its `'label': '.*'` regex is wrong because black writes the files with double quotes, so it would fail the tests.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope":...
null
ConsenSysDiligence__mythril__1292
ConsenSysDiligence/mythril
1,292
defect
06104547051968a1db98a61700ea6af6f29f6be8
cb681e5b0dbefdf1c9b9c6589941853d8614b428
Support Istanbul fork
- Implemented 2 opcodes - Added a precompile - some gas changes - Removed python3.5 support as blake2 bindings doesn't support it.(Our own Implementation of blake2 hash would be tedious, slow and would take 200 - 300 lines)
diff --git a/mythril/laser/ethereum/call.py b/mythril/laser/ethereum/call.py index 52b357119..551f85b8e 100644 --- a/mythril/laser/ethereum/call.py +++ b/mythril/laser/ethereum/call.py @@ -10,7 +10,7 @@ from mythril.laser.ethereum import natives from mythril.laser.ethereum.instruction_data import calculate_native_gas...
7
4
1
[{"id": "G0", "claim": "The new chain_id should be a default concrete value (perhaps configurable via a CLI option) instead of a fully symbolic value, since different chain_ids could have different opcode implementations.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1...
null
ConsenSysDiligence__mythril__1306
ConsenSysDiligence/mythril
1,306
defect
fff443f539ae1c65199d7c497cd7430815d07be5
a02c81696378d4169d8729dcd4a8f974128ed572
Fix create salt
fixes #1303 A bunch of commits from different PR got merged into here
diff --git a/mythril/laser/ethereum/instructions.py b/mythril/laser/ethereum/instructions.py index cebd961d4..f8067a091 100644 --- a/mythril/laser/ethereum/instructions.py +++ b/mythril/laser/ethereum/instructions.py @@ -1674,20 +1674,37 @@ def _create_transaction_helper( gas_price = environment.gasprice ...
2
2
2
[{"id": "G0", "claim": "The reviewer questions whether the Instruction._sha3_gas_helper call should also be indented into the concrete-salt else branch — as placed, gas would be charged only for concrete salts and not on the symbolic path.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ...
null
ConsenSysDiligence__mythril__1352
ConsenSysDiligence/mythril
1,352
defect
8b5e484f873958e7aaf94c275ecff5f782d3a283
b304cad96eea30f8c0c128849f432e42d542851b
Remove branch pruning
For now, I am using the args class. After next PR i will construct a new args class and send it to laser, that's cleaner.
diff --git a/mythril/analysis/analysis_args.py b/mythril/analysis/analysis_args.py index fcd5fc367..e69de29bb 100644 --- a/mythril/analysis/analysis_args.py +++ b/mythril/analysis/analysis_args.py @@ -1,30 +0,0 @@ -from mythril.support.support_utils import Singleton - - -class AnalysisArgs(object, metaclass=Singleton):...
6
5
2
[{"id": "G0", "claim": "Even with this branch, analysis of the example still stalls for ~10 seconds at some JUMPI (the same 'JUMPI hiccups' as before).", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Args should not be a singleton, because a singleto...
null
ConsenSysDiligence__mythril__1357
ConsenSysDiligence/mythril
1,357
defect
e4bbf70f8371c94ca017619ecd0cafbe16afbb88
aff3ec67b03dec5d6d154d4e186c41f748f95802
Refactor all detectors
- Update all issue texts - Adjust severity of some issues - Add a module for SWC-115, use of `tx.origin`for authorisation - Remove the "deprecated ops" module (SWC-111) which checked for the presence of `callcode` and `origin` instructions. This module is made redundant by the SWC-115 module. - Simplified the `dep...
diff --git a/mythril/analysis/module/loader.py b/mythril/analysis/module/loader.py index 4ed86b913..05c3b74c8 100644 --- a/mythril/analysis/module/loader.py +++ b/mythril/analysis/module/loader.py @@ -7,7 +7,7 @@ from mythril.analysis.module.modules.dependence_on_predictable_vars import ( PredictableVariables, )...
3
1
0
[{"id": "G0", "claim": "The new ArbitraryJump docstring should read \"a user-specified location\" instead of \"an user-specified location\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Removing the deprecated_ops module may cause the CALLCODE c...
null
ConsenSysDiligence__mythril__1418
ConsenSysDiligence/mythril
1,418
defect
b9f9ae65ab2e53e7862e88d8e6a60da6a4c27f52
d616bdb3f01cb4fe754f4277d208d01d5fc24aba
Support Ifs for arrays and have handy id function for Node
- Support Ifs for arrays - have a function which updates global_id for nodes.
diff --git a/mythril/laser/ethereum/cfg.py b/mythril/laser/ethereum/cfg.py index c62f88577..83823f224 100644 --- a/mythril/laser/ethereum/cfg.py +++ b/mythril/laser/ethereum/cfg.py @@ -3,12 +3,23 @@ from typing import Dict, List, TYPE_CHECKING from mythril.laser.ethereum.state.constraints import Constraints +from m...
5
3
0
[{"id": "G0", "claim": "The reviewer asks what the new NodeUidCounter/new_node_uid singleton is used for and suggests the node uid could simply be hash(self) instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Moving the Bool-to-int coercion out of B...
null
ConsenSysDiligence__mythril__1721
ConsenSysDiligence/mythril
1,721
defect
e6c140fd891243955f6c64685a947ea6e6353f0b
fc13783186e3f684e82474b508defab002ca3e53
some fixes
- add cli option --enable-mutation-pruner to control if to enable MutationPrunerBuilder - let cli option --enable-coverage-strategy to control if to load CoveragePluginBuilder - let cli option --enable-iprof to control if to load InstructionProfilerBuilder - remove the redundant print in MythrilDisassembler.hash_for...
diff --git a/mythril/analysis/symbolic.py b/mythril/analysis/symbolic.py index 1f3a7019e..950daa4b9 100644 --- a/mythril/analysis/symbolic.py +++ b/mythril/analysis/symbolic.py @@ -136,10 +136,14 @@ def __init__( ) plugin_loader = LaserPluginLoader() - plugin_loader.load(CoveragePluginBui...
2
2
2
[{"id": "G0", "claim": "It would be better if these functions (coverage strategy, mutation pruner, iprof) were enabled by default — e.g. Mutation Pruning gives the best performance and users can get InstructionProfiling and coverage results directly with -v4 — with options added to disable them instead.", "category": "...
null
ConsenSysDiligence__mythril__1887
ConsenSysDiligence/mythril
1,887
defect
0cd0a8974f4aa6ee6e11ad0012745ae22d15cea4
91440e23437594625b27828a8ba6f6570d92562b
Fix 'pragma solidity' parsing
remove comments and strings before searching for a line containing 'pragma solidity'
diff --git a/mythril/ethereum/util.py b/mythril/ethereum/util.py index d1721e66b..9d71c0f06 100644 --- a/mythril/ethereum/util.py +++ b/mythril/ethereum/util.py @@ -168,18 +168,72 @@ def parse_pragma(solidity_code): all_versions = solcx.get_installed_solc_versions() +# remove_comments_strings(str): +# Return s...
7
7
1
[{"id": "G0", "claim": "The comment in util.py citing the source (SmartBugs) can be removed since no credits are needed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test failures appear to be caused by the test cases related to version_2....
null
ConsenSysDiligence__mythril__404
ConsenSysDiligence/mythril
404
defect
530d749c849921b2cffd35e9d53e7908c0568c6d
e05940e06e624d6d84110b8d14afbb8ba5685e47
Transaction based message calling
In this pr I changed how calls are handled. These are now modeled as message call transactions (which they are :)) Since the mstate is specific for each transaction, the depth is now also managed for each transaction separately. Transaction creation and termination now happens with the use of exceptions, the tran...
diff --git a/mythril/interfaces/cli.py b/mythril/interfaces/cli.py index c962f687b..e9cc9b72f 100644 --- a/mythril/interfaces/cli.py +++ b/mythril/interfaces/cli.py @@ -193,7 +193,7 @@ def main(): if args.graph: html = mythril.graph_html(strategy=args.strategy, contract=mythril.contracts[0...
7
4
3
[{"id": "G0", "claim": "Can the pull request do space optimization, since running it on the address from #397 consumed so much memory that it killed the reviewer's laptop.", "category": "performance", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In the call post handlers, mem...
null
ConsenSysDiligence__mythril__503
ConsenSysDiligence/mythril
503
defect
01bb77cba54380b03a61626e88930db9fbe9ecbf
38a59afabdd8583320a3fc791aed0b0e1c02e618
Machinestack refactor
refactor machine stack and also fixes #491 Edit: Also has a dependency on PR #494 (not a hard dependency but just to check it didn't mess up any tests)Only the last 2 commits are related to this PR(and also branch)
diff --git a/mythril/laser/ethereum/exceptions.py b/mythril/laser/ethereum/exceptions.py index 45b43d44b..3aa528a21 100644 --- a/mythril/laser/ethereum/exceptions.py +++ b/mythril/laser/ethereum/exceptions.py @@ -6,5 +6,9 @@ class StackUnderflowException(VmException): pass +class StackOverflowException(VmExcep...
7
4
1
[{"id": "G0", "claim": "Check that MachineState.pop still works now that the stack is a MachineStack rather than a plain list.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Consider renaming the exceptions module file to evm_exceptions.py.", "categor...
null
ConsenSysDiligence__mythril__620
ConsenSysDiligence/mythril
620
defect
f5ad0116c0e471aa33b367f9bb3d213d3f6e6503
725d6c61d5c9a0564e7b350db566aeac38480416
Fix issue where the new calldata constraints are overwritten.
Don't know how I missed this earlier. :disappointed: The calldatasize constraints are being applied every time now thanks to a `+=` instead of a `=`.
diff --git a/mythril/laser/ethereum/state.py b/mythril/laser/ethereum/state.py index d1421cd81..831a6629e 100644 --- a/mythril/laser/ethereum/state.py +++ b/mythril/laser/ethereum/state.py @@ -61,7 +61,6 @@ def __init__(self, tx_id, starting_calldata=None): @property def constraints(self): constraint...
2
2
2
[{"id": "G0", "claim": "The added UGT(10000, calldatasize) bound is a technically untrue constraint in the wrong place and should go in the concretization logic rather than the constraints property, and arguably need not be part of this PR at all.", "category": "correctness", "verdict": "supported", "priority": "P1", "...
null
ConsenSysDiligence__mythril__664
ConsenSysDiligence/mythril
664
defect
47bf8a5ee8218c6fc42ddfaac0a690fdaff63b96
3356b4c02dbf90397249553ebb61cfa575bde073
Add EnvironmentInfo tests
- Added EnvironmentalInfo tests - Made some fixes in the corresponding places like the Calldata class and few instructions like calldataload etc
diff --git a/mythril/laser/ethereum/instructions.py b/mythril/laser/ethereum/instructions.py index edefece9b..b955e7057 100644 --- a/mythril/laser/ethereum/instructions.py +++ b/mythril/laser/ethereum/instructions.py @@ -1,5 +1,6 @@ import binascii import logging + from copy import copy, deepcopy from ethereum im...
8
6
1
[{"id": "G0", "claim": "The storage-value check in test_vmtest should test for a z3 ExprRef (e.g. isinstance(actual, ExprRef)) rather than `type(actual) not in [str, bytes, int]`, since actual can be an ExprRef there.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i...
null
ConsenSysDiligence__mythril__719
ConsenSysDiligence/mythril
719
defect
108c7341b81ee57892acb87f7736c487457ff6dd
594d9159a781645c894fb152e4f7ee6f1b16883c
Make transaction count fixed
Transaction count is now a fixed parameter. I also took the `-t` flag away from Truffle and assigned it to `--transaction-count` instead: ``` $ myth -t3 -v1 -x source.sol $ myth --transaction-count 3 -v1 -x source.sol ```
diff --git a/mythril/analysis/symbolic.py b/mythril/analysis/symbolic.py index 40aab5acf..fd4ae156e 100644 --- a/mythril/analysis/symbolic.py +++ b/mythril/analysis/symbolic.py @@ -28,7 +28,7 @@ def __init__( max_depth=22, execution_timeout=None, create_timeout=None, - max_transaction_...
3
2
0
[{"id": "G0", "claim": "The accidentally added tests/mythril_dir/config.ini should not be part of the pull request and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks why transaction_count is hardcoded to 1 in...
null
ConsenSysDiligence__mythril__761
ConsenSysDiligence/mythril
761
defect
98f3e1d71602ebfa816d0c6389724e9c64c2075c
eb7433a830c0fffedacd87739eb89d2512980f62
Refactor of calldata
TODO: - [x] Documentation strings - [x] Moar tests closes #759
diff --git a/mythril/analysis/modules/integer.py b/mythril/analysis/modules/integer.py index 9bd354a7b..515a0e851 100644 --- a/mythril/analysis/modules/integer.py +++ b/mythril/analysis/modules/integer.py @@ -167,33 +167,19 @@ def _check_integer_underflow(self, statespace, state, node): constraints = cop...
3
1
1
[{"id": "G0", "claim": "The CalldataType enum could be removed since its only use is inside an if statement in instructions.py that the reviewer believes is always false and should itself be deleted.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim...
null
ConsenSysDiligence__mythril__764
ConsenSysDiligence/mythril
764
defect
98f3e1d71602ebfa816d0c6389724e9c64c2075c
78851b74abf86790acd34fdd87cf0c2f821a7f11
Memory refactor to store symbolic values (#685)
- Refactors memory into a new class - Store symbolic values in memory - Does not use a z3 Array. Better for claripy and easier and more logical to implement - Keeps mem_extend (needed for gas anyway, and also needed still to resize list) fixes #685
diff --git a/mythril/laser/ethereum/call.py b/mythril/laser/ethereum/call.py index cc567b898..b54249651 100644 --- a/mythril/laser/ethereum/call.py +++ b/mythril/laser/ethereum/call.py @@ -155,26 +155,14 @@ def get_call_data( state = global_state.mstate transaction_id = "{}_internalcall".format(global_state.c...
5
3
2
[{"id": "G0", "claim": "The expected-outputs JSON file, which this PR reformatted to a single minified line, should be made pretty (multi-line) again for readability.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Combining this PR with the develo...
null
ConsenSysDiligence__mythril__834
ConsenSysDiligence/mythril
834
defect
5518400586707c1b78d366d858930efe17237f3f
82881c1268bd9d9022197494df79de1a3d05ecbc
Refactor integer callback
closes #796
diff --git a/mythril/analysis/modules/integer.py b/mythril/analysis/modules/integer.py index 67509f215..33bb9d482 100644 --- a/mythril/analysis/modules/integer.py +++ b/mythril/analysis/modules/integer.py @@ -2,9 +2,10 @@ from mythril.analysis.report import Issue from mythril.analysis.swc_data import INTEGER_OVERFLOW...
3
2
0
[{"id": "G0", "claim": "The issue description wording should read 'can result in an integer overflow' instead of 'can result in integer overflow'.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The assignment to `model` before returning in `_try_c...
null
ConsenSysDiligence__mythril__897
ConsenSysDiligence/mythril
897
defect
98d0239360f14a14329634d610db73a263b5e722
cb0156c5208ea8784cf46d6145dbf24f4362162c
Reachability Check
fixes #509, Also cleans up the some part of `jumpi_` instruction for readability
diff --git a/mythril/laser/ethereum/instructions.py b/mythril/laser/ethereum/instructions.py index 677ec626e..37fa177b1 100644 --- a/mythril/laser/ethereum/instructions.py +++ b/mythril/laser/ethereum/instructions.py @@ -1479,9 +1479,18 @@ def jumpi_(self, global_state: GlobalState) -> List[GlobalState]: s...
6
4
0
[{"id": "G0", "claim": "The get_list() method should be exposed as a @property named as_list instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The private Constraints attributes should not use double-underscore name mangling, since a singl...
null
ConsenSysDiligence__mythril__900
ConsenSysDiligence/mythril
900
defect
98d0239360f14a14329634d610db73a263b5e722
1e296a7a1f680524c09596f3b917075786ae9014
Change solver's timeout based on execution-timeout
Also fixes #899 , was required to fix to test for various other contracts.
diff --git a/mythril/analysis/solver.py b/mythril/analysis/solver.py index eed240651..2a29f7100 100644 --- a/mythril/analysis/solver.py +++ b/mythril/analysis/solver.py @@ -3,6 +3,7 @@ import z3 from mythril.laser.smt import simplify, UGE, Optimize, symbol_factory +from mythril.laser.ethereum.time_handler import ti...
2
1
0
[{"id": "G0", "claim": "The line coercing non-Bool arguments in Bool.And() is against the function's corresponding type hint, which the author says will be changed in #894.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "TimeHandler should be use...
null
ConsenSysDiligence__mythril__902
ConsenSysDiligence/mythril
902
defect
302378514308471c5df349689f1c4cf9802be913
1a65e8e4c902e0924e08f9af556635bdbd7b6739
Independence optimization
closes #232
diff --git a/mythril/laser/smt/__init__.py b/mythril/laser/smt/__init__.py index 3b41f7d20..e585371bf 100644 --- a/mythril/laser/smt/__init__.py +++ b/mythril/laser/smt/__init__.py @@ -18,6 +18,7 @@ from mythril.laser.smt.bool import Bool, is_true, is_false, Or, Not from mythril.laser.smt.array import K, Array, BaseA...
10
9
0
[{"id": "G0", "claim": "Add type hints for the return value of _get_expr_variables and of the functions below it in independence_solver.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The DependenceMap attribute variable (e.g. self.variable_m...
null
ConsenSysDiligence__mythril__907
ConsenSysDiligence/mythril
907
defect
c8f3429a7b064feecf02e617ee84b024091ff158
1bd944c23eb3af39e7af262d9d883fe2e23aa682
Effect check
This pr will add a bit of false positive filtering to the integer over&underflow module. It will only report a vulnerability if: - there is an overflow somewhere - used by an sstore or STOP - for which there is a trace that succesfully finishes fixes #782
diff --git a/mythril/analysis/modules/integer.py b/mythril/analysis/modules/integer.py index 6cbfd5ac3..c57e6f96d 100644 --- a/mythril/analysis/modules/integer.py +++ b/mythril/analysis/modules/integer.py @@ -2,12 +2,13 @@ underflows.""" import json -from typing import Dict +from typing import Dict, cast, List fro...
1
1
0
[{"id": "G0", "claim": "The docstring of OverUnderflowStateAnnotation is missing the word \"is\" and should read \"State Annotation used if an overflow is both possible and used in the annotated path\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
ConsenSysDiligence__mythril__910
ConsenSysDiligence/mythril
910
defect
5a04e92686b82317e15dc3a0b11d9e29cf9b41cc
e9b859320911b8357deb321bfc51e067e928b941
Solver statistics
This pr implements the logic to measure query count and solving time. Additionally two minor bugs were fixed
diff --git a/mythril/laser/ethereum/state/constraints.py b/mythril/laser/ethereum/state/constraints.py index ba488ac24..15e9c43f3 100644 --- a/mythril/laser/ethereum/state/constraints.py +++ b/mythril/laser/ethereum/state/constraints.py @@ -1,7 +1,7 @@ """This module contains the class used to represent state-change c...
2
1
0
[{"id": "G0", "claim": "Add docstrings to the functions and classes in mythril/laser/smt/solver/solver_statistics.py.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It might be nice to have finer-grained reporting of solver time than the total, e....
null
ConsenSysDiligence__mythril__928
ConsenSysDiligence/mythril
928
defect
c1ae1ee5520e93043c2e054319c7bd02ba106fee
0a1bee48c778583d62662c72a3877bd1c9ff488e
Implement EXTCODECOPY
fixes #269
diff --git a/mythril/laser/ethereum/instructions.py b/mythril/laser/ethereum/instructions.py index 72d17e5d4..378bf00ef 100644 --- a/mythril/laser/ethereum/instructions.py +++ b/mythril/laser/ethereum/instructions.py @@ -944,16 +944,66 @@ def codecopy_(self, global_state: GlobalState) -> List[GlobalState]: ...
3
3
1
[{"id": "G0", "claim": "EXTCODESIZE and EXTCODECOPY should first check whether the current environment already contains an account with the address before loading its code with the dynamic loader.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The r...
null