artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96f11ec
)
Fix an off-by-one uncovered by the recent free(9) change
author
mikeb
<mikeb@openbsd.org>
Thu, 18 Jan 2018 11:43:20 +0000
(11:43 +0000)
committer
mikeb
<mikeb@openbsd.org>
Thu, 18 Jan 2018 11:43:20 +0000
(11:43 +0000)
From canacar@, thanks!
sys/dev/pv/pvbus.c
patch
|
blob
|
history
diff --git
a/sys/dev/pv/pvbus.c
b/sys/dev/pv/pvbus.c
index
902221e
..
885cf70
100644
(file)
--- a/
sys/dev/pv/pvbus.c
+++ b/
sys/dev/pv/pvbus.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: pvbus.c,v 1.1
7 2017/06/22 06:21:12 jmatthew Exp $
*/
+/* $OpenBSD: pvbus.c,v 1.1
8 2018/01/18 11:43:20 mikeb Exp $
*/
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@
-480,8
+480,8
@@
pvbusioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p)
break;
}
- free(key, M_TEMP, keylen);
- free(value, M_TEMP, valuelen);
+ free(key, M_TEMP, keylen
+ 1
);
+ free(value, M_TEMP, valuelen
+ 1
);
return (error);
}