hyperlight-dev / hyperlight-dev/hyperlight
Memory leak in C guests
- Lingua principale
- Rust
- Stelle
- 4.7k
- Fork
- 208
- Merge medio
- 1g 7h
- PR unite (30g)
- 47
Descrizione
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_
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- c, rust
- Ambito
- operating-systems
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 48/100