From 60aa7ffa01597c5eafa60b8b1d6afa144197d3a3 Mon Sep 17 00:00:00 2001 From: Krisztian Kovacs Date: Mon, 2 Dec 2024 10:22:46 +0100 Subject: [PATCH 1/2] chore(cargo): enable arithmetic overflow checks in release mode --- CHANGELOG.md | 6 ++++++ Cargo.toml | 3 +++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d259cd9a2..63883f144f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ More expansive patch notes and explanations may be found in the specific [pathfi The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.14.5] - 2024-12-02 + +### Fixed + +- Pathfinder is now compiled with arithmetic overflow checks enabled in release mode to mitigate potential issues. + ## [0.14.4] - 2024-10-03 ### Fixed diff --git a/Cargo.toml b/Cargo.toml index f348ee0e20..f102d15855 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,6 +29,9 @@ exclude = [ ] resolver = "2" +[profile.release] +overflow-checks = true + [profile.release-lto] inherits = "release" codegen-units = 1 From 8a7c03fc2b1a4763a465cb19434b3eee6f2bd37d Mon Sep 17 00:00:00 2001 From: Krisztian Kovacs Date: Mon, 2 Dec 2024 10:26:35 +0100 Subject: [PATCH 2/2] chore(cargo): bump version to 0.14.5 --- Cargo.lock | 42 ++++++++++++++++++------------------- Cargo.toml | 2 +- crates/load-test/Cargo.lock | 2 +- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ddc24cef0d..9aeaa934cf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3922,7 +3922,7 @@ dependencies = [ [[package]] name = "gateway-test-utils" -version = "0.14.4" +version = "0.14.5" dependencies = [ "http 0.2.12", "reqwest", @@ -6149,7 +6149,7 @@ checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" [[package]] name = "p2p" -version = "0.14.4" +version = "0.14.5" dependencies = [ "anyhow", "async-stream", @@ -6190,7 +6190,7 @@ dependencies = [ [[package]] name = "p2p_proto" -version = "0.14.4" +version = "0.14.5" dependencies = [ "anyhow", "fake", @@ -6211,7 +6211,7 @@ dependencies = [ [[package]] name = "p2p_proto_derive" -version = "0.14.4" +version = "0.14.5" dependencies = [ "proc-macro2", "quote", @@ -6220,7 +6220,7 @@ dependencies = [ [[package]] name = "p2p_stream" -version = "0.14.4" +version = "0.14.5" dependencies = [ "anyhow", "async-trait", @@ -6348,7 +6348,7 @@ checksum = "17359afc20d7ab31fdb42bb844c8b3bb1dabd7dcf7e68428492da7f16966fcef" [[package]] name = "pathfinder" -version = "0.14.4" +version = "0.14.5" dependencies = [ "anyhow", "assert_matches", @@ -6415,7 +6415,7 @@ dependencies = [ [[package]] name = "pathfinder-common" -version = "0.14.4" +version = "0.14.5" dependencies = [ "anyhow", "bitvec", @@ -6439,7 +6439,7 @@ dependencies = [ [[package]] name = "pathfinder-compiler" -version = "0.14.4" +version = "0.14.5" dependencies = [ "anyhow", "cairo-lang-starknet 1.0.0-alpha.6", @@ -6460,7 +6460,7 @@ dependencies = [ [[package]] name = "pathfinder-crypto" -version = "0.14.4" +version = "0.14.5" dependencies = [ "ark-ff", "assert_matches", @@ -6477,7 +6477,7 @@ dependencies = [ [[package]] name = "pathfinder-ethereum" -version = "0.14.4" +version = "0.14.5" dependencies = [ "anyhow", "async-trait", @@ -6497,7 +6497,7 @@ dependencies = [ [[package]] name = "pathfinder-executor" -version = "0.14.4" +version = "0.14.5" dependencies = [ "anyhow", "blockifier", @@ -6518,7 +6518,7 @@ dependencies = [ [[package]] name = "pathfinder-merkle-tree" -version = "0.14.4" +version = "0.14.5" dependencies = [ "anyhow", "bitvec", @@ -6534,7 +6534,7 @@ dependencies = [ [[package]] name = "pathfinder-retry" -version = "0.14.4" +version = "0.14.5" dependencies = [ "tokio", "tokio-retry", @@ -6542,7 +6542,7 @@ dependencies = [ [[package]] name = "pathfinder-rpc" -version = "0.14.4" +version = "0.14.5" dependencies = [ "anyhow", "assert_matches", @@ -6593,7 +6593,7 @@ dependencies = [ [[package]] name = "pathfinder-serde" -version = "0.14.4" +version = "0.14.5" dependencies = [ "anyhow", "num-bigint 0.4.5", @@ -6608,7 +6608,7 @@ dependencies = [ [[package]] name = "pathfinder-storage" -version = "0.14.4" +version = "0.14.5" dependencies = [ "anyhow", "assert_matches", @@ -8279,7 +8279,7 @@ dependencies = [ [[package]] name = "starknet-gateway-client" -version = "0.14.4" +version = "0.14.5" dependencies = [ "anyhow", "assert_matches", @@ -8314,7 +8314,7 @@ dependencies = [ [[package]] name = "starknet-gateway-test-fixtures" -version = "0.14.4" +version = "0.14.5" dependencies = [ "pathfinder-common", "pathfinder-crypto", @@ -8322,7 +8322,7 @@ dependencies = [ [[package]] name = "starknet-gateway-types" -version = "0.14.4" +version = "0.14.5" dependencies = [ "anyhow", "assert_matches", @@ -8515,7 +8515,7 @@ dependencies = [ [[package]] name = "tagged" -version = "0.14.4" +version = "0.14.5" dependencies = [ "fake", "pretty_assertions_sorted", @@ -8524,7 +8524,7 @@ dependencies = [ [[package]] name = "tagged-debug-derive" -version = "0.14.4" +version = "0.14.5" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index f102d15855..97e961ba2a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,7 @@ lto = true opt-level = 3 [workspace.package] -version = "0.14.4" +version = "0.14.5" edition = "2021" license = "MIT OR Apache-2.0" rust-version = "1.76" diff --git a/crates/load-test/Cargo.lock b/crates/load-test/Cargo.lock index 3eb7fd205d..abdf973a2a 100644 --- a/crates/load-test/Cargo.lock +++ b/crates/load-test/Cargo.lock @@ -976,7 +976,7 @@ dependencies = [ [[package]] name = "pathfinder-crypto" -version = "0.14.4" +version = "0.14.5" dependencies = [ "bitvec", "fake",