Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
356: RTL: RAII buffers r=stlankes a=mkroening This addresses #348. I replaced the manual pointer arithmetic with boxed slices which contain bounds checks (no unsafe code accessing the buffers in the driver now). Now reading outside the buffers through manipulated lengths should be impossible. It is still possible to access the other network packages in the buffers. I am not sure about the architecture of the network driver and where to get the corresponding lengths from, which might or might not require a bigger rework. `@lrapp-x41-pub,` would you consider this enough for closing #348 or would that require to properly avoid accessing all of the buffer? While working on this I found #355. Co-authored-by: Martin Kröning <mkroening@posteo.net>
- Loading branch information
Showing
1 changed file
with
58 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters