Page MenuHomeFreeBSD

D32648.diff
No OneTemporary

D32648.diff

diff --git a/contrib/elftoolchain/elfcopy/main.c b/contrib/elftoolchain/elfcopy/main.c
--- a/contrib/elftoolchain/elfcopy/main.c
+++ b/contrib/elftoolchain/elfcopy/main.c
@@ -738,6 +738,8 @@
if ((ecp->ein = elf_begin(ifd, ELF_C_READ, NULL)) == NULL) {
cleanup_tempfile(tempfile);
+ if (fstat(ifd, &sb) == 0 && sb.st_size == 0)
+ errx(EXIT_FAILURE, "file format not recognized");
errx(EXIT_FAILURE, "elf_begin() failed: %s",
elf_errmsg(-1));
}

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 6, 6:51 PM (19 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14498389
Default Alt Text
D32648.diff (466 B)

Event Timeline