toku-sa-n / ramen

A toy OS written in Rust supporting xHCI.
GNU General Public License v3.0
40 stars 5 forks source link

fix: wrong initrd reading implementation #988

Closed toku-sa-n closed 2 years ago

toku-sa-n commented 3 years ago

The current implementation of reading the initrd file does not consider its size. It is dangerous as a pointer may point to an address that is out of the range of the initrd. Fix this not to create an invalid value. Also, consider using the cpio_reader crate.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.