Project

General

Profile

Actions

Feature #7839

closed

Symbol.freeze_symbols

Added by tenderlovemaking (Aaron Patterson) almost 9 years ago. Updated almost 8 years ago.

Status:
Rejected
Priority:
Normal
Target version:
[ruby-core:52165]

Description

Hi,

On team Rails, we're having troubles with Symbol creation DoS attacks. From our perspective, there should be a point in the application where symbols should stabilize, meaning we don't expect the number of symbols to increase while the process is running.

I'd like to be able to call a method like Symbol.freeze_symbols which would essentially freeze the symbol hash, such that if any new symbols are created, an exception would be thrown.

I can work on a patch for this, but I wanted to throw the idea out there.


Related issues

Related to Ruby master - Feature #7854: New method Symbol[string]Closednaruse (Yui NARUSE)02/15/2013Actions
Actions

Also available in: Atom PDF