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.
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.
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.