hyperlight-dev / hyperlight-dev/hyperlight
Memory leak in C guests
- Vorherrschende Sprache
- Rust
- Sterne
- 4.7k
- Forks
- 208
- Ø Merge
- 1 T. 7 Std.
- Gemergte PRs (30 T.)
- 47
Beschreibung
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_
Beitragsleitfaden
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- c, rust
- Bereich
- operating-systems
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 48/100