Page MenuHomeFreeBSD

D5541.diff
No OneTemporary

D5541.diff

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

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)

Event Timeline