Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171652136
D19658.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
628 B
Referenced Files
None
Subscribers
None
D19658.id.diff
View Options
Index: head/stand/common/load_elf.c
===================================================================
--- head/stand/common/load_elf.c
+++ head/stand/common/load_elf.c
@@ -868,14 +868,16 @@
sp++;
else
sp = name;
- ep = strrchr(name, '.');
- if (ep) {
- if (ep == name) {
- sp = invalid_name;
- ep = invalid_name + sizeof(invalid_name) - 1;
- }
- } else
- ep = name + strlen(name);
+
+ ep = strrchr(sp, '.');
+ if (ep == NULL) {
+ ep = sp + strlen(sp);
+ }
+ if (ep == sp) {
+ sp = invalid_name;
+ ep = invalid_name + sizeof(invalid_name) - 1;
+ }
+
len = ep - sp;
fp = malloc(len + 1);
if (fp == NULL)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 13, 11:16 AM (14 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38851037
Default Alt Text
D19658.id.diff (628 B)
Attached To
Mode
D19658: [loader] fix file name cut causing hang when a "." is found in paths like "boot/kernel.elfv2/kernel"
Attached
Detach File
Event Timeline
Log In to Comment