Skip to content

Commit

Permalink
Fix out-of-bounds access during url sentinel-slice (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
InKryption authored Nov 1, 2024
1 parent b7db613 commit 1dd9166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accountsdb/download.zig
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ pub fn downloadSnapshotsFromGossip(
bStr(&rpc_url_bounded),
bStr(&snapshot_filename_bounded),
});
const snapshot_url = snapshot_url_bounded.constSlice()[0.. :0];
const snapshot_url = snapshot_url_bounded.constSlice()[0 .. snapshot_url_bounded.len - 1 :0];

logger
.info()
Expand Down

0 comments on commit 1dd9166

Please sign in to comment.