From 0298e142fbf8bd27e07d992020621f9742a834e7 Mon Sep 17 00:00:00 2001 From: pali Date: Sat, 6 Jun 2026 00:51:29 +0200 Subject: [PATCH 1/2] Fix recognizing ordinal-only imported functions in PE32 binaries with zero type This change fixes the commit a430968fbc1a ("Recognize PE32 binaries with zero type of optional header") as there is one extra place where check for MAGIC_PE32_0 is missing. For example fixes recognizing of ordinal imports in Win32s LZ32.DLL library. --- lib/libpe/include/libpe/pe.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libpe/include/libpe/pe.h b/lib/libpe/include/libpe/pe.h index 7b366a4..ed0447c 100644 --- a/lib/libpe/include/libpe/pe.h +++ b/lib/libpe/include/libpe/pe.h @@ -58,7 +58,7 @@ extern "C" { static const uint32_t IMAGE_ORDINAL_FLAG32 = 0x80000000; static const uint64_t IMAGE_ORDINAL_FLAG64 = 0x8000000000000000; #define IMAGE_ORDINAL_MASK(ctx) \ - ((ctx->pe.optional_hdr.type == MAGIC_PE32) ? \ + ((ctx->pe.optional_hdr.type == MAGIC_PE32_0 || ctx->pe.optional_hdr.type == MAGIC_PE32) ? \ IMAGE_ORDINAL_FLAG32 : IMAGE_ORDINAL_FLAG64) #define SIGNATURE_PE 0x00004550 // PE\0\0 in little-endian From fb200a008b8abcf2da14693146029e6b2368bb77 Mon Sep 17 00:00:00 2001 From: Ophelia Beatrice de Sica Date: Wed, 8 Jul 2026 19:05:25 +0200 Subject: [PATCH 2/2] Update OSX github build to use newer version of OpenSSL --- .github/workflows/multi-os-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/multi-os-build.yml b/.github/workflows/multi-os-build.yml index 0acbe95..b32dfa8 100644 --- a/.github/workflows/multi-os-build.yml +++ b/.github/workflows/multi-os-build.yml @@ -41,7 +41,7 @@ jobs: submodules: 'true' - name: Compile - run: CFLAGS="-I$(brew --prefix openssl@1.1)/include/" LDFLAGS="-L$(brew --prefix openssl@1.1)/lib/" make + run: CFLAGS="-I$(brew --prefix openssl@3)/include/" LDFLAGS="-L$(brew --prefix openssl@3)/lib/" make build-win64: