Fix (uncritical) potential buffer overflow: the length of "buf" was not
extended when "jaiL" was added to fmt_flags(). MFC after: 1 week
This commit is contained in:
parent
c67ddc21e7
commit
e291efbd86
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173627
@ -70,7 +70,7 @@ fmt_flags(int flags)
|
|||||||
* NB: if you add new flags, don't forget to add them here vvvvvv too.
|
* NB: if you add new flags, don't forget to add them here vvvvvv too.
|
||||||
*/
|
*/
|
||||||
static char buf[sizeof
|
static char buf[sizeof
|
||||||
"static, network, read-only, synthetic, loopback, unicode"];
|
"static, network, read-only, synthetic, loopback, unicode, jail"];
|
||||||
int comma = 0;
|
int comma = 0;
|
||||||
|
|
||||||
buf[0] = '\0';
|
buf[0] = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user