Fix 'array index out of bounds' error in fn next().#279
Fix 'array index out of bounds' error in fn next().#279
Conversation
…utside of the rust code
- Create BootInfoHeader struct. - Refactor BootInfoExtra struct to use the header instead of an id and 'content_with_header'. This allows the chunk to be referenced individually. - BootInfoHeader.id() returns type BootInfoExtraId - BootInfoHeader.id_raw() returns type sys::seL4_BootInfoID::Type
|
Thanks for identifying this bug. I'd like to avoid unsafe except where absolutely necessary. The reason for not using the But I'm all for making the In the meantime, do you have a fix for the bug without using Also, thanks for adding more enum variants to |
I've rewritten the Iterator impl to be a bit easier on the eyes and also prevent out of bounds access panics whilst iterating.
I do suspect there is a way to implement this without using unsafe code, but I haven't gotten to it yet.
Also: