artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8aecc57
)
Do not pass VM name directly to setproctitle format string.
author
stefan
<stefan@openbsd.org>
Mon, 1 Aug 2016 16:32:10 +0000
(16:32 +0000)
committer
stefan
<stefan@openbsd.org>
Mon, 1 Aug 2016 16:32:10 +0000
(16:32 +0000)
Use a secure idiom instead.
ok mlarkin@
usr.sbin/vmd/vmm.c
patch
|
blob
|
history
diff --git
a/usr.sbin/vmd/vmm.c
b/usr.sbin/vmd/vmm.c
index
59403d5
..
cb0af49
100644
(file)
--- a/
usr.sbin/vmd/vmm.c
+++ b/
usr.sbin/vmd/vmm.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: vmm.c,v 1.3
4 2016/07/29 16:36:51
stefan Exp $ */
+/* $OpenBSD: vmm.c,v 1.3
5 2016/08/01 16:32:10
stefan Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
@@
-529,7
+529,7
@@
start_vm(struct imsg *imsg, uint32_t *id)
return (0);
} else {
/* Child */
- setproctitle(vcp->vcp_name);
+ setproctitle(
"%s",
vcp->vcp_name);
log_procinit(vcp->vcp_name);
create_memory_map(vcp);