From c56ad52b1828743a72302e5a6c5503dcaf35dbd3 Mon Sep 17 00:00:00 2001 From: Julian Stecklina Date: Sun, 15 Oct 2023 15:40:53 +0200 Subject: [PATCH] stub: pin to current goblin version goblin 0.7.1 introduces certification support for PE files. This seems to be broken, because we get: Parsing PE failed Malformed entity: Unable to extract certificate. Probably cert_size:1599360838 is malformed! from goblin when trying to parse our PE file in memory. See #237 for context. --- rust/uefi/linux-bootloader/Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/uefi/linux-bootloader/Cargo.toml b/rust/uefi/linux-bootloader/Cargo.toml index 9f72c82e..42a02f51 100644 --- a/rust/uefi/linux-bootloader/Cargo.toml +++ b/rust/uefi/linux-bootloader/Cargo.toml @@ -13,7 +13,8 @@ rust-version = "1.68" [dependencies] uefi = { version = "0.25.0", default-features = false, features = [ "alloc", "global_allocator" ] } -goblin = { version = "0.6.1", default-features = false, features = [ "pe64", "alloc" ]} +# Update blocked by #237 +goblin = { version = "=0.6.1", default-features = false, features = [ "pe64", "alloc" ]} bitflags = "2.3.3" # Even in debug builds, we don't enable the debug logs, because they generate a lot of spam from goblin.