rust-vmm / linux-loader

Linux kernel loader
Apache License 2.0
181 stars 55 forks source link

[tests]: Move values of setup_header on stack #140

Open AlexandruCihodaru opened 1 year ago

AlexandruCihodaru commented 1 year ago

Summary of the PR

Calling read_unaligned requires an unsafe block. However it is safe to move the value of the required fields on the stack.

Requirements

Before submitting your PR, please make sure you addressed the following requirements:

andreeaflorescu commented 1 year ago

@AlexandruCihodaru can you fix the style problem?