Fix the bug Andrey reported. A reference into an array can become invalid if

the array changes size. This happened in the txn metadata code when we had
to thread while handling a node.
This commit is contained in:
JoelKatz
2012-10-20 12:52:25 -07:00
parent 7b8e445456
commit 4b2b75b367
3 changed files with 49 additions and 20 deletions

View File

@@ -39,7 +39,9 @@ public:
uint32 getLgrSeq() { return mLedger; }
bool isNodeAffected(const uint256&) const;
STObject& getAffectedNode(const uint256&, SField::ref type, bool overrideType);
void setAffectedNode(const uint256&, SField::ref type);
STObject& getAffectedNode(const uint256&, SField::ref type);
STObject& getAffectedNode(const uint256&);
const STObject& peekAffectedNode(const uint256&) const;
Json::Value getJson(int p) const { return getAsObject().getJson(p); }