TrenchBoot / landing-zone

An open source implementation of an AMD-V Secure Loader.
GNU General Public License v2.0
23 stars 7 forks source link

Fix dev_load_map() #12

Closed andyhhp closed 5 years ago

andyhhp commented 5 years ago

Clang complains:

dev.c:74:2: warning: variable 'dev_map' is uninitialized when used here [-Wuninitialized] dev_map &= !DEV_MAP_V0_MASK; ^~~ 1 warning generated.

On closer inspection, there are several other serious errors:

Rewrite the function entirely, using the comments as guidance.

Signed-off-by: Andrew Cooper andrew.cooper3@citrix.com

dpsmith commented 5 years ago

I have RB and TB this PR. Please update commit signoff and will be merged.