From dad5d51fb14a4f74e2f18bf04cee4c387b8214b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Wei=C3=9F?= <leon.weiss@rub.de> Date: Mon, 23 Oct 2023 08:18:18 +0200 Subject: [PATCH] Use an error detecting string conversion function --- irdb-libs/ir_builders/fill_in_indtargs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irdb-libs/ir_builders/fill_in_indtargs.cpp b/irdb-libs/ir_builders/fill_in_indtargs.cpp index 800d8bccc..67532fa10 100644 --- a/irdb-libs/ir_builders/fill_in_indtargs.cpp +++ b/irdb-libs/ir_builders/fill_in_indtargs.cpp @@ -2732,7 +2732,7 @@ V2: // auto table_size = 512U; if(getenv("MAX_JUMP_TABLE_CLAMP_SIZE")){ - auto temp_table_size = atoi(getenv("MAX_JUMP_TABLE_CLAMP_SIZE")); + auto temp_table_size = strtol(getenv("MAX_JUMP_TABLE_CLAMP_SIZE"), nullptr, 10); if(temp_table_size > 0){ table_size = temp_table_size; } -- GitLab