Skip to content

Commit

Permalink
Add a warning about memory leaks in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
amcaplan committed Feb 1, 2016
1 parent 85faba1 commit 33066f0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ PersistentOpenStruct: 625010.1 i/s - 4.96x slower
`DynamicClass` is still behind plain old Ruby classes, but it's the best out of
the pack when it comes to `OpenStruct` and friends.

## WARNING!

This class should only be used to consume trusted APIs, or for similar purposes.
It should never be used to take in user input. This will open you up to a memory
leak DoS attack, since every new key becomes a new method defined on the class,
and is never erased.

## Installation

Add this line to your application's Gemfile:
Expand Down

0 comments on commit 33066f0

Please sign in to comment.