Add a way to limit deserialized string lengths
and use it for most strings being serialized.
This commit is contained in:
@@ -858,7 +858,7 @@ public:
|
||||
READWRITE(vchPrivKey);
|
||||
READWRITE(nTimeCreated);
|
||||
READWRITE(nTimeExpires);
|
||||
READWRITE(strComment);
|
||||
READWRITE(LIMITED_STRING(strComment, 65536));
|
||||
)
|
||||
};
|
||||
|
||||
@@ -933,7 +933,7 @@ public:
|
||||
// Note: strAccount is serialized as part of the key, not here.
|
||||
READWRITE(nCreditDebit);
|
||||
READWRITE(nTime);
|
||||
READWRITE(strOtherAccount);
|
||||
READWRITE(LIMITED_STRING(strOtherAccount, 65536));
|
||||
|
||||
if (!fRead)
|
||||
{
|
||||
@@ -949,7 +949,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
READWRITE(strComment);
|
||||
READWRITE(LIMITED_STRING(strComment, 65536));
|
||||
|
||||
size_t nSepPos = strComment.find("\0", 0, 1);
|
||||
if (fRead)
|
||||
|
||||
Reference in New Issue
Block a user