From 8b0ac47c050aa0d5c13c37b90c24b9ec3813f68d Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Thu, 14 Sep 2023 15:13:04 +0200 Subject: [PATCH] pe: Attribute certificate revisions are non-exhaustive Excerpt of https://learn.microsoft.com/en-us/windows/win32/debug/pe-format > The options for the WIN_CERTIFICATE wRevision member > include *(but are not limited to)* the following. Emphasis mine. --- src/pe/certificate_table.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pe/certificate_table.rs b/src/pe/certificate_table.rs index 353a6c70c..4f4430d99 100644 --- a/src/pe/certificate_table.rs +++ b/src/pe/certificate_table.rs @@ -9,6 +9,7 @@ use alloc::string::ToString; use alloc::vec::Vec; #[repr(u16)] +#[non_exhaustive] #[derive(Debug, PartialEq, Copy, Clone)] pub enum AttributeCertificateRevision { /// WIN_CERT_REVISION_1_0