Menu

#44 Crash on specific partial Json string.

0.5.0
closed-invalid
nobody
Reader (16)
5
2015-03-06
2012-02-29
Aaron
No

When the following partial Json string is passed to the reader for parsing, this causes a crash. We are running on win32, compiling the library for mingw.

Here is a code snippet where we are using the reader:
Json::Reader reader;
Json::Value read_value;
bool success = reader.parse("0, \"test_string\", 2, [ 2006, 1, 1, 12, 28, 57 ] ] }\n", read_value);

Configuring the reader to use strict_mode 'Json::Reader reader(Json::Features::strictMode());' instead works fine.

Discussion

  • i7gabber

    i7gabber - 2012-05-31

    Hi,

    I tried to reproduce the problem, but for me it works fine.

    could you provide more information?
    - source version
    - mingw version
    - gcc compile flags and parameters
    - maybe a test project

    br g

     
  • Christopher Dunn

    • status: open --> closed-invalid
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.