From a6f767f5a30cf0e680dcea27933b1c986a7db594 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20Trojnara?= <Michal.Trojnara@stunnel.org>
Date: Fri, 8 Sep 2023 14:09:53 +0200
Subject: [PATCH] Mark the result as not tainted

---
 pe.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pe.c b/pe.c
index 932d00a..df1a5ab 100644
--- a/pe.c
+++ b/pe.c
@@ -918,6 +918,7 @@ static u_char *pe_page_hash_calc(int *rphlen, FILE_FORMAT_CTX *ctx, int phtype)
 
     /* NumberOfSections indicates the size of the section table,
      * which immediately follows the headers, can be up to 65535 under Vista and later */
+    /* coverity[byte_swapping] */
     nsections = GET_UINT16_LE(ctx->options->indata + ctx->pe_ctx->header_size + 6);
     if (nsections == 0) {
         printf("Corrupted number of sections: 0x%08X\n", nsections);