detect NOP jumps, and trivial endless loop

This commit is contained in:
Rudolf Polzer 2012-05-30 14:58:10 +02:00
parent 8d21ebe253
commit c934db33bd

View File

@ -741,6 +741,13 @@ sub find_uninitialized_locals($$)
$write->($ofs+1);
$write->($ofs+2);
}
elsif($type eq 'ipoffset')
{
push @{$warned{$ip}{$_}}, "Endless loop"
if $ofs == 0;
push @{$warned{$ip}{$_}}, "No-operation jump"
if $ofs == 1;
}
}
if($c->{iscall})
{