Skip to content

JSON can't parse a simple data #4383

@jakitliang

Description

@jakitliang

Description

Example data (dump from LLDB):

(lldb) p data
(char *) $3 = 0x000001ffa6a5a5d0 "{\n\t"version": [2, 6, 0, 109],\n\t"path": "C:\\Users\\Jakit\\Documents\\data\\data1"\n}\n"

Reproduction steps

Just parse the JSON then crashing

Crash position:
截屏2024-05-29 17 55 32

截屏2024-05-29 17 57 49 截屏2024-05-29 17 58 00

Expected vs. actual results

no crashing

Minimal code example

{
	"version": [2, 6, 0, 109],
	"path": "C:\\Users\\Jakit\\Documents\\data\\data"
}

Error messages

Critical error detected c0000374

Compiler and operating system

MSVC 2019

Library version

main\origin

Validation

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions