Tracker: Bugs

5 crash in TestSharedString.cpp - ID: 3542608
Last Update: Attachment added ( Sean S )

libjson 7.6.1, MSVC v16 (VS2010). Crash in testapp at TestSharedString.cpp line 107 constructing json_shared_string(begin, end).

The problem comes from the definition of json_shared_string::iterator and json_shared_string::const_iterator, the copy constructors for these two classes are not initializing the `parent' member. After fixing that the test passes without crashing. It might be even better to not explicitly define the copy constructor and just use the compiler-provided one.


Sean S ( Sean S ) - 2012-07-11 09:40:40 PDT

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
patch patch for JSONSharedString.h Download

Change ( 1 )

Field Old Value Date By
File Added 449054: patch 2012-07-16 08:06:28 PDT Sean S