Ignore out-of-symbol jumps.

This commit is contained in:
Bartosz Taudul 2020-04-04 03:13:21 +02:00
parent f2b044438d
commit bda5c1d13e

View File

@ -177,7 +177,7 @@ bool SourceView::Disassemble( uint64_t symAddr, const Worker& worker )
assert( false );
break;
}
if( jumpAddr != 0 )
if( jumpAddr >= symAddr && jumpAddr < symAddr + len )
{
const auto min = std::min( jumpAddr, op.address );
const auto max = std::max( jumpAddr, op.address );