Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bert и атомы #3

Closed
egobrain opened this issue May 6, 2013 · 1 comment
Closed

Bert и атомы #3

egobrain opened this issue May 6, 2013 · 1 comment

Comments

@egobrain
Copy link

egobrain commented May 6, 2013

Меня всегда с Bert интересовал один момент: как избежать передачи атомов в пакете? А точнее при декодировании пакета.
Дело в том что в n2o_websocket ты используешь binary_to_term(Info).
Если передать в Info атом, то он успешно декодируется и останется в памяти Erlang VM до перезагрузки.
Получается очень легко организовать DOS атаку по памяти.
Есть ли защита от этого или хотябы идеи как избежать ?

@5HT
Copy link
Member

5HT commented May 6, 2013

Good point. binary_to_term(Info,[safe]) do the job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants