mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-02-08 22:47:33 +00:00
detect NOP jumps, and trivial endless loop
This commit is contained in:
parent
8d21ebe253
commit
c934db33bd
@ -741,6 +741,13 @@ sub find_uninitialized_locals($$)
|
|||||||
$write->($ofs+1);
|
$write->($ofs+1);
|
||||||
$write->($ofs+2);
|
$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})
|
if($c->{iscall})
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user