julia
6097f13a - Libdl: In `Libdl.dlpath`, throw an ArgumentError if the handle is `C_NULL` (#61307)

Commit
69 days ago
Libdl: In `Libdl.dlpath`, throw an ArgumentError if the handle is `C_NULL` (#61307) 🤖 Discovered by Codex during an audit. Other functions in Libdl (such as `Libdl.dlsym`) already include a check for `C_NULL`. For example: https://github.com/JuliaLang/julia/blob/bc4bb7ae9a49808a929917d921e597906a9f30cb/base/libdl.jl#L59-L60 So this PR adds a `C_NULL` check to `Libdl.dlpath`, and (similar to `Libdl.dlsym`), throws an `ArgumentError`. 🤖 Co-authored-by: Codex. Co-authored-by: Codex <codex@openai.com>
Author
Parents
Loading