mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-15 23:20:05 +02:00
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:
3
NEWS.txt
3
NEWS.txt
@@ -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:
|
||||||
|
@@ -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_;
|
||||||
|
Reference in New Issue
Block a user