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
Unsafe function usage
High Risk to use vsprintf(). It must be replaced by vsnprintf.
pull/789/head
Eibz-Chan
GitHub
3 years ago
parent
15ddc4a504
commit
c8b7e11441
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
vasprintf_compat.h
+ 1
- 1
vasprintf_compat.h
View File
@@ -51,7 +51,7 @@ static int vasprintf(char **buf, const char *fmt, va_list ap)
return -1;
return -1;
}
}
if ((chars = vsprintf(b, fmt, ap)) < 0)
if ((chars = vs
n
printf(b
, ((size_t)chars + 1)
, fmt, ap)) < 0)
{
{
free(b);
free(b);
}
}
Write
Preview
Loading…
Cancel
Save