mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
ci: fix clang sanitize errors for json_decode
This commit is contained in:
parent
11ccf06441
commit
2ecfd1b351
3 changed files with 27 additions and 19 deletions
5
thirdparty/cJSON/cJSON.c
vendored
5
thirdparty/cJSON/cJSON.c
vendored
|
@ -74,6 +74,11 @@ typedef struct {
|
|||
} error;
|
||||
static error global_error = { NULL, 0 };
|
||||
|
||||
CJSON_PUBLIC(size_t) cJSON_GetErrorPos(void)
|
||||
{
|
||||
return global_error.position;
|
||||
}
|
||||
|
||||
CJSON_PUBLIC(const char *) cJSON_GetErrorPtr(void)
|
||||
{
|
||||
return (const char*) (global_error.json + global_error.position);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue