This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
jdk-build-libs
/
json-c
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
11
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
Merge pull request
#11
from deweerdt/master
json_tokener_parse(): avoid possible NULL deref
tags/json-c-0.10-20120530
Eric Haszlakiewicz
13 years ago
parent
393085a4ba
db050901fa
commit
faa535386a
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
json_tokener.c
+ 2
- 0
json_tokener.c
View File
@@ -113,6 +113,8 @@ struct json_object* json_tokener_parse(const char *str)
struct json_object* obj;
tok = json_tokener_new();
if (!tok)
return NULL;
obj = json_tokener_parse_ex(tok, str, -1);
if(tok->err != json_tokener_success)
obj = NULL;
Write
Preview
Loading…
Cancel
Save