- 
                Notifications
    
You must be signed in to change notification settings  - Fork 23
 
Open
Description
Except the issues mentioned at #37,
At src/common.rs:76
    pub fn check_len(&self, n: usize) -> bool {
        unsafe { self.ptr.add(n) <= self.end }
    }The index does have appropriate check and passed into pointer's add, which violates the safety requirements mentioned in document
Suggestion:
- use self.end minus self.ptr frist
 
Metadata
Metadata
Assignees
Labels
No labels