From 7069cb9c49dfff33303d14039c508cad128bbbaa Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Thu, 19 Dec 2024 22:27:58 +0300 Subject: [PATCH] more debugging --- include/boost/dll/detail/pe_info.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/boost/dll/detail/pe_info.hpp b/include/boost/dll/detail/pe_info.hpp index 0d153b1c..1db851b4 100644 --- a/include/boost/dll/detail/pe_info.hpp +++ b/include/boost/dll/detail/pe_info.hpp @@ -363,15 +363,20 @@ class pe_info { fs.seekg(fixed_functions_addr + ordinal * sizeof(ptr)); read_raw(fs, ptr); ptr = static_cast( get_file_offset(fs, ptr, h) ); - + + std::cerr << "!!!!!! LOOP exported_symbols " << ptr << " >= " << section_end_addr << " || " << ptr << " < " << section_begin_addr << "\n"; if (ptr >= section_end_addr || ptr < section_begin_addr) { + std::cerr << "!!!!!! LOOP exported_symbols true is " << ptr << " >= " << section_end_addr << " || " << ptr << " < " << section_begin_addr << "\n"; continue; } + std::cerr << "!!!!!! LOOP exported_symbols false is " << ptr << " >= " << section_end_addr << " || " << ptr << " < " << section_begin_addr << "\n"; fs.seekg(fixed_names_addr + i * sizeof(ptr)); read_raw(fs, ptr); + std::cerr << "!!!!!! LOOP exported_symbols read_raw " << ptr << "\n"; fs.seekg(get_file_offset(fs, ptr, h)); std::getline(fs, symbol_name, '\0'); + std::cerr << "!!!!!! LOOP exported_symbols symbol_name " << symbol_name << "\n"; ret.push_back(symbol_name); } std::cerr << "!!!!!! END LOOP exported_symbols\n";