Skip to content

Remove any .unwrap() and panic!s #3

Open
@Jengamon

Description

@Jengamon

For example:

ffi::CString::new(string).unwrap_or_else(|_| panic!("Failed to convert source to C string for {}", module_name.to_string_lossy())).into_raw()

unwrapping or panicking in runtime.rs is UB as it crosses the C threshold. Remove these and replace with some kind of defaulting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions