mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-27 21:44:34 +01:00
pax: prevent possible buffer overflow
Or at least quiet down some static analyzers about it. CID: 978835 MFC after: 1 week Obtained from: OpenBSD
This commit is contained in:
parent
c64a3eaf92
commit
1e00885aec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=292877
@ -878,7 +878,7 @@ rep_name(char *name, int *nlen, int prnt)
|
||||
* (the user already saw that substitution go by)
|
||||
*/
|
||||
pt = rephead;
|
||||
(void)strcpy(buf1, name);
|
||||
(void)strlcpy(buf1, name, sizeof(buf1));
|
||||
inpt = buf1;
|
||||
outpt = nname;
|
||||
endpt = outpt + PAXPATHLEN;
|
||||
|
Loading…
Reference in New Issue
Block a user