Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102993496
D40692.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
523 B
Referenced Files
None
Subscribers
None
D40692.diff
View Options
diff --git a/sys/fs/pseudofs/pseudofs_vnops.c b/sys/fs/pseudofs/pseudofs_vnops.c
--- a/sys/fs/pseudofs/pseudofs_vnops.c
+++ b/sys/fs/pseudofs/pseudofs_vnops.c
@@ -537,8 +537,8 @@
for (pn = pd->pn_nodes; pn != NULL; pn = pn->pn_next)
if (pn->pn_type == pfstype_procdir)
pdn = pn;
- else if (pn->pn_name[namelen] == '\0' &&
- bcmp(pname, pn->pn_name, namelen) == 0) {
+ else if (strncmp(pname, pn->pn_name, namelen) == 0 &&
+ pn->pn_name[namelen] == '\0') {
pfs_unlock(pd);
goto got_pnode;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 2:29 PM (20 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14740417
Default Alt Text
D40692.diff (523 B)
Attached To
Mode
D40692: pseudofs: Fix a potential out-of-bounds access in pfs_lookup()
Attached
Detach File
Event Timeline
Log In to Comment