Skip to content

Commit f92ace5

Browse files
committed
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).
1 parent 3f12417 commit f92ace5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ New in SVN
3535
- Patch #3539678: Copy constructor does not initialize allocated_ for stringValue
3636
(contributed by rmongia).
3737

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

3942

4043
New in JsonCpp 0.6.0:

src/lib_json/json_valueiterator.inl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ ValueIteratorBase::copy( const SelfType &other )
149149
{
150150
#ifndef JSON_VALUE_USE_INTERNAL_MAP
151151
current_ = other.current_;
152+
isNull_ = other.isNull_;
152153
#else
153154
if ( isArray_ )
154155
iterator_.array_ = other.iterator_.array_;

0 commit comments

Comments
 (0)