- When copying into a fixed buffer, bounds checking should occur.
PR: bin/31673
This commit is contained in:
parent
487d13c0e7
commit
3846fd9190
@ -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…
x
Reference in New Issue
Block a user