Page MenuHomeFreeBSD

D5541.id.diff
No OneTemporary

D5541.id.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
Mon, Sep 7, 8:57 AM (16 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38405799
Default Alt Text
D5541.id.diff (584 B)

Event Timeline