Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177505581
D37771.1794582498.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
453 B
Referenced Files
None
Subscribers
None
D37771.1794582498.diff
View Options
diff --git a/sys/compat/linuxkpi/common/src/linux_seq_file.c b/sys/compat/linuxkpi/common/src/linux_seq_file.c
--- a/sys/compat/linuxkpi/common/src/linux_seq_file.c
+++ b/sys/compat/linuxkpi/common/src/linux_seq_file.c
@@ -67,7 +67,7 @@
return (-EINVAL);
size = min(rc - *ppos, size);
- rc = strscpy(ubuf, sbuf_data(sbuf) + *ppos, size);
+ rc = strscpy(ubuf, sbuf_data(sbuf) + *ppos, size + 1);
/* add 1 for null terminator */
if (rc > 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 13, 3:08 PM (2 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41703516
Default Alt Text
D37771.1794582498.diff (453 B)
Attached To
Mode
D37771: linuxkpi: seq_read: Fix one by one error
Attached
Detach File
Event Timeline