Hi, I'm conducting a research on Rust security and found a bug in this crate:
The raw pointer emit is not freed after use, and utils::to_str function also does not take ownership of this pointer, which may cause a memory leak.
|
let emit = unsafe { ucl_object_emit(obj.as_ref().obj, Into::into(*self)) }; |
|
utils::to_str(emit) |
Hi, I'm conducting a research on Rust security and found a bug in this crate:
The raw pointer
emitis not freed after use, andutils::to_strfunction also does not take ownership of this pointer, which may cause a memory leak.libucl-rs/libucl/src/object/emitter.rs
Lines 18 to 19 in 30360ec