Skip to content

Commit 7f1234b

Browse files
hyperpolymathclaude
andcommitted
fix: replace String.to_atom with String.to_existing_atom
Prevents BEAM atom table exhaustion from unbounded String.to_atom calls. Detected by panic-attack assail batch scan (2026-03-30). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 610d632 commit 7f1234b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • elixir-mcp/lib/feedback_a_tron

elixir-mcp/lib/feedback_a_tron/cli.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ defmodule FeedbackATron.CLI do
112112

113113
defp parse_flags(["--platform", platform | rest], acc) do
114114
platforms = Keyword.get(acc, :platforms, [])
115-
platform_atom = String.to_atom(platform)
115+
platform_atom = String.to_existing_atom(platform)
116116
parse_flags(rest, Keyword.put(acc, :platforms, [platform_atom | platforms]))
117117
end
118118

0 commit comments

Comments
 (0)