Skip to content

Commit

Permalink
Patch #3600941: Missing field copy in Json::Value::iterator causing i…
Browse files Browse the repository at this point in the history
…nfinite loop when using experimental internal map (#define JSON_VALUE_USE_INTERNAL_MAP) (contributed by Ming-Lin Kao).
  • Loading branch information
blep committed Apr 12, 2013
1 parent 3f12417 commit f92ace5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NEWS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ New in SVN
- Patch #3539678: Copy constructor does not initialize allocated_ for stringValue
(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:
Expand Down
1 change: 1 addition & 0 deletions src/lib_json/json_valueiterator.inl
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ ValueIteratorBase::copy( const SelfType &other )
{
#ifndef JSON_VALUE_USE_INTERNAL_MAP
current_ = other.current_;
isNull_ = other.isNull_;
#else
if ( isArray_ )
iterator_.array_ = other.iterator_.array_;
Expand Down

0 comments on commit f92ace5

Please sign in to comment.