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));