good first issueruntime
Métricas do repositório
- Stars
- (12.651 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
Problem
Missing a test that verifies the AccountInfo's data length is correctly enforced to exist in RW data. The length is translated correctly but we have no way to ensure that it will continue to do so over time.
Proposed Solution
AccountInfo's data is expressed as an Rc<RefCell<&mut [u8]>>, need a way to construct this where the slice's len is in RO memory (like the RO segment of a BPF ELF) while the data pointer points to RW memory. This is not a use case that can be activated without malicious intent.