3 ms·
That's a "problem" with the erlang vm actually, you have a limit number of allowed atoms (I think 2 million). When receiving user input, you should not let user
by napsterbr 9y ago
That's a "problem" with the erlang vm actually, you have a limit number of allowed atoms (I think 2 million). When receiving user input, you should not let users create arbitrary atoms because this would allow a atom exhaustion attack.
In these cases, what we do is assing a "string" map, something like :input["arbitrary_key"]
ETA: default is 1 million atoms actually. It can be increased but it's usually a smell/something to be investigated.
- jetti 9y agoGood point that this isn't Elixir specific but any language that runs on the BEAM.