fix infinite loop

This commit is contained in:
xensik 2021-11-16 17:17:47 +01:00
parent 2dcde964e1
commit 3c9441877f
9 changed files with 18 additions and 0 deletions

View File

@ -2376,6 +2376,8 @@ void decompiler::decompile_loop(const gsc::stmt_list_ptr& block, std::uint32_t s
{
if(start - index > 0)
index++;
else
break;
}
if(block->stmts.at(start - index).as_node->type == gsc::node_t::stmt_assign)

View File

@ -2376,6 +2376,8 @@ void decompiler::decompile_loop(const gsc::stmt_list_ptr& block, std::uint32_t s
{
if(start - index > 0)
index++;
else
break;
}
if(block->stmts.at(start - index).as_node->type == gsc::node_t::stmt_assign)

View File

@ -2483,6 +2483,8 @@ void decompiler::decompile_loop(const gsc::stmt_list_ptr& block, std::uint32_t s
{
if(start - index > 0)
index++;
else
break;
}
if(block->stmts.at(start - index).as_node->type == gsc::node_t::stmt_assign)

View File

@ -2370,6 +2370,8 @@ void decompiler::decompile_loop(const gsc::stmt_list_ptr& block, std::uint32_t s
{
if(start - index > 0)
index++;
else
break;
}
if(block->stmts.at(start - index).as_node->type == gsc::node_t::stmt_assign)

View File

@ -2370,6 +2370,8 @@ void decompiler::decompile_loop(const gsc::stmt_list_ptr& block, std::uint32_t s
{
if(start - index > 0)
index++;
else
break;
}
if(block->stmts.at(start - index).as_node->type == gsc::node_t::stmt_assign)

View File

@ -2426,6 +2426,8 @@ void decompiler::decompile_loop(const gsc::stmt_list_ptr& block, std::uint32_t s
{
if(start - index > 0)
index++;
else
break;
}
if(block->stmts.at(start - index).as_node->type == gsc::node_t::stmt_assign)

View File

@ -2376,6 +2376,8 @@ void decompiler::decompile_loop(const gsc::stmt_list_ptr& block, std::uint32_t s
{
if(start - index > 0)
index++;
else
break;
}
if(block->stmts.at(start - index).as_node->type == gsc::node_t::stmt_assign)

View File

@ -2385,6 +2385,8 @@ void decompiler::decompile_loop(const gsc::stmt_list_ptr& block, std::uint32_t s
{
if(start - index > 0)
index++;
else
break;
}
if(block->stmts.at(start - index).as_node->type == gsc::node_t::stmt_assign)

View File

@ -2426,6 +2426,8 @@ void decompiler::decompile_loop(const gsc::stmt_list_ptr& block, std::uint32_t s
{
if(start - index > 0)
index++;
else
break;
}
if(block->stmts.at(start - index).as_node->type == gsc::node_t::stmt_assign)