Skip to content

Feedback on Detected CODE_INJECTION #525

Open
@zyue110026

Description

@zyue110026

Greetings,

We are some security researchers who have built a scanner to detect known security weaknesses. For your repository, we have found instances of CODE_INJECTION in the following locations:

Location-1:

Base.unsafe_convert(::Type{Ptr{Cvoid}}, s::Status) = s.ptr

Location-2:
Base.unsafe_convert(::Type{Ptr{Cvoid}}, o::SessionOptions) = o.ptr

Location-3:
Base.unsafe_convert(::Type{Ptr{Cvoid}}, s::Session) = s.ptr

Location-4:
Base.unsafe_convert(::Type{Ptr{Cvoid}}, devices::DeviceList) = devices.ptr

Location-5:
array = unsafe_wrap(Array, struct_.data, (struct_.len,))

Location-6:
Base.unsafe_convert(::Type{Ptr{Cvoid}}, t::RawTensor) = t.ptr

Location-7:
copy(unsafe_wrap(Array, dst[], Int(dst_len[])))

Location-8:
array = unsafe_wrap(Array, convert(Ptr{UInt8}, data), sizeof(t))

Location-9:
convert_major_order(unsafe_wrap(Array, data, size(t)|>reverse))

Location-10:
copy(unsafe_wrap(Array, data, size(t)))

Please give us feedback. Do you think these are valid instances on security weaknesses? Will you fix them?

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