Patch #3600941: Missing field copy in Json::Value::iterator causing infinite loop when using experimental internal map (#define JSON_VALUE_USE_INTERNAL_MAP) (contributed by Ming-Lin Kao).

This commit is contained in:
Baptiste Lepilleur 2013-04-12 13:26:23 +00:00
parent 3f124172ce
commit f92ace5e82
2 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,9 @@ New in SVN
- Patch #3539678: Copy constructor does not initialize allocated_ for stringValue - Patch #3539678: Copy constructor does not initialize allocated_ for stringValue
(contributed by rmongia). (contributed by rmongia).
- Patch #3600941: Missing field copy in Json::Value::iterator causing infinite
loop when using experimental internal map (#define JSON_VALUE_USE_INTERNAL_MAP)
(contributed by Ming-Lin Kao).
New in JsonCpp 0.6.0: New in JsonCpp 0.6.0:

View File

@ -149,6 +149,7 @@ ValueIteratorBase::copy( const SelfType &other )
{ {
#ifndef JSON_VALUE_USE_INTERNAL_MAP #ifndef JSON_VALUE_USE_INTERNAL_MAP
current_ = other.current_; current_ = other.current_;
isNull_ = other.isNull_;
#else #else
if ( isArray_ ) if ( isArray_ )
iterator_.array_ = other.iterator_.array_; iterator_.array_ = other.iterator_.array_;