From fcad0c5fdb145d30797a1fead4bd2bf4e0a8bfce Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 14:39:32 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=20Fix=20atom=20exhaustion=20vulner?= =?UTF-8?q?ability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: zcesur <17045339+zcesur@users.noreply.github.com> --- lib/algora/activities/activities.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/algora/activities/activities.ex b/lib/algora/activities/activities.ex index 69ee56c6a..36423d76e 100644 --- a/lib/algora/activities/activities.ex +++ b/lib/algora/activities/activities.ex @@ -59,13 +59,13 @@ defmodule Algora.Activities do @tables Map.keys(@schema_from_table) @user_attributes Map.keys(@table_from_user_relation) - def schema_from_table(name) when is_binary(name), do: name |> String.to_atom() |> schema_from_table() + def schema_from_table(name) when is_binary(name), do: name |> String.to_existing_atom() |> schema_from_table() def schema_from_table(name) when is_atom(name) do Map.fetch!(@schema_from_table, name) end - def table_from_schema(name) when is_binary(name), do: name |> String.to_atom() |> table_from_schema() + def table_from_schema(name) when is_binary(name), do: name |> String.to_existing_atom() |> table_from_schema() def table_from_schema(name) when is_atom(name) do Map.fetch!(@table_from_schema, name)