diff options
author | Kelly Washington <kelly@lindenlab.com> | 2012-04-25 11:26:54 -0700 |
---|---|---|
committer | Kelly Washington <kelly@lindenlab.com> | 2012-04-25 11:26:54 -0700 |
commit | 6d3be57d334f02f4781dcaede9746976bd3643a4 (patch) | |
tree | c6cfd48813762cf55f67459e8b7797c86ba68475 /indra/llmessage/llsdmessagereader.cpp | |
parent | 4472354b5454f758c467bb23190d1a84cf61d909 (diff) |
SEC-995 FIX viewer is easily spammed to death by chat
removed a couple more unnecessary string copies from unfortunate LLSD behavior.
reviewed with simon, post review from Richard.
Diffstat (limited to 'indra/llmessage/llsdmessagereader.cpp')
-rw-r--r-- | indra/llmessage/llsdmessagereader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llmessage/llsdmessagereader.cpp b/indra/llmessage/llsdmessagereader.cpp index 3d8ca2ad9f..a6fccd2a56 100644 --- a/indra/llmessage/llsdmessagereader.cpp +++ b/indra/llmessage/llsdmessagereader.cpp @@ -276,7 +276,7 @@ S32 getElementSize(const LLSD& llsd) case LLSD::TypeReal: return sizeof(F64); case LLSD::TypeString: - return llsd.asString().size(); + return llsd.size(); case LLSD::TypeUUID: return sizeof(LLUUID); case LLSD::TypeDate: |