Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144572132
D5132.1775521345.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
772 B
Referenced Files
None
Subscribers
None
D5132.1775521345.diff
View Options
Index: sys/dev/iicbus/iic.c
===================================================================
--- sys/dev/iicbus/iic.c
+++ sys/dev/iicbus/iic.c
@@ -293,7 +293,8 @@
struct iic_msg *buf, *m;
void **usrbufs;
device_t iicdev, parent;
- int error, i;
+ int error;
+ uint32_t i;
iicdev = priv->sc->sc_dev;
parent = device_get_parent(iicdev);
Index: sys/dev/tdfx/tdfx_pci.c
===================================================================
--- sys/dev/tdfx/tdfx_pci.c
+++ sys/dev/tdfx/tdfx_pci.c
@@ -707,7 +707,8 @@
}
/* Write the data to the intended port */
- copyin(piod->value, &ret_byte, sizeof(u_int8_t));
+ if (copyin(piod->value, &ret_byte, sizeof(u_int8_t)) != 0)
+ return -EFAULT;
workport = piod->port;
outb(workport, ret_byte);
return 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 7, 12:22 AM (15 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28282782
Default Alt Text
D5132.1775521345.diff (772 B)
Attached To
Mode
D5132: Handle security concerns in sys/dev about out of bound and initilized stack vars
Attached
Detach File
Event Timeline
Log In to Comment