Skip to content

Commit bb77b56

Browse files
committed
fixed DarthTon#135
1 parent 1521cb8 commit bb77b56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/BlackBone/PE/PEImage.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,8 @@ int PEImage::GetTLSCallbacks( module_t targetBase, std::vector<ptr_t>& result )
461461
return 0;
462462

463463
uint64_t offset = _is64 ? TLS64( pTls )->AddressOfCallBacks : TLS32( pTls )->AddressOfCallBacks;
464+
if (offset == 0)
465+
return 0;
464466

465467
// Not at base
466468
if (imageBase() != reinterpret_cast<module_t>(_pFileBase))

0 commit comments

Comments
 (0)