diff --git a/irdb-libs/ir_builders/fill_in_indtargs.cpp b/irdb-libs/ir_builders/fill_in_indtargs.cpp index 5187bbca0cfbf3a6418da7075e0d10171d235ced..be4018949915f0190c170bf51427f98d64d1fb50 100644 --- a/irdb-libs/ir_builders/fill_in_indtargs.cpp +++ b/irdb-libs/ir_builders/fill_in_indtargs.cpp @@ -2676,6 +2676,12 @@ V2: // cannot find a bounds check on the table size. // auto table_size = 512U; + if(getenv("MAX_JUMP_TABLE_CLAMP_SIZE")){ + auto temp_table_size = atoi(getenv("MAX_JUMP_TABLE_CLAMP_SIZE")); + if(temp_table_size > 0){ + table_size = temp_table_size; + } + } auto found_table_size = false; auto I1 = static_cast<Instruction_t *>(nullptr);