diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-02-26 19:45:25 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-02-26 19:45:25 +0900 |
| commit | ad11d746f09977ce151ef6f49dd971f4af451d44 (patch) | |
| tree | 77c171847cbfb928daeb22fa5a3eab1bb483a1ca /src/XmlRpcRequestParserStateImpl.cc | |
| parent | 7a1cba2c596dc6330fd30b6249b24a894b5bea62 (diff) | |
Only accepts 32 bit integer values from int and i4 elements in XML-RPC.
Fixed overflow in AbstractPaginationRpcMethod::getPaginationRange().
Fixes bug#3494165
Diffstat (limited to 'src/XmlRpcRequestParserStateImpl.cc')
| -rw-r--r-- | src/XmlRpcRequestParserStateImpl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/XmlRpcRequestParserStateImpl.cc b/src/XmlRpcRequestParserStateImpl.cc index 947a378a..4f71ae13 100644 --- a/src/XmlRpcRequestParserStateImpl.cc +++ b/src/XmlRpcRequestParserStateImpl.cc @@ -200,8 +200,8 @@ void IntXmlRpcRequestParserState::endElement const char* name, const std::string& characters) { - int64_t value; - if(util::parseLLIntNoThrow(value, characters)) { + int32_t value; + if(util::parseIntNoThrow(value, characters)) { psm->setCurrentFrameValue(Integer::g(value)); } else { // nothing to do here: We just leave current frame value to null. |
