Skip to content

Commit

Permalink
cob: update lru v0.7.1
Browse files Browse the repository at this point in the history
The advisory script brought up a RUSTSEC error:

---
error[A001]: Use after free in lru crate
    ┌─ /home/haptop/Developer/radicle-link/Cargo.lock:207:1
    │
207 │ lru 0.6.6 registry+https://github.com/rust-lang/crates.io-index
    │ --------------------------------------------------------------- security vulnerability detected
    │
    = ID: RUSTSEC-2021-0130
    = Advisory: https://rustsec.org/advisories/RUSTSEC-2021-0130
    = Lru crate has use after free vulnerability.

      Lru crate has two functions for getting an iterator. Both iterators give
      references to key and value. Calling specific functions, like pop(), will remove
      and free the value, and but it's still possible to access the reference of value
      which is already dropped causing use after free.
    = Announcement: jeromefroe/lru-rs#120
    = Solution: Upgrade to >=0.7.1
---

This patch follows the recommended solution and pins the `lru` crate
to 0.7.1.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
  • Loading branch information
FintanH committed Dec 29, 2021
1 parent f95a657 commit b1f8c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cob/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ thiserror = "1.0"
toml = "0.5"
tracing = "0.1"
either = ">= 1.3, 1"
lru = "0.6.6"
lru = "0.7.1"
multihash = "0.11"
multibase = "0.9"
lazy_static = "1.4.0"
Expand Down

0 comments on commit b1f8c40

Please sign in to comment.