Project

General

Profile

Actions

Feature #7839

closed

Symbol.freeze_symbols

Added by tenderlovemaking (Aaron Patterson) about 11 years ago. Updated about 10 years ago.

Status:
Rejected
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 1 (0 open1 closed)

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0