- When copying into a fixed buffer, bounds checking should occur.
PR: bin/31673
This commit is contained in:
parent
487d13c0e7
commit
3846fd9190
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86681
@ -73,9 +73,10 @@ tmp()
|
||||
}
|
||||
|
||||
if (envtmp)
|
||||
(void)sprintf(path, "%s/%s", envtmp, _NAME_ARTMP);
|
||||
(void)snprintf(path, sizeof(path), "%s/%s", envtmp,
|
||||
_NAME_ARTMP);
|
||||
else
|
||||
strcpy(path, _PATH_ARTMP);
|
||||
strlcpy(path, _PATH_ARTMP, sizeof(path));
|
||||
|
||||
sigfillset(&set);
|
||||
(void)sigprocmask(SIG_BLOCK, &set, &oset);
|
||||
|
Loading…
Reference in New Issue
Block a user