by Peter_Sewell · 2y ago · 0 comments
struct buffer {
char *data;
size_t capacity;
size_t length;
}
the pointer 'data' will in CHERI have to be a valid capability, not just a virtual address, to permit access. It should normally have been instantiated with the correct bounds from the appropriate allocation, separately from the 'length' field, so the hardware will do the right check.No comments yet.