Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131877445
D5541.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
584 B
Referenced Files
None
Subscribers
None
D5541.diff
View Options
Index: head/contrib/elftoolchain/elfcopy/sections.c
===================================================================
--- head/contrib/elftoolchain/elfcopy/sections.c
+++ head/contrib/elftoolchain/elfcopy/sections.c
@@ -1522,6 +1522,9 @@
err(EXIT_FAILURE, "strdup failed");
if (stat(ecp->debuglink, &sb) == -1)
err(EXIT_FAILURE, "stat failed");
+ if (sb.st_size == 0)
+ errx(EXIT_FAILURE, "empty debug link target %s",
+ ecp->debuglink);
if ((buf = malloc(sb.st_size)) == NULL)
err(EXIT_FAILURE, "malloc failed");
if ((fp = fopen(ecp->debuglink, "r")) == NULL)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 12, 9:58 PM (3 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23642741
Default Alt Text
D5541.diff (584 B)
Attached To
Mode
D5541: elfcopy: fail if debug link target is empty
Attached
Detach File
Event Timeline
Log In to Comment