hyperlight-dev / hyperlight-dev/hyperlight

Memory leak in C guests

Đang mở
#1,798 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
lifecycle/needs-review
Ngôn ngữ chính
Rust
Star
4.7k
Fork
208
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
47

Mô tả

I think copilot comments about leaks are technically correct, although they are not introduced by this PR. This code has been moved so they appear as added. I would prefer fixing it in a separate PR: expose paired `dealloc` function so that c users don't use `free()` for rust allocated content.

_Originally posted by @andreiltd in https://github.com/hyperlight-dev/hyperlight/issues/1792#issuecomment-5542202312_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

The issue identifies the C guest interface and Rust-allocated content as the starting area, but names no files or tests. Trace where C callers currently use free() and where the corresponding Rust allocation is exposed; done means a paired dealloc function is available to C users and its behavior is covered by tests.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
c, rust
Lĩnh vực
operating-systems
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.