Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143224064
D25759.id74820.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
492 B
Referenced Files
None
Subscribers
None
D25759.id74820.diff
View Options
Index: head/usr.sbin/mountd/mountd.c
===================================================================
--- head/usr.sbin/mountd/mountd.c
+++ head/usr.sbin/mountd/mountd.c
@@ -3155,9 +3155,9 @@
goto error_exit;
}
/* back up over the last component */
- while (*cp == '/' && cp > dirp)
+ while (cp > dirp && *cp == '/')
cp--;
- while (*(cp - 1) != '/' && cp > dirp)
+ while (cp > dirp && *(cp - 1) != '/')
cp--;
if (cp == dirp) {
if (debug)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 28, 5:26 PM (19 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28067442
Default Alt Text
D25759.id74820.diff (492 B)
Attached To
Mode
D25759: Avoid reading one byte before the path buffer.
Attached
Detach File
Event Timeline
Log In to Comment