Can be reproduced with any shared library on Windows that was built from an empty source file,
for example with the following .dll: example.dll.zip.
h.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXPORT_].VirtualAddress evaluates to 0 in such cases and thus real_offset becomes 0 which triggers the assertion below.
Can be reproduced with any shared library on Windows that was built from an empty source file, for example with the following
.dll
: example.dll.zip.h.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXPORT_].VirtualAddress
evaluates to 0 in such cases and thusreal_offset
becomes 0 which triggers the assertion below.https://github.com/boostorg/dll/blob/ab379539806956b4113050ebb978615a4f6a09f0/include/boost/dll/detail/pe_info.hpp#L217