Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133157107
D11474.id30424.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
781 B
Referenced Files
None
Subscribers
None
D11474.id30424.diff
View Options
Index: head/libexec/rtld-elf/rtld.c
===================================================================
--- head/libexec/rtld-elf/rtld.c
+++ head/libexec/rtld-elf/rtld.c
@@ -5300,14 +5300,14 @@
fd = -1;
errno = ENOENT;
while ((pe = strsep(&pathenv, ":")) != NULL) {
- if (strlcpy(binpath, pe, sizeof(binpath)) >
+ if (strlcpy(binpath, pe, sizeof(binpath)) >=
sizeof(binpath))
continue;
if (binpath[0] != '\0' &&
- strlcat(binpath, "/", sizeof(binpath)) >
+ strlcat(binpath, "/", sizeof(binpath)) >=
sizeof(binpath))
continue;
- if (strlcat(binpath, argv0, sizeof(binpath)) >
+ if (strlcat(binpath, argv0, sizeof(binpath)) >=
sizeof(binpath))
continue;
fd = open(binpath, O_RDONLY | O_CLOEXEC | O_VERIFY);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 24, 12:06 PM (2 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24116267
Default Alt Text
D11474.id30424.diff (781 B)
Attached To
Mode
D11474: Slight cleanup in open_binary_fd.
Attached
Detach File
Event Timeline
Log In to Comment