Open Qwaz opened 4 years ago
I understand this comes from a run of Rudra, but this repo seems rather unfinished and dead. There are official alpm bindings at https://github.com/archlinux/alpm.rs. This repo should probably be archived if the author is still around.
https://github.com/pigeonhands/rust-arch/blob/8458c22a161cb8996659fd124de49972f8164712/alpm-rs/src/macros.rs#L18-L38
Description
StrcCtx
deallocate a memory region that it doesn't own whenStrcCtx
is created without usingStrcCtx::new
. This can introduce memory safety issues such as double-free and use-after-free to client programs.Demonstration
Crate: alpm-rs Version: 0.1.24 OS: Ubuntu 18.04.5 LTS Rust: rustc 1.45.2 (d3fb005a3 2020-07-31)
Output:
Return Code: 101