mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Detect malformed data earlier during deserialization (RIPD-1695):
When deserializing specially crafted data, the code would ignore certain types of errors. Reserializing objects created from such data results in failures or generates a different serialization, which is not ideal. Also addresses: RIPD-1677, RIPD-1682, RIPD-1686 and RIPD-1689. Acknowledgements: Ripple thanks Guido Vranken for responsibly disclosing these issues. Bug Bounties and Responsible Disclosures: We welcome reviews of the rippled code and urge researchers to responsibly disclose any issues that they may find. For more on Ripple's Bug Bounty program, please visit: https://ripple.com/bug-bounty
This commit is contained in:
@@ -538,16 +538,6 @@ private:
|
||||
getSortedFields (
|
||||
STObject const& objToSort, WhichFields whichFields);
|
||||
|
||||
// Two different ways to compare STObjects.
|
||||
//
|
||||
// This one works only if the SOTemplates are the same. Presumably it
|
||||
// runs faster since there's no sorting.
|
||||
static bool equivalentSTObjectSameTemplate (
|
||||
STObject const& obj1, STObject const& obj2);
|
||||
|
||||
// This way of comparing STObjects always works, but is slower.
|
||||
static bool equivalentSTObject (STObject const& obj1, STObject const& obj2);
|
||||
|
||||
// Implementation for getting (most) fields that return by value.
|
||||
//
|
||||
// The remove_cv and remove_reference are necessitated by the STBitString
|
||||
|
||||
Reference in New Issue
Block a user