diff options
author | John Christopher Anderson <jchris@apache.org> | 2010-07-19 22:59:53 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2010-07-19 22:59:53 +0000 |
commit | 2f25ac7fb8fc46a45ec0e3e746a6104becff6ce6 (patch) | |
tree | 3bc0b7cd2a0aba0341f1771f250a75e456b1370f /src/couchdb/couch_doc.erl | |
parent | 74161c6207ea150b79dc16a4e84a432a8d8af44e (diff) |
remove unguarded atom creation to prevent DOS attacks. closes COUCHDB-829
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@965673 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_doc.erl')
-rw-r--r-- | src/couchdb/couch_doc.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_doc.erl b/src/couchdb/couch_doc.erl index a6d23a91..d15cd7de 100644 --- a/src/couchdb/couch_doc.erl +++ b/src/couchdb/couch_doc.erl @@ -267,7 +267,7 @@ att_encoding_info(BinProps) -> {identity, DiskLen}; Enc -> EncodedLen = couch_util:get_value(<<"encoded_length">>, BinProps, DiskLen), - {list_to_atom(?b2l(Enc)), EncodedLen} + {list_to_existing_atom(?b2l(Enc)), EncodedLen} end. to_doc_info(FullDocInfo) -> |