From 15d8fb4377322e67579e1ad9264bdcaac3c2eb0d Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Fri, 20 Dec 2024 00:21:11 +0300 Subject: [PATCH] Fix function names retrieval for particular section in PR created by clang-win --- include/boost/dll/detail/pe_info.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/boost/dll/detail/pe_info.hpp b/include/boost/dll/detail/pe_info.hpp index 18b50cf1..cb024f01 100644 --- a/include/boost/dll/detail/pe_info.hpp +++ b/include/boost/dll/detail/pe_info.hpp @@ -350,6 +350,9 @@ class pe_info { // getting ordinal fs.seekg(fixed_ordinals_addr + i * sizeof(ordinal)); read_raw(fs, ordinal); + if (ordinal >= exported_symbols) { // required for clang-win created PE + continue; + } // getting function addr fs.seekg(fixed_functions_addr + ordinal * sizeof(ptr));